Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|a|b",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3") translateModel(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|a|b",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001203/0.001203, allocations: 117.7 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001274/0.001275, allocations: 208.8 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.436/1.436, allocations: 227.4 MB / 247.6 MB, free: 10.4 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2778/0.2778, allocations: 46.11 MB / 345 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001329/0.001329, allocations: 79.88 kB / 482 MB, free: 4.074 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4547/0.456, allocations: 62.43 MB / 0.5316 GB, free: 13.58 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.001712/0.4578, allocations: 498.2 kB / 0.5321 GB, free: 13.22 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002207/0.46, allocations: 1.4 MB / 0.5335 GB, free: 12.09 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.616e-05/0.4601, allocations: 4.969 kB / 0.5335 GB, free: 12.09 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.613e-05/0.4601, allocations: 0 / 0.5335 GB, free: 12.09 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 3.573e-05/0.4601, allocations: 0 / 0.5335 GB, free: 12.09 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008034/0.4609, allocations: 232.1 kB / 0.5337 GB, free: 11.95 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 7.232e-05/0.461, allocations: 9.75 kB / 0.5337 GB, free: 11.94 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.392e-05/0.4611, allocations: 3.984 kB / 0.5337 GB, free: 11.94 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.35e-05/0.4611, allocations: 7.625 kB / 0.5337 GB, free: 11.93 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.14e-05/0.4612, allocations: 5.922 kB / 0.5337 GB, free: 11.93 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.178e-05/0.4612, allocations: 0 / 0.5337 GB, free: 11.93 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005236/0.4617, allocations: 284 kB / 0.534 GB, free: 11.77 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.813e-05/0.4618, allocations: 5.359 kB / 0.534 GB, free: 11.77 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.775e-05/0.4618, allocations: 5.312 kB / 0.534 GB, free: 11.76 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002588/0.4621, allocations: 140.8 kB / 0.5341 GB, free: 11.66 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.656e-06/0.4621, allocations: 5.375 kB / 0.5341 GB, free: 11.66 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.615e-06/0.4621, allocations: 0 / 0.5341 GB, free: 11.66 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.148e-05/0.4621, allocations: 0 / 0.5341 GB, free: 11.66 MB / 398.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.0004845/0.4626, allocations: 335.9 kB / 0.5345 GB, free: 11.29 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.455e-05/0.4626, allocations: 9.625 kB / 0.5345 GB, free: 11.29 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.506e-05/0.4627, allocations: 0.9375 kB / 0.5345 GB, free: 11.29 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001557/0.4629, allocations: 169.8 kB / 0.5346 GB, free: 11.09 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.33e-05/0.4629, allocations: 384 / 0.5346 GB, free: 11.09 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.334e-05/0.4629, allocations: 1.75 kB / 0.5346 GB, free: 11.09 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001406/0.4631, allocations: 35.52 kB / 0.5347 GB, free: 11.05 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.959e-06/0.4631, allocations: 3.938 kB / 0.5347 GB, free: 11.05 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.749e-05/0.4631, allocations: 5.375 kB / 0.5347 GB, free: 11.05 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.391e-06/0.4631, allocations: 4 kB / 0.5347 GB, free: 11.04 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.517e-05/0.4632, allocations: 12.05 kB / 0.5347 GB, free: 11.04 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004064/0.4636, allocations: 237.1 kB / 0.5349 GB, free: 10.76 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.577e-05/0.4636, allocations: 27.92 kB / 0.535 GB, free: 10.73 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.72e-05/0.4637, allocations: 6.234 kB / 0.535 GB, free: 10.72 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.068e-05/0.4637, allocations: 1.375 kB / 0.535 GB, free: 10.72 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.482e-05/0.4637, allocations: 35.94 kB / 0.535 GB, free: 10.68 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.032e-06/0.4637, allocations: 0 / 0.535 GB, free: 10.68 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001582/0.4639, allocations: 39.05 kB / 0.535 GB, free: 10.64 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.573e-05/0.4639, allocations: 52.78 kB / 0.5351 GB, free: 10.57 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.304e-05/0.464, allocations: 100.6 kB / 0.5352 GB, free: 10.47 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.848e-05/0.4641, allocations: 25.7 kB / 0.5352 GB, free: 10.44 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.861e-05/0.4641, allocations: 85.31 kB / 0.5353 GB, free: 10.36 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.877e-06/0.4641, allocations: 4.156 kB / 0.5353 GB, free: 10.35 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.536e-05/0.4642, allocations: 21.84 kB / 0.5353 GB, free: 10.33 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001257/0.4643, allocations: 314.8 kB / 0.5356 GB, free: 10.01 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.498e-05/0.4643, allocations: 6.734 kB / 0.5356 GB, free: 10.01 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.446e-05/0.4643, allocations: 17.33 kB / 0.5356 GB, free: 9.984 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.161e-05/0.4644, allocations: 33.39 kB / 0.5357 GB, free: 9.949 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/0.4644, allocations: 4 kB / 0.5357 GB, free: 9.945 MB / 398.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 8.019e-05/0.4645, allocations: 50 kB / 0.5357 GB, free: 9.902 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.731e-05/0.4645, allocations: 5.5 kB / 0.5357 GB, free: 9.902 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.052e-06/0.4645, allocations: 1.375 kB / 0.5357 GB, free: 9.902 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.694e-05/0.4646, allocations: 1.375 kB / 0.5357 GB, free: 9.902 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.884e-05/0.4646, allocations: 4.125 kB / 0.5357 GB, free: 9.902 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.973e-06/0.4646, allocations: 1.375 kB / 0.5357 GB, free: 9.902 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.264e-05/0.4647, allocations: 5.469 kB / 0.5357 GB, free: 9.898 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.226e-05/0.4647, allocations: 1.375 kB / 0.5357 GB, free: 9.898 MB / 398.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 9.286e-05/0.4648, allocations: 120.5 kB / 0.5359 GB, free: 9.773 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.233e-05/0.4648, allocations: 0 / 0.5359 GB, free: 9.773 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001363/0.4649, allocations: 45.16 kB / 0.5359 GB, free: 9.734 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.464e-06/0.465, allocations: 1.375 kB / 0.5359 GB, free: 9.734 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.465, allocations: 4.031 kB / 0.5359 GB, free: 9.73 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-06/0.465, allocations: 0 / 0.5359 GB, free: 9.73 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001675/0.4651, allocations: 156.3 kB / 0.536 GB, free: 9.531 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.07e-06/0.4652, allocations: 1.375 kB / 0.536 GB, free: 9.531 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.51e-07/0.4652, allocations: 0 / 0.536 GB, free: 9.531 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.503e-06/0.4652, allocations: 0 / 0.536 GB, free: 9.531 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.047e-06/0.4652, allocations: 1.375 kB / 0.5361 GB, free: 9.531 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.4652, allocations: 3.938 kB / 0.5361 GB, free: 9.527 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.4652, allocations: 3.938 kB / 0.5361 GB, free: 9.523 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001004/0.4653, allocations: 143.7 kB / 0.5362 GB, free: 9.375 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.001e-05/0.4654, allocations: 78.48 kB / 0.5363 GB, free: 9.281 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.193e-05/0.4654, allocations: 0 / 0.5363 GB, free: 9.281 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.671e-05/0.4654, allocations: 1.375 kB / 0.5363 GB, free: 9.281 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.318e-05/0.4655, allocations: 1.375 kB / 0.5363 GB, free: 9.281 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.901e-06/0.4655, allocations: 3.984 kB / 0.5363 GB, free: 9.277 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.055e-05/0.4655, allocations: 82.03 kB / 0.5364 GB, free: 9.199 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4655, allocations: 0 / 0.5364 GB, free: 9.199 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003055/0.4658, allocations: 43.88 kB / 0.5364 GB, free: 9.191 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.0002778/0.4661, allocations: 136.5 kB / 0.5365 GB, free: 9.086 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.285e-05/0.4662, allocations: 16.19 kB / 0.5365 GB, free: 9.078 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.4662, allocations: 0 / 0.5365 GB, free: 9.078 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.632e-05/0.4663, allocations: 28.45 kB / 0.5366 GB, free: 9.047 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002185/0.4665, allocations: 9.688 kB / 0.5366 GB, free: 9.043 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002604/0.4668, allocations: 114 kB / 0.5367 GB, free: 8.91 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000256/0.467, allocations: 0.6756 MB / 0.5373 GB, free: 8.211 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.713e-05/0.467, allocations: 8.812 kB / 0.5374 GB, free: 8.203 MB / 398.1 MB Notification: Performance of SimCode: time 2.3e-07/0.4671, allocations: 0 / 0.5374 GB, free: 8.203 MB / 398.1 MB Notification: Performance of Templates: time 0.002917/0.47, allocations: 0.9314 MB / 0.5383 GB, free: 7.738 MB / 398.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches