Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.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) 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(Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TestCylinder",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TestCylinder",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.001747/0.001747, allocations: 113.4 kB / 17.07 MB, free: 5.988 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.001952/0.001952, allocations: 193.4 kB / 18 MB, free: 5.074 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.383/1.383, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001451/0.001451, allocations: 47.92 kB / 350.8 MB, free: 3.75 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2418/0.2433, allocations: 49.44 MB / 400.2 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder): time 0.004301/0.2476, allocations: 3.006 MB / 403.2 MB, free: 5.797 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002127/0.2498, allocations: 1.254 MB / 404.5 MB, free: 4.535 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000156/0.25, allocations: 11.94 kB / 404.5 MB, free: 4.523 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004747/0.2505, allocations: 147.2 kB / 404.6 MB, free: 4.379 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000405/0.2509, allocations: 170.8 kB / 404.8 MB, free: 4.211 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004217/0.2513, allocations: 181.5 kB / 405 MB, free: 4.035 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004789/0.2518, allocations: 422.2 kB / 405.4 MB, free: 3.621 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001936/0.252, allocations: 111.4 kB / 405.5 MB, free: 3.512 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002029/0.2522, allocations: 167.3 kB / 405.7 MB, free: 3.348 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002516/0.2525, allocations: 191.2 kB / 405.9 MB, free: 3.16 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.568e-05/0.2526, allocations: 32 kB / 405.9 MB, free: 3.129 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001295/0.2527, allocations: 52 kB / 405.9 MB, free: 3.078 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001136/0.2528, allocations: 91.61 kB / 406 MB, free: 2.988 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001813/0.253, allocations: 179 kB / 406.2 MB, free: 2.812 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005175/0.2535, allocations: 449.1 kB / 406.6 MB, free: 2.375 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.2536, allocations: 4 kB / 406.6 MB, free: 2.371 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2536, allocations: 0 / 406.6 MB, free: 2.371 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.264e-06/0.2536, allocations: 0 / 406.6 MB, free: 2.371 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001033/0.2546, allocations: 0.6941 MB / 407.3 MB, free: 1.625 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.442e-05/0.2547, allocations: 8.031 kB / 407.3 MB, free: 1.617 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001013/0.2548, allocations: 71.23 kB / 407.4 MB, free: 1.539 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.556e-05/0.2549, allocations: 48.66 kB / 407.5 MB, free: 1.492 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004252/0.2553, allocations: 332 kB / 407.8 MB, free: 1.133 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.489e-05/0.2553, allocations: 20.94 kB / 407.8 MB, free: 1.113 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.898e-05/0.2554, allocations: 31.94 kB / 407.8 MB, free: 1.082 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004925/0.2559, allocations: 303.1 kB / 408.1 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.934e-05/0.2559, allocations: 3.984 kB / 408.1 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.892e-05/0.2559, allocations: 16 kB / 408.2 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.157e-06/0.256, allocations: 8 kB / 408.2 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003292/0.2563, allocations: 178.1 kB / 408.3 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001299/0.2576, allocations: 0.8601 MB / 409.2 MB, free: 15.63 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005483/0.2582, allocations: 255.4 kB / 409.4 MB, free: 15.37 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001737/0.2583, allocations: 101.4 kB / 409.5 MB, free: 15.27 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.967e-05/0.2584, allocations: 4.281 kB / 409.6 MB, free: 15.27 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002961/0.2587, allocations: 170.6 kB / 409.7 MB, free: 15.09 MB / 334.1 MB Notification: Performance of pre-optimization done (n=34): time 3.637e-06/0.2587, allocations: 7.922 kB / 409.7 MB, free: 15.08 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.002277/0.261, allocations: 1.302 MB / 411 MB, free: 13.66 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001118/0.2611, allocations: 195.9 kB / 411.2 MB, free: 13.43 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003497/0.2615, allocations: 328.5 kB / 411.5 MB, free: 13.09 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.929e-05/0.2615, allocations: 37.7 kB / 411.6 MB, free: 13.05 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001375/0.2616, allocations: 184.7 kB / 411.8 MB, free: 12.87 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001165/0.2618, allocations: 154.7 kB / 411.9 MB, free: 12.71 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001081/0.2619, allocations: 74.12 kB / 412 MB, free: 12.64 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001591/0.2621, allocations: 350.7 kB / 412.3 MB, free: 12.29 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001865/0.2622, allocations: 88.84 kB / 412.4 MB, free: 12.2 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002542/0.2625, allocations: 177.3 kB / 412.6 MB, free: 11.99 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003987/0.2629, allocations: 250.2 kB / 412.8 MB, free: 11.73 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.293e-06/0.2629, allocations: 0 / 412.8 MB, free: 11.73 MB / 334.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0005713/0.2635, allocations: 358.5 kB / 413.2 MB, free: 11.37 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.374e-05/0.2635, allocations: 8 kB / 413.2 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.039e-06/0.2635, allocations: 0 / 413.2 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.661e-05/0.2636, allocations: 28.97 kB / 413.2 MB, free: 11.33 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003234/0.264, allocations: 87.84 kB / 413.3 MB, free: 11.25 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001149/0.2651, allocations: 1.39 MB / 414.7 MB, free: 9.715 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001787/0.2653, allocations: 19.95 kB / 414.7 MB, free: 9.695 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.554e-05/0.2653, allocations: 16 kB / 414.7 MB, free: 9.68 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.combiTimeTable.nextTimeEvent,$whenCondition1,combiTimeTable.nextTimeEventScaled,$PRE.combiTimeTable.nextTimeEventScaled,combiTimeTable.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001809/0.2655, allocations: 158.3 kB / 414.9 MB, free: 9.516 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.989e-05/0.2656, allocations: 43.7 kB / 414.9 MB, free: 9.473 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.523e-05/0.2657, allocations: 47.97 kB / 415 MB, free: 9.426 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.027e-06/0.2657, allocations: 4 kB / 415 MB, free: 9.422 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.529e-06/0.2657, allocations: 3.984 kB / 415 MB, free: 9.418 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006742/0.2664, allocations: 0.6534 MB / 415.6 MB, free: 8.66 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001145/0.2675, allocations: 0.8452 MB / 416.5 MB, free: 7.746 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.896e-06/0.2676, allocations: 8.125 kB / 416.5 MB, free: 7.738 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003184/0.2679, allocations: 79.89 kB / 416.6 MB, free: 7.66 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.2679, allocations: 0 / 416.6 MB, free: 7.66 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.321e-05/0.2679, allocations: 8 kB / 416.6 MB, free: 7.652 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.568e-06/0.2679, allocations: 4 kB / 416.6 MB, free: 7.648 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.2679, allocations: 0 / 416.6 MB, free: 7.648 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007711/0.2687, allocations: 0.5506 MB / 417.1 MB, free: 7.07 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001437/0.2689, allocations: 136.9 kB / 417.3 MB, free: 6.918 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.837e-05/0.2689, allocations: 12.12 kB / 417.3 MB, free: 6.906 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002223/0.2692, allocations: 19.98 kB / 417.3 MB, free: 6.887 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.606e-05/0.2692, allocations: 31.89 kB / 417.3 MB, free: 6.855 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.246e-05/0.2693, allocations: 16 kB / 417.3 MB, free: 6.84 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002415/0.2695, allocations: 239 kB / 417.6 MB, free: 6.609 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.546e-06/0.2695, allocations: 0 / 417.6 MB, free: 6.609 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003923/0.2699, allocations: 111.8 kB / 417.7 MB, free: 6.5 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 5 (cylinder1.m,cylinder1.H,cylinder2.H,springDamper.s_rel,springDamper.v_rel) * Number of discrete variables: 3 ($whenCondition1,combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 2 (combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.002411/0.2723, allocations: 1.383 MB / 419.1 MB, free: 5.242 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006472/0.273, allocations: 379.3 kB / 419.4 MB, free: 4.859 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.273, allocations: 0 / 419.4 MB, free: 4.859 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000227/0.2732, allocations: 140.2 kB / 419.6 MB, free: 4.723 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005465/0.2738, allocations: 103.7 kB / 419.7 MB, free: 4.625 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004586/0.2784, allocations: 3.642 MB / 423.3 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004177/0.2788, allocations: 0.8002 MB / 424.1 MB, free: 16 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001924/0.279, allocations: 51.31 kB / 424.2 MB, free: 15.96 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001863/0.2792, allocations: 131.3 kB / 424.3 MB, free: 15.84 MB / 350.1 MB Notification: Performance of SimCode: time 2.61e-07/0.2792, allocations: 0 / 424.3 MB, free: 15.84 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03697/0.3162, allocations: 9.296 MB / 433.6 MB, free: 6.754 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.98/12.3, allocations: 15.97 kB / 433.6 MB, free: 6.738 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TestCylinder_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TestCylinder.fmu > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/TestCylinder/TestCylinder.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches