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: translateModel(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|a|b",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3") translateModel(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|a|b",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001119/0.001119, allocations: 113.8 kB / 17.78 MB, free: 5.309 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.001036/0.001036, allocations: 183.1 kB / 18.71 MB, free: 4.387 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.824/1.824, allocations: 222.9 MB / 242.4 MB, free: 15.2 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.2078/0.2078, allocations: 44.19 MB / 336.7 MB, free: 2.699 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00125/0.00125, allocations: 59.91 kB / 470.5 MB, free: 13.22 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3568/0.358, allocations: 60.83 MB / 0.5189 GB, free: 3.609 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.001496/0.3596, allocations: 0.4911 MB / 0.5194 GB, free: 3.312 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001588/0.3612, allocations: 1.356 MB / 0.5207 GB, free: 2.336 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.957e-05/0.3612, allocations: 0 / 0.5207 GB, free: 2.336 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.341e-05/0.3612, allocations: 0 / 0.5207 GB, free: 2.336 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 3.427e-05/0.3613, allocations: 0 / 0.5207 GB, free: 2.336 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006914/0.362, allocations: 219.8 kB / 0.5209 GB, free: 2.266 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.591e-05/0.362, allocations: 10.03 kB / 0.5209 GB, free: 2.262 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.032e-05/0.3621, allocations: 1.641 kB / 0.5209 GB, free: 2.262 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.912e-05/0.3621, allocations: 7.766 kB / 0.5209 GB, free: 2.258 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.788e-05/0.3622, allocations: 6.656 kB / 0.5209 GB, free: 2.254 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.168e-05/0.3622, allocations: 1 kB / 0.5209 GB, free: 2.254 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004684/0.3626, allocations: 275.4 kB / 0.5212 GB, free: 2.188 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.395e-05/0.3627, allocations: 0.6562 kB / 0.5212 GB, free: 2.188 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.58e-05/0.3627, allocations: 9.953 kB / 0.5212 GB, free: 2.18 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000276/0.363, allocations: 139.6 kB / 0.5213 GB, free: 2.145 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.149e-06/0.363, allocations: 1.75 kB / 0.5213 GB, free: 2.145 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.363, allocations: 0 / 0.5213 GB, free: 2.145 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.065e-05/0.363, allocations: 0 / 0.5213 GB, free: 2.145 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.0002822/0.3633, allocations: 339 kB / 0.5217 GB, free: 1.781 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.304e-05/0.3633, allocations: 10.34 kB / 0.5217 GB, free: 1.781 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.764e-05/0.3634, allocations: 0.9375 kB / 0.5217 GB, free: 1.781 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.729e-05/0.3634, allocations: 163 kB / 0.5218 GB, free: 1.586 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.118e-05/0.3634, allocations: 1.562 kB / 0.5218 GB, free: 1.586 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.103e-05/0.3635, allocations: 1.5 kB / 0.5218 GB, free: 1.586 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001075/0.3636, allocations: 46.64 kB / 0.5219 GB, free: 1.543 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.743e-06/0.3636, allocations: 0 / 0.5219 GB, free: 1.543 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.668e-06/0.3636, allocations: 0 / 0.5219 GB, free: 1.543 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.909e-06/0.3636, allocations: 1.953 kB / 0.5219 GB, free: 1.543 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.24e-05/0.3636, allocations: 9.016 kB / 0.5219 GB, free: 1.539 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002878/0.3639, allocations: 246.6 kB / 0.5221 GB, free: 1.262 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.574e-05/0.364, allocations: 17.8 kB / 0.5221 GB, free: 1.238 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.599e-05/0.364, allocations: 6.703 kB / 0.5221 GB, free: 1.23 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.989e-06/0.364, allocations: 5.094 kB / 0.5221 GB, free: 1.227 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.653e-05/0.364, allocations: 31.47 kB / 0.5222 GB, free: 1.188 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.082e-06/0.364, allocations: 4 kB / 0.5222 GB, free: 1.184 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001294/0.3642, allocations: 37.42 kB / 0.5222 GB, free: 1.148 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.455e-05/0.3642, allocations: 52.11 kB / 0.5223 GB, free: 1.086 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.014e-05/0.3643, allocations: 98.98 kB / 0.5224 GB, free: 0.9844 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.839e-06/0.3643, allocations: 25.7 kB / 0.5224 GB, free: 0.9531 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.047e-05/0.3643, allocations: 89.81 kB / 0.5225 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.424e-06/0.3643, allocations: 9.656 kB / 0.5225 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.857e-05/0.3644, allocations: 22.23 kB / 0.5225 GB, free: 0.8359 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.179e-05/0.3644, allocations: 315.6 kB / 0.5228 GB, free: 0.5195 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.177e-05/0.3644, allocations: 2.156 kB / 0.5228 GB, free: 0.5195 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.995e-05/0.3645, allocations: 31.58 kB / 0.5228 GB, free: 496 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.085e-05/0.3645, allocations: 25.16 kB / 0.5229 GB, free: 468 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.3645, allocations: 1 kB / 0.5229 GB, free: 468 kB / 382.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 6.544e-05/0.3646, allocations: 48.7 kB / 0.5229 GB, free: 428 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.375e-05/0.3646, allocations: 5.438 kB / 0.5229 GB, free: 428 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/0.3646, allocations: 1.781 kB / 0.5229 GB, free: 428 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.403e-05/0.3646, allocations: 1.406 kB / 0.5229 GB, free: 428 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.277e-05/0.3647, allocations: 9.688 kB / 0.5229 GB, free: 424 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.232e-06/0.3647, allocations: 1.859 kB / 0.5229 GB, free: 424 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.842e-05/0.3647, allocations: 1.844 kB / 0.5229 GB, free: 424 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.722e-06/0.3647, allocations: 5.5 kB / 0.5229 GB, free: 420 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 4.842e-05/0.3648, allocations: 115.4 kB / 0.523 GB, free: 296 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.311e-05/0.3648, allocations: 1.844 kB / 0.523 GB, free: 296 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.483e-05/0.3649, allocations: 47.19 kB / 0.5231 GB, free: 252 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.325e-06/0.3649, allocations: 1 kB / 0.5231 GB, free: 252 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.3649, allocations: 0 / 0.5231 GB, free: 252 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.3649, allocations: 6.031 kB / 0.5231 GB, free: 248 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001045/0.365, allocations: 157.6 kB / 0.5232 GB, free: 44 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.48e-06/0.3651, allocations: 1.906 kB / 0.5232 GB, free: 44 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.61e-07/0.3651, allocations: 0 / 0.5232 GB, free: 44 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.023e-06/0.3651, allocations: 1.125 kB / 0.5232 GB, free: 44 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.841e-06/0.3651, allocations: 0.7031 kB / 0.5232 GB, free: 44 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.3651, allocations: 1.125 kB / 0.5232 GB, free: 44 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.3651, allocations: 0 / 0.5232 GB, free: 44 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001108/0.3652, allocations: 133.9 kB / 0.5234 GB, free: 15.91 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.548e-05/0.3653, allocations: 83.11 kB / 0.5234 GB, free: 15.81 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.178e-05/0.3653, allocations: 4 kB / 0.5235 GB, free: 15.8 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.516e-05/0.3653, allocations: 2.125 kB / 0.5235 GB, free: 15.8 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.121e-05/0.3653, allocations: 1 kB / 0.5235 GB, free: 15.8 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.348e-06/0.3654, allocations: 1.688 kB / 0.5235 GB, free: 15.8 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.521e-05/0.3654, allocations: 77.02 kB / 0.5235 GB, free: 15.73 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.874e-06/0.3654, allocations: 1.25 kB / 0.5235 GB, free: 15.73 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003128/0.3657, allocations: 42.92 kB / 0.5236 GB, free: 15.72 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.0002859/0.366, allocations: 143.9 kB / 0.5237 GB, free: 15.62 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 8.262e-05/0.3661, allocations: 12.98 kB / 0.5237 GB, free: 15.61 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.3661, allocations: 1.281 kB / 0.5237 GB, free: 15.61 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.348e-05/0.3662, allocations: 28.14 kB / 0.5238 GB, free: 15.58 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002188/0.3664, allocations: 5.938 kB / 0.5238 GB, free: 15.58 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002201/0.3666, allocations: 82.38 kB / 0.5238 GB, free: 15.48 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002483/0.3669, allocations: 0.6846 MB / 0.5245 GB, free: 14.78 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.471e-05/0.3669, allocations: 5.062 kB / 0.5245 GB, free: 14.77 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.352e-05/0.3669, allocations: 9.359 kB / 0.5245 GB, free: 14.77 MB / 398.1 MB Notification: Performance of SimCode: time 3.51e-07/0.3669, allocations: 1.25 kB / 0.5245 GB, free: 14.77 MB / 398.1 MB Notification: Performance of Templates: time 0.003426/0.3704, allocations: 1.062 MB / 0.5256 GB, free: 14.67 MB / 398.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.makefile (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 & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/Test02RegFun3/Test02RegFun3.csv","/var/lib/jenkins/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