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.001571/0.001571, 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.001658/0.001658, 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.308/1.308, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001721/0.001721, allocations: 47.92 kB / 350.8 MB, free: 3.75 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2673/0.269, allocations: 49.43 MB / 400.2 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder): time 0.004244/0.2733, allocations: 3.004 MB / 403.2 MB, free: 5.801 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001911/0.2752, allocations: 1.258 MB / 404.5 MB, free: 4.535 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001678/0.2754, allocations: 4 kB / 404.5 MB, free: 4.531 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004731/0.2759, allocations: 143.2 kB / 404.6 MB, free: 4.391 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004273/0.2764, allocations: 190.8 kB / 404.8 MB, free: 4.203 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004198/0.2768, allocations: 171.4 kB / 405 MB, free: 4.039 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000452/0.2773, allocations: 430.2 kB / 405.4 MB, free: 3.617 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002006/0.2775, allocations: 107.5 kB / 405.5 MB, free: 3.512 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002058/0.2777, allocations: 179.3 kB / 405.7 MB, free: 3.336 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002334/0.2779, allocations: 187.2 kB / 405.9 MB, free: 3.152 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.803e-05/0.278, allocations: 28 kB / 405.9 MB, free: 3.125 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00012/0.2781, allocations: 56 kB / 405.9 MB, free: 3.07 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.559e-05/0.2782, allocations: 83.67 kB / 406 MB, free: 2.988 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001843/0.2784, allocations: 187 kB / 406.2 MB, free: 2.805 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004843/0.2789, allocations: 445.2 kB / 406.6 MB, free: 2.371 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.2789, allocations: 0 / 406.6 MB, free: 2.371 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.2789, allocations: 0 / 406.6 MB, free: 2.371 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.714e-06/0.2789, 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.0009498/0.2799, allocations: 0.6903 MB / 407.3 MB, free: 1.629 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.566e-05/0.2799, allocations: 8.031 kB / 407.3 MB, free: 1.621 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001016/0.28, allocations: 75.17 kB / 407.4 MB, free: 1.539 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.925e-05/0.2801, allocations: 48.66 kB / 407.5 MB, free: 1.492 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000439/0.2806, allocations: 336 kB / 407.8 MB, free: 1.129 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.483e-05/0.2806, allocations: 20.94 kB / 407.8 MB, free: 1.109 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.083e-05/0.2806, allocations: 27.94 kB / 407.8 MB, free: 1.082 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004819/0.2811, allocations: 307 kB / 408.1 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.839e-05/0.2812, allocations: 8 kB / 408.1 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.81e-05/0.2812, allocations: 12 kB / 408.2 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.468e-06/0.2812, allocations: 4 kB / 408.2 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003301/0.2815, allocations: 186.1 kB / 408.3 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001258/0.2828, allocations: 0.8601 MB / 409.2 MB, free: 15.62 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005003/0.2833, allocations: 258.5 kB / 409.5 MB, free: 15.37 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001658/0.2835, allocations: 101.4 kB / 409.6 MB, free: 15.27 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.247e-05/0.2835, allocations: 8.266 kB / 409.6 MB, free: 15.26 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002732/0.2838, allocations: 170.6 kB / 409.7 MB, free: 15.08 MB / 334.1 MB Notification: Performance of pre-optimization done (n=34): time 1.774e-06/0.2838, allocations: 0 / 409.7 MB, free: 15.08 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.002196/0.286, allocations: 1.306 MB / 411 MB, free: 13.66 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001328/0.2862, allocations: 195.8 kB / 411.2 MB, free: 13.43 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003556/0.2865, allocations: 328.5 kB / 411.5 MB, free: 13.09 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.935e-05/0.2866, allocations: 33.7 kB / 411.6 MB, free: 13.05 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001287/0.2867, allocations: 192.7 kB / 411.8 MB, free: 12.86 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001021/0.2868, allocations: 146.7 kB / 411.9 MB, free: 12.71 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001001/0.2869, allocations: 74.12 kB / 412 MB, free: 12.64 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000128/0.2871, allocations: 354.7 kB / 412.3 MB, free: 12.28 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001705/0.2872, allocations: 92.78 kB / 412.4 MB, free: 12.19 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002291/0.2875, allocations: 181.3 kB / 412.6 MB, free: 11.98 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003757/0.2879, allocations: 246.3 kB / 412.8 MB, free: 11.72 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/0.2879, allocations: 4 kB / 412.8 MB, free: 11.72 MB / 334.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0005366/0.2884, allocations: 358.5 kB / 413.2 MB, free: 11.36 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.509e-05/0.2884, allocations: 4 kB / 413.2 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.483e-06/0.2885, allocations: 4.125 kB / 413.2 MB, free: 11.35 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.038e-05/0.2886, allocations: 24.84 kB / 413.2 MB, free: 11.32 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003167/0.2889, allocations: 83.91 kB / 413.3 MB, free: 11.24 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001017/0.2899, allocations: 1.394 MB / 414.7 MB, free: 9.707 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001799/0.2901, allocations: 16.02 kB / 414.7 MB, free: 9.691 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.35e-05/0.2901, allocations: 12 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.0001682/0.2903, allocations: 166.2 kB / 414.9 MB, free: 9.508 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.678e-05/0.2904, allocations: 47.8 kB / 414.9 MB, free: 9.461 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.615e-05/0.2905, allocations: 43.88 kB / 415 MB, free: 9.418 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.551e-06/0.2905, allocations: 7.984 kB / 415 MB, free: 9.41 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.694e-06/0.2905, allocations: 4 kB / 415 MB, free: 9.406 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005844/0.2911, allocations: 0.6495 MB / 415.6 MB, free: 8.652 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001076/0.2922, allocations: 0.8492 MB / 416.5 MB, free: 7.734 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.2922, allocations: 0 / 416.5 MB, free: 7.734 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003222/0.2925, allocations: 75.89 kB / 416.6 MB, free: 7.66 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.3e-06/0.2925, allocations: 4 kB / 416.6 MB, free: 7.656 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.59e-05/0.2925, allocations: 12 kB / 416.6 MB, free: 7.645 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.228e-06/0.2926, allocations: 3.984 kB / 416.6 MB, free: 7.641 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.2926, allocations: 4 kB / 416.6 MB, free: 7.637 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000713/0.2933, allocations: 0.5468 MB / 417.1 MB, free: 7.062 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001257/0.2934, allocations: 141 kB / 417.3 MB, free: 6.906 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.919e-05/0.2935, allocations: 12 kB / 417.3 MB, free: 6.895 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002173/0.2937, allocations: 11.98 kB / 417.3 MB, free: 6.883 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.623e-05/0.2938, allocations: 35.91 kB / 417.3 MB, free: 6.848 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.759e-05/0.2938, allocations: 12 kB / 417.3 MB, free: 6.836 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002199/0.294, allocations: 239 kB / 417.6 MB, free: 6.605 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.463e-06/0.294, allocations: 0 / 417.6 MB, free: 6.605 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003789/0.2944, allocations: 103.8 kB / 417.7 MB, free: 6.504 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.001787/0.2962, allocations: 1.393 MB / 419.1 MB, free: 5.234 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006175/0.2968, allocations: 371.6 kB / 419.4 MB, free: 4.859 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.047e-06/0.2969, allocations: 12 kB / 419.4 MB, free: 4.848 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002291/0.2971, allocations: 143.9 kB / 419.6 MB, free: 4.707 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005471/0.2977, allocations: 90.28 kB / 419.7 MB, free: 4.621 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004357/0.302, allocations: 3.646 MB / 423.3 MB, free: 0.832 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003547/0.3024, allocations: 0.8041 MB / 424.1 MB, free: 4 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001805/0.3026, 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.0001752/0.3028, allocations: 131.4 kB / 424.3 MB, free: 15.82 MB / 350.1 MB Notification: Performance of SimCode: time 7.21e-07/0.3028, allocations: 0 / 424.3 MB, free: 15.82 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03076/0.3335, allocations: 9.303 MB / 433.6 MB, free: 6.734 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.71/12.04, allocations: 11.91 kB / 433.6 MB, free: 6.723 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