Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_Test02RegFun3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_Test02RegFun3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001079/0.001079, allocations: 110.4 kB / 17.78 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001151/0.001151, allocations: 183.1 kB / 18.7 MB, free: 4.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.272/1.272, allocations: 222.9 MB / 242.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2016/0.2016, allocations: 44.18 MB / 336.7 MB, free: 2.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001306/0.001306, allocations: 59.91 kB / 470 MB, free: 13.7 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3298/0.3312, allocations: 60.82 MB / 0.5184 GB, free: 3.293 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.00158/0.3328, allocations: 0.492 MB / 0.5189 GB, free: 2.992 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001495/0.3343, allocations: 1.357 MB / 0.5202 GB, free: 2.016 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.926e-05/0.3343, allocations: 1.156 kB / 0.5202 GB, free: 2.016 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.776e-05/0.3344, allocations: 0 / 0.5202 GB, free: 2.016 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 2.561e-05/0.3344, allocations: 3.938 kB / 0.5202 GB, free: 2.012 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007772/0.3352, allocations: 218.9 kB / 0.5204 GB, free: 1.941 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.639e-05/0.3353, allocations: 9.922 kB / 0.5204 GB, free: 1.938 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.943e-05/0.3353, allocations: 2.422 kB / 0.5204 GB, free: 1.938 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.041e-05/0.3353, allocations: 7.172 kB / 0.5204 GB, free: 1.934 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.567e-05/0.3354, allocations: 2.578 kB / 0.5204 GB, free: 1.934 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.203e-05/0.3354, allocations: 1.5 kB / 0.5204 GB, free: 1.934 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005267/0.3359, allocations: 278 kB / 0.5207 GB, free: 1.863 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.311e-05/0.336, allocations: 1.656 kB / 0.5207 GB, free: 1.863 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.29e-05/0.336, allocations: 1.75 kB / 0.5207 GB, free: 1.863 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002639/0.3363, allocations: 144.8 kB / 0.5208 GB, free: 1.824 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.3363, allocations: 0 / 0.5208 GB, free: 1.824 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.3363, allocations: 0 / 0.5208 GB, free: 1.824 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.02e-06/0.3363, allocations: 0 / 0.5208 GB, free: 1.824 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003044/0.3366, allocations: 338.6 kB / 0.5212 GB, free: 1.465 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.165e-05/0.3367, allocations: 10.12 kB / 0.5212 GB, free: 1.465 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.094e-05/0.3367, allocations: 35.45 kB / 0.5212 GB, free: 1.422 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.56e-05/0.3367, allocations: 6.062 kB / 0.5212 GB, free: 1.418 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.839e-05/0.3368, allocations: 163 kB / 0.5214 GB, free: 1.223 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.949e-06/0.3368, allocations: 384 / 0.5214 GB, free: 1.223 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.819e-06/0.3368, allocations: 2.438 kB / 0.5214 GB, free: 1.223 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001122/0.3369, allocations: 38.17 kB / 0.5214 GB, free: 1.188 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.414e-06/0.3369, allocations: 0 / 0.5214 GB, free: 1.188 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.939e-06/0.337, allocations: 4 kB / 0.5214 GB, free: 1.184 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.551e-06/0.337, allocations: 1.094 kB / 0.5214 GB, free: 1.184 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.524e-05/0.337, allocations: 10.16 kB / 0.5214 GB, free: 1.18 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003047/0.3373, allocations: 242.5 kB / 0.5217 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.705e-05/0.3374, allocations: 21.14 kB / 0.5217 GB, free: 0.8789 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.456e-05/0.3374, allocations: 7.641 kB / 0.5217 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.953e-06/0.3374, allocations: 3.984 kB / 0.5217 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.807e-05/0.3374, allocations: 32.28 kB / 0.5217 GB, free: 0.8281 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.933e-06/0.3374, allocations: 4 kB / 0.5217 GB, free: 0.8242 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001376/0.3376, allocations: 37.64 kB / 0.5218 GB, free: 0.7891 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.322e-05/0.3376, allocations: 52.53 kB / 0.5218 GB, free: 0.7266 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.166e-05/0.3377, allocations: 103.6 kB / 0.5219 GB, free: 0.6211 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.113e-06/0.3377, allocations: 30.67 kB / 0.5219 GB, free: 0.5859 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.893e-05/0.3377, allocations: 81.94 kB / 0.522 GB, free: 0.5039 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.964e-06/0.3377, allocations: 5.797 kB / 0.522 GB, free: 0.5 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.695e-05/0.3377, allocations: 22.06 kB / 0.522 GB, free: 488 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.934e-05/0.3378, allocations: 315.5 kB / 0.5223 GB, free: 164 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.297e-05/0.3378, allocations: 3.062 kB / 0.5223 GB, free: 164 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.738e-05/0.3378, allocations: 19.45 kB / 0.5224 GB, free: 140 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.752e-05/0.3379, allocations: 32.97 kB / 0.5224 GB, free: 104 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.3379, allocations: 8 kB / 0.5224 GB, free: 96 kB / 382.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 6.301e-05/0.3379, allocations: 49.64 kB / 0.5224 GB, free: 56 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.32e-05/0.338, allocations: 6.406 kB / 0.5225 GB, free: 56 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.089e-06/0.338, allocations: 0 / 0.5225 GB, free: 56 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.417e-05/0.338, allocations: 1.812 kB / 0.5225 GB, free: 56 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.676e-05/0.338, allocations: 5.25 kB / 0.5225 GB, free: 56 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.061e-06/0.338, allocations: 1.781 kB / 0.5225 GB, free: 56 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.755e-05/0.3381, allocations: 5.094 kB / 0.5225 GB, free: 52 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.182e-06/0.3381, allocations: 2.188 kB / 0.5225 GB, free: 52 kB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.154e-05/0.3382, allocations: 120.8 kB / 0.5226 GB, free: 15.93 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.424e-05/0.3382, allocations: 1.875 kB / 0.5226 GB, free: 15.93 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001021/0.3383, allocations: 46.55 kB / 0.5226 GB, free: 15.88 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.376e-06/0.3383, allocations: 0.5156 kB / 0.5226 GB, free: 15.88 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.3383, allocations: 1.125 kB / 0.5226 GB, free: 15.88 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.833e-06/0.3383, allocations: 0 / 0.5226 GB, free: 15.88 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001708/0.3385, allocations: 158.4 kB / 0.5228 GB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.092e-06/0.3385, allocations: 1.656 kB / 0.5228 GB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.61e-07/0.3385, allocations: 0 / 0.5228 GB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.073e-06/0.3385, allocations: 1.672 kB / 0.5228 GB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.486e-06/0.3385, allocations: 5.219 kB / 0.5228 GB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.02e-07/0.3386, allocations: 0 / 0.5228 GB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/0.3386, allocations: 4.453 kB / 0.5228 GB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.717e-05/0.3387, allocations: 137.2 kB / 0.5229 GB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.921e-05/0.3387, allocations: 78.84 kB / 0.523 GB, free: 15.44 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.257e-05/0.3387, allocations: 1.672 kB / 0.523 GB, free: 15.44 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.7e-05/0.3388, allocations: 0.75 kB / 0.523 GB, free: 15.44 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.328e-05/0.3388, allocations: 1.656 kB / 0.523 GB, free: 15.44 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.915e-06/0.3388, allocations: 5.094 kB / 0.523 GB, free: 15.44 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.461e-05/0.3389, allocations: 82.33 kB / 0.5231 GB, free: 15.36 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3389, allocations: 0 / 0.5231 GB, free: 15.36 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002885/0.3392, allocations: 40.17 kB / 0.5231 GB, free: 15.36 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005229/0.3397, allocations: 0.7032 MB / 0.5238 GB, free: 14.68 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 7.888e-05/0.3398, allocations: 13.08 kB / 0.5238 GB, free: 14.68 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.3398, allocations: 0 / 0.5238 GB, free: 14.68 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.196e-05/0.3398, allocations: 34.12 kB / 0.5239 GB, free: 14.64 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002038/0.34, allocations: 5.766 kB / 0.5239 GB, free: 14.64 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003677/0.3404, allocations: 125 kB / 0.524 GB, free: 14.5 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002499/0.3407, allocations: 0.6775 MB / 0.5246 GB, free: 13.8 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.189e-05/0.3407, allocations: 6.031 kB / 0.5247 GB, free: 13.79 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.069e-05/0.3407, allocations: 8.469 kB / 0.5247 GB, free: 13.79 MB / 398.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3407, allocations: 0 / 0.5247 GB, free: 13.79 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01926/0.36, allocations: 1.851 MB / 0.5265 GB, free: 13.33 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.373/7.733, allocations: 5.641 kB / 0.5265 GB, free: 13.33 MB / 398.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_Test02RegFun3_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_Test02RegFun3.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/Test02RegFun3/Test02RegFun3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches