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.001323/0.001323, allocations: 111.7 kB / 17.06 MB, free: 6.016 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.001232/0.001232, allocations: 189.4 kB / 18 MB, free: 5.098 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.415/1.415, allocations: 222.9 MB / 241.7 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001422/0.001422, allocations: 47.92 kB / 350.8 MB, free: 3.785 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.238/0.2395, allocations: 49.44 MB / 400.2 MB, free: 8.43 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder): time 0.00458/0.2441, allocations: 2.998 MB / 403.2 MB, free: 5.824 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002356/0.2464, allocations: 1.258 MB / 404.5 MB, free: 4.559 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001606/0.2466, allocations: 8 kB / 404.5 MB, free: 4.551 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000481/0.2471, allocations: 139.1 kB / 404.6 MB, free: 4.414 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004519/0.2476, allocations: 178.8 kB / 404.8 MB, free: 4.238 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004374/0.2481, allocations: 171.5 kB / 405 MB, free: 4.07 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005055/0.2486, allocations: 434.2 kB / 405.4 MB, free: 3.645 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002195/0.2488, allocations: 107.5 kB / 405.5 MB, free: 3.539 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002217/0.249, allocations: 171.3 kB / 405.7 MB, free: 3.371 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002646/0.2493, allocations: 191.2 kB / 405.9 MB, free: 3.184 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.221e-05/0.2494, allocations: 28 kB / 405.9 MB, free: 3.156 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001482/0.2495, allocations: 56 kB / 405.9 MB, free: 3.102 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001093/0.2496, allocations: 83.67 kB / 406 MB, free: 3.02 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000212/0.2499, allocations: 187 kB / 406.2 MB, free: 2.836 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005673/0.2504, allocations: 437.2 kB / 406.6 MB, free: 2.41 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.2505, allocations: 0 / 406.6 MB, free: 2.41 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.2505, allocations: 0 / 406.6 MB, free: 2.41 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.702e-06/0.2505, allocations: 0 / 406.6 MB, free: 2.41 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.001089/0.2516, allocations: 0.698 MB / 407.3 MB, free: 1.66 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.829e-05/0.2516, allocations: 11.89 kB / 407.3 MB, free: 1.648 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001034/0.2517, allocations: 75.23 kB / 407.4 MB, free: 1.566 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.346e-05/0.2518, allocations: 48.64 kB / 407.5 MB, free: 1.52 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004869/0.2523, allocations: 336 kB / 407.8 MB, free: 1.156 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.065e-05/0.2523, allocations: 16.94 kB / 407.8 MB, free: 1.141 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.647e-05/0.2524, allocations: 35.94 kB / 407.8 MB, free: 1.105 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005349/0.2529, allocations: 303.1 kB / 408.1 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.857e-05/0.253, allocations: 0 / 408.1 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.156e-05/0.253, allocations: 19.98 kB / 408.2 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.148e-05/0.253, allocations: 8 kB / 408.2 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000356/0.2534, allocations: 182.1 kB / 408.3 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001397/0.2548, allocations: 0.8523 MB / 409.2 MB, free: 15.66 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005804/0.2554, allocations: 271 kB / 409.5 MB, free: 15.39 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001879/0.2556, allocations: 101.4 kB / 409.6 MB, free: 15.29 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.772e-05/0.2556, allocations: 4.281 kB / 409.6 MB, free: 15.28 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003109/0.2559, allocations: 158.6 kB / 409.7 MB, free: 15.12 MB / 334.1 MB Notification: Performance of pre-optimization done (n=34): time 1.854e-06/0.256, allocations: 4 kB / 409.7 MB, free: 15.11 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.002431/0.2584, allocations: 1.315 MB / 411 MB, free: 13.68 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000124/0.2585, allocations: 187.9 kB / 411.2 MB, free: 13.46 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003826/0.2589, allocations: 336.4 kB / 411.5 MB, free: 13.11 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.739e-05/0.259, allocations: 37.7 kB / 411.6 MB, free: 13.07 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001515/0.2591, allocations: 184.7 kB / 411.8 MB, free: 12.89 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001173/0.2593, allocations: 154.6 kB / 411.9 MB, free: 12.73 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001184/0.2594, allocations: 78.12 kB / 412 MB, free: 12.65 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000173/0.2596, allocations: 350.7 kB / 412.3 MB, free: 12.3 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001755/0.2597, allocations: 84.84 kB / 412.4 MB, free: 12.22 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00026/0.26, allocations: 181.3 kB / 412.6 MB, free: 12 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004182/0.2604, allocations: 250.2 kB / 412.8 MB, free: 11.75 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.352e-06/0.2604, allocations: 0 / 412.8 MB, free: 11.75 MB / 334.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.000601/0.2611, allocations: 354.5 kB / 413.2 MB, free: 11.39 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.705e-05/0.2611, allocations: 8 kB / 413.2 MB, free: 11.38 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.2611, allocations: 0 / 413.2 MB, free: 11.38 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.72e-05/0.2612, allocations: 20.98 kB / 413.2 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003448/0.2615, allocations: 91.89 kB / 413.3 MB, free: 11.27 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001255/0.2628, allocations: 1.39 MB / 414.7 MB, free: 9.738 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001803/0.263, allocations: 12 kB / 414.7 MB, free: 9.727 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.748e-05/0.263, allocations: 16 kB / 414.7 MB, free: 9.711 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.0001988/0.2632, allocations: 170.3 kB / 414.9 MB, free: 9.535 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.182e-05/0.2633, allocations: 43.7 kB / 414.9 MB, free: 9.492 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.881e-05/0.2634, allocations: 43.88 kB / 415 MB, free: 9.449 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.468e-06/0.2634, allocations: 8.062 kB / 415 MB, free: 9.441 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.385e-06/0.2634, allocations: 0 / 415 MB, free: 9.441 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007068/0.2641, allocations: 0.6573 MB / 415.6 MB, free: 8.68 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001184/0.2653, allocations: 0.8414 MB / 416.5 MB, free: 7.77 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.202e-06/0.2653, allocations: 4.125 kB / 416.5 MB, free: 7.766 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003239/0.2657, allocations: 79.89 kB / 416.6 MB, free: 7.688 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.347e-06/0.2657, allocations: 4 kB / 416.6 MB, free: 7.684 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.354e-05/0.2657, allocations: 8 kB / 416.6 MB, free: 7.676 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.769e-06/0.2657, allocations: 4 kB / 416.6 MB, free: 7.672 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.2657, allocations: 0 / 416.6 MB, free: 7.672 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007994/0.2665, allocations: 0.5506 MB / 417.1 MB, free: 7.094 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001446/0.2667, allocations: 136.9 kB / 417.3 MB, free: 6.941 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.871e-05/0.2667, allocations: 12 kB / 417.3 MB, free: 6.93 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000229/0.267, allocations: 23.91 kB / 417.3 MB, free: 6.906 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.437e-05/0.2671, allocations: 27.91 kB / 417.3 MB, free: 6.879 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.219e-05/0.2671, allocations: 16 kB / 417.3 MB, free: 6.863 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002496/0.2674, allocations: 235.1 kB / 417.6 MB, free: 6.637 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.933e-06/0.2674, allocations: 0 / 417.6 MB, free: 6.637 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004025/0.2678, allocations: 107.8 kB / 417.7 MB, free: 6.531 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.002442/0.2702, allocations: 1.397 MB / 419.1 MB, free: 5.258 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006653/0.2709, allocations: 375.4 kB / 419.4 MB, free: 4.879 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.2709, allocations: 0 / 419.4 MB, free: 4.879 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002406/0.2712, allocations: 144.3 kB / 419.6 MB, free: 4.738 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000552/0.2717, allocations: 96.56 kB / 419.7 MB, free: 4.652 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004826/0.2766, allocations: 3.646 MB / 423.3 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000447/0.277, allocations: 0.8002 MB / 424.1 MB, free: 40 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001997/0.2772, allocations: 55.28 kB / 424.2 MB, free: 15.98 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002005/0.2775, allocations: 135.3 kB / 424.3 MB, free: 15.85 MB / 350.1 MB Notification: Performance of SimCode: time 4.1e-07/0.2775, allocations: 0 / 424.3 MB, free: 15.85 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03746/0.3149, allocations: 9.299 MB / 433.6 MB, free: 6.766 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.14/12.46, allocations: 15.97 kB / 433.6 MB, free: 6.75 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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 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.csv","/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