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.00112/0.00112, allocations: 112.8 kB / 17.06 MB, free: 5.969 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.001118/0.001118, allocations: 200 kB / 18.01 MB, free: 5.047 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.306/1.306, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009958/0.0009958, allocations: 51.92 kB / 350.8 MB, free: 3.746 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2358/0.2368, allocations: 49.44 MB / 400.2 MB, free: 8.391 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder): time 0.004162/0.241, allocations: 2.999 MB / 403.2 MB, free: 5.789 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001915/0.243, allocations: 1.258 MB / 404.5 MB, free: 4.523 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001326/0.2431, allocations: 4 kB / 404.5 MB, free: 4.52 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004099/0.2435, allocations: 147.1 kB / 404.6 MB, free: 4.375 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000371/0.2439, allocations: 178.8 kB / 404.8 MB, free: 4.199 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003902/0.2443, allocations: 182.4 kB / 405 MB, free: 4.023 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004413/0.2448, allocations: 426.2 kB / 405.4 MB, free: 3.605 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001957/0.245, allocations: 107.4 kB / 405.5 MB, free: 3.5 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001992/0.2452, allocations: 179.3 kB / 405.7 MB, free: 3.324 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002255/0.2454, allocations: 187.2 kB / 405.9 MB, free: 3.141 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.794e-05/0.2455, allocations: 28 kB / 405.9 MB, free: 3.113 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001096/0.2456, allocations: 55.98 kB / 405.9 MB, free: 3.059 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.763e-05/0.2457, allocations: 83.69 kB / 406 MB, free: 2.977 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001721/0.2459, allocations: 190.9 kB / 406.2 MB, free: 2.789 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004501/0.2463, allocations: 437.2 kB / 406.6 MB, free: 2.363 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.2463, allocations: 0 / 406.6 MB, free: 2.363 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.2464, allocations: 0 / 406.6 MB, free: 2.363 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.753e-06/0.2464, allocations: 0 / 406.6 MB, free: 2.363 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.0009513/0.2473, allocations: 0.698 MB / 407.3 MB, free: 1.613 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.583e-05/0.2474, allocations: 12.03 kB / 407.4 MB, free: 1.602 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.814e-05/0.2475, allocations: 67.23 kB / 407.4 MB, free: 1.527 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.065e-05/0.2475, allocations: 52.64 kB / 407.5 MB, free: 1.477 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004144/0.248, allocations: 320.1 kB / 407.8 MB, free: 1.129 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.103e-05/0.248, allocations: 24.94 kB / 407.8 MB, free: 1.105 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.274e-05/0.2481, allocations: 43.88 kB / 407.9 MB, free: 1.062 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004812/0.2485, allocations: 299.1 kB / 408.1 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.652e-05/0.2486, allocations: 0 / 408.1 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.133e-05/0.2486, allocations: 15.98 kB / 408.2 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.013e-06/0.2486, allocations: 8 kB / 408.2 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003105/0.2489, allocations: 186.1 kB / 408.3 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001231/0.2502, allocations: 0.8601 MB / 409.2 MB, free: 15.61 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005226/0.2507, allocations: 263.4 kB / 409.5 MB, free: 15.34 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001795/0.2509, allocations: 101.4 kB / 409.6 MB, free: 15.24 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.652e-05/0.2509, allocations: 4.281 kB / 409.6 MB, free: 15.24 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002916/0.2512, allocations: 166.6 kB / 409.7 MB, free: 15.07 MB / 334.1 MB Notification: Performance of pre-optimization done (n=34): time 1.674e-06/0.2512, allocations: 4 kB / 409.7 MB, free: 15.06 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.0022/0.2534, allocations: 1.306 MB / 411 MB, free: 13.64 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.564e-05/0.2536, allocations: 187.9 kB / 411.2 MB, free: 13.41 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003202/0.2539, allocations: 336.4 kB / 411.6 MB, free: 13.07 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.541e-05/0.2539, allocations: 37.64 kB / 411.6 MB, free: 13.03 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001167/0.254, allocations: 188.7 kB / 411.8 MB, free: 12.84 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000102/0.2542, allocations: 150.7 kB / 411.9 MB, free: 12.69 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.557e-05/0.2543, allocations: 74.12 kB / 412 MB, free: 12.61 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001274/0.2544, allocations: 350.7 kB / 412.3 MB, free: 12.26 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001592/0.2546, allocations: 84.84 kB / 412.4 MB, free: 12.18 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002296/0.2548, allocations: 185.3 kB / 412.6 MB, free: 11.96 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003736/0.2552, allocations: 246.2 kB / 412.8 MB, free: 11.71 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.2552, allocations: 4 kB / 412.8 MB, free: 11.7 MB / 334.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0005284/0.2557, allocations: 358.5 kB / 413.2 MB, free: 11.34 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.387e-05/0.2558, allocations: 4 kB / 413.2 MB, free: 11.34 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/0.2558, allocations: 4 kB / 413.2 MB, free: 11.34 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.694e-05/0.2558, allocations: 12.86 kB / 413.2 MB, free: 11.32 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003165/0.2562, allocations: 96.02 kB / 413.3 MB, free: 11.23 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001057/0.2572, allocations: 1.386 MB / 414.7 MB, free: 9.699 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001749/0.2574, allocations: 16.03 kB / 414.7 MB, free: 9.684 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.159e-05/0.2575, allocations: 12 kB / 414.7 MB, free: 9.672 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.0001764/0.2576, allocations: 170.2 kB / 414.9 MB, free: 9.496 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.637e-05/0.2577, allocations: 43.7 kB / 414.9 MB, free: 9.453 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.556e-05/0.2578, allocations: 43.94 kB / 415 MB, free: 9.41 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.839e-06/0.2578, allocations: 12.06 kB / 415 MB, free: 9.398 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.214e-06/0.2578, allocations: 0 / 415 MB, free: 9.398 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005859/0.2584, allocations: 0.6573 MB / 415.6 MB, free: 8.637 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001069/0.2595, allocations: 0.8453 MB / 416.5 MB, free: 7.723 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.21e-06/0.2595, allocations: 3.984 kB / 416.5 MB, free: 7.719 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003181/0.2598, allocations: 80.02 kB / 416.6 MB, free: 7.641 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.01e-06/0.2598, allocations: 4 kB / 416.6 MB, free: 7.637 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.244e-05/0.2599, allocations: 12 kB / 416.6 MB, free: 7.625 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.977e-06/0.2599, allocations: 4 kB / 416.6 MB, free: 7.621 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.2599, allocations: 0 / 416.6 MB, free: 7.621 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007041/0.2606, allocations: 0.5467 MB / 417.1 MB, free: 7.047 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001335/0.2607, allocations: 136.9 kB / 417.3 MB, free: 6.895 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.941e-05/0.2608, allocations: 12 kB / 417.3 MB, free: 6.883 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002173/0.261, allocations: 19.92 kB / 417.3 MB, free: 6.863 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.363e-05/0.2611, allocations: 27.91 kB / 417.3 MB, free: 6.836 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.659e-05/0.2611, allocations: 12 kB / 417.3 MB, free: 6.824 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002152/0.2613, allocations: 235.1 kB / 417.6 MB, free: 6.598 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.372e-06/0.2613, allocations: 0 / 417.6 MB, free: 6.598 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003808/0.2617, allocations: 111.8 kB / 417.7 MB, free: 6.488 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.00179/0.2635, allocations: 1.395 MB / 419.1 MB, free: 5.215 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005973/0.2641, allocations: 374.8 kB / 419.4 MB, free: 4.836 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.584e-06/0.2641, allocations: 0 / 419.4 MB, free: 4.836 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002134/0.2644, allocations: 140.4 kB / 419.6 MB, free: 4.699 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005545/0.2649, allocations: 98.53 kB / 419.7 MB, free: 4.605 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004208/0.2691, allocations: 3.639 MB / 423.3 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003694/0.2695, allocations: 0.8041 MB / 424.1 MB, free: 16 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001731/0.2697, allocations: 51.23 kB / 424.2 MB, free: 15.95 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001776/0.2699, allocations: 139.3 kB / 424.3 MB, free: 15.81 MB / 350.1 MB Notification: Performance of SimCode: time 4.81e-07/0.2699, allocations: 0 / 424.3 MB, free: 15.81 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03042/0.3003, allocations: 9.301 MB / 433.6 MB, free: 6.723 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.44/11.74, allocations: 11.91 kB / 433.6 MB, free: 6.711 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