Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|pipe1.port_a.p|pipe1.port_b.p|pipe1.port_b.m_flow|pipe1.port_b.h_outflow",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe") translateModel(ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|pipe1.port_a.p|pipe1.port_b.p|pipe1.port_b.m_flow|pipe1.port_b.h_outflow",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008817/0.0008818, allocations: 198.8 kB / 15.8 MB, free: 6.309 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.235/1.235, allocations: 226.6 MB / 243.1 MB, free: 14.29 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007155/0.0007156, allocations: 96.86 kB / 295.1 MB, free: 10.04 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.18/0.18, allocations: 44.84 MB / 392 MB, free: 9.312 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002343/0.0002343, allocations: 8 kB / 464.7 MB, free: 49.75 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1006/0.1009, allocations: 62.96 MB / 0.5153 GB, free: 2.746 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe): time 0.2253/0.3262, allocations: 11.76 MB / 0.5268 GB, free: 5.789 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.006107/0.3324, allocations: 5.164 MB / 0.5319 GB, free: 2.18 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005477/0.3329, allocations: 20.75 kB / 0.5319 GB, free: 2.168 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005703/0.3335, allocations: 153.8 kB / 0.532 GB, free: 2.094 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:730:36-731:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:728:36-729:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:730:36-731:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:728:36-729:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.001552/0.3351, allocations: 0.6369 MB / 0.5326 GB, free: 1.75 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003093/0.3382, allocations: 1.194 MB / 0.5338 GB, free: 1.223 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.001674/0.3399, allocations: 1.434 MB / 0.5352 GB, free: 0.6719 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004177/0.3403, allocations: 260 kB / 0.5355 GB, free: 0.5859 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007394/0.341, allocations: 467.2 kB / 0.5359 GB, free: 440 kB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006085/0.3417, allocations: 445 kB / 0.5363 GB, free: 292 kB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 6.274e-05/0.3417, allocations: 20.22 kB / 0.5364 GB, free: 292 kB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001914/0.3437, allocations: 0.9454 MB / 0.5373 GB, free: 36 kB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002233/0.3439, allocations: 146.7 kB / 0.5374 GB, free: 15.98 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001398/0.344, allocations: 121.2 kB / 0.5375 GB, free: 15.91 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001243/0.3453, allocations: 0.913 MB / 0.5384 GB, free: 15.71 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.3453, allocations: 0 / 0.5384 GB, free: 15.71 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.954e-06/0.3453, allocations: 1.375 kB / 0.5384 GB, free: 15.71 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.126e-05/0.3453, allocations: 0 / 0.5384 GB, free: 15.71 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.0015/0.3468, allocations: 0.8626 MB / 0.5393 GB, free: 15.03 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.918e-05/0.3469, allocations: 9.656 kB / 0.5393 GB, free: 15.03 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002192/0.3471, allocations: 65.44 kB / 0.5393 GB, free: 15 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006/0.3477, allocations: 430.2 kB / 0.5397 GB, free: 14.68 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.057e-05/0.3478, allocations: 21.75 kB / 0.5398 GB, free: 14.67 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.974e-05/0.3478, allocations: 31.11 kB / 0.5398 GB, free: 14.66 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008815/0.3487, allocations: 0.5219 MB / 0.5403 GB, free: 14.39 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.366e-05/0.3487, allocations: 1.406 kB / 0.5403 GB, free: 14.39 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.845e-05/0.3488, allocations: 12.59 kB / 0.5403 GB, free: 14.38 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.768e-05/0.3488, allocations: 26.88 kB / 0.5403 GB, free: 14.38 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007245/0.3496, allocations: 467.3 kB / 0.5408 GB, free: 14.19 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003005/0.3526, allocations: 2.258 MB / 0.543 GB, free: 12.22 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004172/0.353, allocations: 236.1 kB / 0.5432 GB, free: 12.09 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002177/0.3532, allocations: 140.3 kB / 0.5434 GB, free: 12.01 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001148/0.3544, allocations: 1.021 MB / 0.5444 GB, free: 11 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003221/0.3547, allocations: 216.6 kB / 0.5446 GB, free: 10.82 MB / 362.7 MB Notification: Performance of pre-optimization done (n=18): time 1.383e-06/0.3547, allocations: 0 / 0.5446 GB, free: 10.82 MB / 362.7 MB Notification: Performance of matching and sorting (n=18): time 0.0006708/0.3554, allocations: 380.1 kB / 0.5449 GB, free: 10.61 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000116/0.3555, allocations: 240.1 kB / 0.5452 GB, free: 10.32 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006399/0.3562, allocations: 0.5187 MB / 0.5457 GB, free: 10 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.267e-05/0.3562, allocations: 36.02 kB / 0.5457 GB, free: 9.965 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002052/0.3564, allocations: 284.5 kB / 0.546 GB, free: 9.711 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.282e-05/0.3565, allocations: 52.55 kB / 0.546 GB, free: 9.668 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.119e-05/0.3565, allocations: 10.22 kB / 0.546 GB, free: 9.66 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001474/0.3567, allocations: 363 kB / 0.5464 GB, free: 9.309 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002173/0.3569, allocations: 128.6 kB / 0.5465 GB, free: 9.246 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003424/0.3573, allocations: 299.9 kB / 0.5468 GB, free: 8.961 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003006/0.3576, allocations: 208.2 kB / 0.547 GB, free: 8.836 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.058e-06/0.3576, allocations: 1.125 kB / 0.547 GB, free: 8.836 MB / 362.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.000778/0.3584, allocations: 0.5256 MB / 0.5475 GB, free: 8.551 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001534/0.3585, allocations: 252.5 kB / 0.5477 GB, free: 8.246 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.128e-05/0.3586, allocations: 5 kB / 0.5477 GB, free: 8.246 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.067e-05/0.3586, allocations: 7.844 kB / 0.5477 GB, free: 8.246 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003078/0.3589, allocations: 79.08 kB / 0.5478 GB, free: 8.227 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.417e-05/0.3589, allocations: 10.41 kB / 0.5478 GB, free: 8.223 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003694/0.3593, allocations: 65.95 kB / 0.5479 GB, free: 8.18 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.133e-05/0.3593, allocations: 20.88 kB / 0.5479 GB, free: 8.176 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.444e-06/0.3594, allocations: 3.562 kB / 0.5479 GB, free: 8.176 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007185/0.3601, allocations: 477.9 kB / 0.5484 GB, free: 7.938 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.171e-06/0.3601, allocations: 4.188 kB / 0.5484 GB, free: 7.938 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.288e-06/0.3601, allocations: 11.17 kB / 0.5484 GB, free: 7.934 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002786/0.3604, allocations: 83.62 kB / 0.5485 GB, free: 7.914 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.237e-06/0.3604, allocations: 5.969 kB / 0.5485 GB, free: 7.914 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003301/0.3608, allocations: 44.08 kB / 0.5485 GB, free: 7.891 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.837e-05/0.3608, allocations: 24.59 kB / 0.5485 GB, free: 7.883 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,p_table.a,p_table.b,p_table.last,$PRE.p_table.nextEvent,p_table.nextEvent,p_table.nextEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (44): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000281/0.3611, allocations: 310.4 kB / 0.5488 GB, free: 7.602 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.416e-05/0.3612, allocations: 53.19 kB / 0.5489 GB, free: 7.574 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005895/0.3618, allocations: 363.2 kB / 0.5492 GB, free: 7.359 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.542e-06/0.3618, allocations: 2.344 kB / 0.5492 GB, free: 7.359 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.3618, allocations: 3.938 kB / 0.5492 GB, free: 7.355 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.3618, allocations: 4 kB / 0.5492 GB, free: 7.352 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004222/0.3622, allocations: 416.4 kB / 0.5496 GB, free: 6.988 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.3622, allocations: 0 / 0.5496 GB, free: 6.988 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001168/0.3624, allocations: 28.48 kB / 0.5497 GB, free: 6.98 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.825e-06/0.3624, allocations: 1.281 kB / 0.5497 GB, free: 6.98 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.067e-05/0.3624, allocations: 7.312 kB / 0.5497 GB, free: 6.977 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.458e-06/0.3624, allocations: 4.953 kB / 0.5497 GB, free: 6.973 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.3624, allocations: 0 / 0.5497 GB, free: 6.973 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004828/0.3629, allocations: 357.2 kB / 0.55 GB, free: 6.754 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001158/0.363, allocations: 134.3 kB / 0.5501 GB, free: 6.617 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.181e-05/0.3631, allocations: 7.688 kB / 0.5502 GB, free: 6.613 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002375/0.3633, allocations: 25.28 kB / 0.5502 GB, free: 6.598 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.998e-05/0.3634, allocations: 9.703 kB / 0.5502 GB, free: 6.594 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.087e-05/0.3634, allocations: 10.59 kB / 0.5502 GB, free: 6.59 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000421/0.3639, allocations: 364.8 kB / 0.5505 GB, free: 6.375 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3639, allocations: 0 / 0.5505 GB, free: 6.375 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001403/0.3653, allocations: 438.5 kB / 0.551 GB, free: 6.277 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,p_table.a,p_table.b,p_table.last,p_table.nextEvent,p_table.nextEventScaled) * Number of discrete states: 6 (p_table.nextEvent,p_table.last,p_table.nextEventScaled,p_table.b,p_table.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000913/0.3662, allocations: 412.1 kB / 0.5514 GB, free: 6.047 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0009738/0.3672, allocations: 0.6799 MB / 0.552 GB, free: 5.645 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.3672, allocations: 1.219 kB / 0.552 GB, free: 5.645 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002007/0.3674, allocations: 182.4 kB / 0.5522 GB, free: 5.52 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009014/0.3683, allocations: 185 kB / 0.5524 GB, free: 5.434 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001282/0.3696, allocations: 0.9981 MB / 0.5533 GB, free: 4.742 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003774/0.37, allocations: 0.8389 MB / 0.5542 GB, free: 3.973 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001135/0.3701, allocations: 48.12 kB / 0.5542 GB, free: 3.957 MB / 362.7 MB Notification: Performance of SimCode: time 3.6e-07/0.3701, allocations: 0 / 0.5542 GB, free: 3.957 MB / 362.7 MB Notification: Performance of Templates: time 0.01321/0.3833, allocations: 10.08 MB / 0.5641 GB, free: 11.04 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Pipes/StaticPipe/StaticPipe.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches