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.0009932/0.0009932, allocations: 198.9 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.263/1.263, allocations: 226.5 MB / 243.4 MB, free: 6.5 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007657/0.0007657, allocations: 91.38 kB / 295.5 MB, free: 6.688 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3248/0.3248, allocations: 44.83 MB / 392.3 MB, free: 35.74 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002657/0.0002658, allocations: 8 kB / 465.3 MB, free: 12.68 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3147/0.315, allocations: 62.95 MB / 0.5159 GB, free: 37.14 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe): time 0.008864/0.3239, allocations: 11.82 MB / 0.5274 GB, free: 28.64 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.005507/0.3294, allocations: 5.162 MB / 0.5325 GB, free: 25.03 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007062/0.3302, allocations: 19.97 kB / 0.5325 GB, free: 25.02 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007092/0.3309, allocations: 164.2 kB / 0.5326 GB, free: 24.93 MB / 378.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.001881/0.3328, allocations: 0.6569 MB / 0.5333 GB, free: 24.59 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003411/0.3362, allocations: 1.221 MB / 0.5345 GB, free: 24.05 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.001484/0.3377, allocations: 1.436 MB / 0.5359 GB, free: 23.5 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003864/0.3381, allocations: 269.7 kB / 0.5361 GB, free: 23.41 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006883/0.3388, allocations: 448.8 kB / 0.5366 GB, free: 23.25 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005263/0.3393, allocations: 434.9 kB / 0.537 GB, free: 23.11 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5.92e-05/0.3394, allocations: 19.75 kB / 0.537 GB, free: 23.11 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001662/0.3411, allocations: 1.005 MB / 0.538 GB, free: 22.84 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001437/0.3412, allocations: 146.1 kB / 0.5381 GB, free: 22.79 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002355/0.3415, allocations: 268.3 kB / 0.5384 GB, free: 22.64 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001104/0.3426, allocations: 0.9143 MB / 0.5393 GB, free: 22.44 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.279e-06/0.3426, allocations: 0.6562 kB / 0.5393 GB, free: 22.44 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.323e-06/0.3426, allocations: 3.938 kB / 0.5393 GB, free: 22.43 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.583e-06/0.3426, allocations: 0 / 0.5393 GB, free: 22.43 MB / 378.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.001333/0.344, allocations: 0.8594 MB / 0.5401 GB, free: 21.75 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.444e-05/0.344, allocations: 8.391 kB / 0.5401 GB, free: 21.75 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002053/0.3442, allocations: 64.38 kB / 0.5402 GB, free: 21.73 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005114/0.3447, allocations: 440.2 kB / 0.5406 GB, free: 21.4 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.667e-05/0.3448, allocations: 25.8 kB / 0.5406 GB, free: 21.39 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.345e-05/0.3448, allocations: 24.53 kB / 0.5406 GB, free: 21.38 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007217/0.3456, allocations: 0.5172 MB / 0.5411 GB, free: 21.11 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.275e-05/0.3456, allocations: 6.547 kB / 0.5412 GB, free: 21.11 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.412e-05/0.3456, allocations: 17.23 kB / 0.5412 GB, free: 21.09 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-05/0.3457, allocations: 32.5 kB / 0.5412 GB, free: 21.09 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006266/0.3463, allocations: 461.1 kB / 0.5416 GB, free: 20.93 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002742/0.3491, allocations: 2.259 MB / 0.5438 GB, free: 19.23 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003543/0.3494, allocations: 238.6 kB / 0.5441 GB, free: 19.13 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001773/0.3496, allocations: 133.8 kB / 0.5442 GB, free: 19.07 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009626/0.3506, allocations: 1.019 MB / 0.5452 GB, free: 18.18 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003075/0.3509, allocations: 221.7 kB / 0.5454 GB, free: 18.02 MB / 378.7 MB Notification: Performance of pre-optimization done (n=18): time 2.014e-06/0.3509, allocations: 0 / 0.5454 GB, free: 18.02 MB / 378.7 MB Notification: Performance of matching and sorting (n=18): time 0.0006187/0.3516, allocations: 377 kB / 0.5458 GB, free: 17.85 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.847e-05/0.3516, allocations: 241.2 kB / 0.546 GB, free: 17.57 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005559/0.3522, allocations: 0.5152 MB / 0.5465 GB, free: 17.32 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.517e-05/0.3522, allocations: 34.98 kB / 0.5465 GB, free: 17.28 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001526/0.3524, allocations: 294.9 kB / 0.5468 GB, free: 17.04 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.34e-05/0.3524, allocations: 53.81 kB / 0.5469 GB, free: 17 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.095e-05/0.3525, allocations: 6.281 kB / 0.5469 GB, free: 17 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.673e-05/0.3525, allocations: 357.5 kB / 0.5472 GB, free: 16.66 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001998/0.3527, allocations: 129.7 kB / 0.5473 GB, free: 16.62 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002822/0.353, allocations: 302.9 kB / 0.5476 GB, free: 16.36 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004311/0.3535, allocations: 455.2 kB / 0.5481 GB, free: 16 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.509e-06/0.3535, allocations: 2.062 kB / 0.5481 GB, free: 16 MB / 378.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0007372/0.3542, allocations: 0.523 MB / 0.5486 GB, free: 15.76 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001017/0.3543, allocations: 254.1 kB / 0.5488 GB, free: 15.46 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.034e-05/0.3544, allocations: 4.844 kB / 0.5488 GB, free: 15.46 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.912e-05/0.3544, allocations: 6.719 kB / 0.5488 GB, free: 15.46 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003214/0.3547, allocations: 77.89 kB / 0.5489 GB, free: 15.45 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.251e-05/0.3547, allocations: 14.12 kB / 0.5489 GB, free: 15.45 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003792/0.3551, allocations: 66.45 kB / 0.549 GB, free: 15.41 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.099e-05/0.3552, allocations: 25.7 kB / 0.549 GB, free: 15.4 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.261e-06/0.3552, allocations: 3.594 kB / 0.549 GB, free: 15.4 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006458/0.3558, allocations: 479.9 kB / 0.5495 GB, free: 15.2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.072e-06/0.3558, allocations: 8.156 kB / 0.5495 GB, free: 15.2 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.473e-06/0.3559, allocations: 7.594 kB / 0.5495 GB, free: 15.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000259/0.3561, allocations: 80.41 kB / 0.5496 GB, free: 15.18 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.326e-06/0.3561, allocations: 7.641 kB / 0.5496 GB, free: 15.18 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003047/0.3564, allocations: 50.31 kB / 0.5496 GB, free: 15.16 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.612e-05/0.3565, allocations: 21.5 kB / 0.5496 GB, free: 15.15 MB / 378.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.0002392/0.3567, allocations: 305.8 kB / 0.5499 GB, free: 14.89 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.341e-05/0.3568, allocations: 55.66 kB / 0.55 GB, free: 14.86 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005676/0.3574, allocations: 354.8 kB / 0.5503 GB, free: 14.69 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.93e-06/0.3574, allocations: 9.094 kB / 0.5503 GB, free: 14.68 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.3574, allocations: 1.906 kB / 0.5503 GB, free: 14.68 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.621e-06/0.3574, allocations: 4.547 kB / 0.5503 GB, free: 14.68 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000416/0.3578, allocations: 409.3 kB / 0.5507 GB, free: 14.4 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/0.3579, allocations: 4.641 kB / 0.5507 GB, free: 14.4 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001152/0.358, allocations: 22.12 kB / 0.5507 GB, free: 14.4 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.358, allocations: 1.062 kB / 0.5507 GB, free: 14.4 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.152e-05/0.358, allocations: 9.328 kB / 0.5508 GB, free: 14.39 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.484e-06/0.358, allocations: 1.031 kB / 0.5508 GB, free: 14.39 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.358, allocations: 3.938 kB / 0.5508 GB, free: 14.39 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004524/0.3585, allocations: 367.5 kB / 0.5511 GB, free: 14.19 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.414e-05/0.3586, allocations: 135.8 kB / 0.5512 GB, free: 14.05 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.458e-05/0.3587, allocations: 9.422 kB / 0.5512 GB, free: 14.05 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000253/0.3589, allocations: 19.95 kB / 0.5513 GB, free: 14.04 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.486e-05/0.359, allocations: 9.5 kB / 0.5513 GB, free: 14.04 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.395e-05/0.359, allocations: 12.47 kB / 0.5513 GB, free: 14.04 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003961/0.3594, allocations: 369.3 kB / 0.5516 GB, free: 13.87 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3594, allocations: 0 / 0.5516 GB, free: 13.87 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001115/0.3605, allocations: 434.2 kB / 0.5521 GB, free: 13.79 MB / 378.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.000892/0.3614, allocations: 412.6 kB / 0.5524 GB, free: 13.61 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008696/0.3623, allocations: 0.6663 MB / 0.5531 GB, free: 13.27 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.3623, allocations: 1.125 kB / 0.5531 GB, free: 13.27 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001745/0.3625, allocations: 186.6 kB / 0.5533 GB, free: 13.16 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009071/0.3634, allocations: 199.5 kB / 0.5535 GB, free: 13.11 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001239/0.3647, allocations: 0.9995 MB / 0.5544 GB, free: 12.54 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000296/0.365, allocations: 0.8461 MB / 0.5553 GB, free: 11.82 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001163/0.3651, allocations: 43.11 kB / 0.5553 GB, free: 11.81 MB / 378.7 MB Notification: Performance of SimCode: time 4.71e-07/0.3651, allocations: 0 / 0.5553 GB, free: 11.81 MB / 378.7 MB Notification: Performance of Templates: time 0.01441/0.3795, allocations: 10.1 MB / 0.5652 GB, free: 6.023 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