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.001361/0.001361, allocations: 108.2 kB / 16.92 MB, free: 6.145 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.001665/0.001665, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.333/1.333, allocations: 222.9 MB / 241.5 MB, free: 15.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001079/0.001079, allocations: 44.02 kB / 300.7 MB, free: 5.758 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08341/0.08451, allocations: 49.44 MB / 350.2 MB, free: 4.305 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder): time 0.004119/0.08866, allocations: 3 MB / 353.2 MB, free: 1.281 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001895/0.09058, allocations: 1.258 MB / 354.4 MB, free: 16 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001737/0.09077, allocations: 4 kB / 354.4 MB, free: 12 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004451/0.09124, allocations: 147.2 kB / 354.6 MB, free: 15.87 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004202/0.09168, allocations: 170.9 kB / 354.7 MB, free: 15.7 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004259/0.09211, allocations: 186.8 kB / 354.9 MB, free: 15.52 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004571/0.09258, allocations: 422.1 kB / 355.3 MB, free: 15.11 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001833/0.09278, allocations: 108 kB / 355.4 MB, free: 15 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002093/0.09299, allocations: 179.3 kB / 355.6 MB, free: 14.82 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002305/0.09323, allocations: 183.2 kB / 355.8 MB, free: 14.64 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.607e-05/0.0933, allocations: 28 kB / 355.8 MB, free: 14.61 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001329/0.09344, allocations: 59.92 kB / 355.9 MB, free: 14.55 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.293e-05/0.09354, allocations: 79.69 kB / 355.9 MB, free: 14.48 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000172/0.09371, allocations: 191 kB / 356.1 MB, free: 14.29 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004129/0.09413, allocations: 442.7 kB / 356.6 MB, free: 13.86 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/0.09415, allocations: 0 / 356.6 MB, free: 13.86 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.09415, allocations: 0 / 356.6 MB, free: 13.86 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.907e-06/0.09417, allocations: 3.938 kB / 356.6 MB, free: 13.85 MB / 302.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.0009227/0.0951, allocations: 0.6674 MB / 357.2 MB, free: 13.14 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.311e-05/0.09514, allocations: 12.03 kB / 357.2 MB, free: 13.12 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.055e-05/0.09524, allocations: 71.19 kB / 357.3 MB, free: 13.05 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.484e-05/0.09533, allocations: 48.38 kB / 357.4 MB, free: 13 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003539/0.09569, allocations: 319.8 kB / 357.7 MB, free: 12.65 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.136e-05/0.09572, allocations: 20.94 kB / 357.7 MB, free: 12.63 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.616e-05/0.09577, allocations: 31.94 kB / 357.7 MB, free: 12.6 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004751/0.09625, allocations: 303.1 kB / 358 MB, free: 12.28 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.789e-05/0.09628, allocations: 3.984 kB / 358 MB, free: 12.27 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.971e-05/0.09632, allocations: 16 kB / 358 MB, free: 12.26 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.834e-06/0.09633, allocations: 12 kB / 358.1 MB, free: 12.25 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000321/0.09666, allocations: 178.1 kB / 358.2 MB, free: 12.07 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00125/0.09792, allocations: 0.8637 MB / 359.1 MB, free: 11.14 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005116/0.09844, allocations: 268 kB / 359.4 MB, free: 10.88 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001701/0.09862, allocations: 105.4 kB / 359.5 MB, free: 10.77 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.577e-05/0.09866, allocations: 4.281 kB / 359.5 MB, free: 10.77 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003168/0.09898, allocations: 166.5 kB / 359.6 MB, free: 10.59 MB / 302.1 MB Notification: Performance of pre-optimization done (n=34): time 1.833e-06/0.09899, allocations: 0 / 359.6 MB, free: 10.59 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.002195/0.1012, allocations: 1.305 MB / 360.9 MB, free: 9.18 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.434e-05/0.1013, allocations: 187.9 kB / 361.1 MB, free: 8.953 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003089/0.1016, allocations: 328.5 kB / 361.4 MB, free: 8.617 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.13e-05/0.1016, allocations: 33.7 kB / 361.5 MB, free: 8.578 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001162/0.1018, allocations: 188.6 kB / 361.7 MB, free: 8.391 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.806e-05/0.1019, allocations: 141.9 kB / 361.8 MB, free: 8.25 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.933e-05/0.102, allocations: 74.12 kB / 361.9 MB, free: 8.168 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001156/0.1021, allocations: 354.7 kB / 362.2 MB, free: 7.812 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001653/0.1023, allocations: 80.84 kB / 362.3 MB, free: 7.734 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002301/0.1025, allocations: 189.2 kB / 362.5 MB, free: 7.52 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000367/0.1029, allocations: 246.2 kB / 362.7 MB, free: 7.266 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.1029, allocations: 4 kB / 362.7 MB, free: 7.262 MB / 302.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.000532/0.1034, allocations: 350.3 kB / 363.1 MB, free: 6.91 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.7e-05/0.1035, allocations: 4 kB / 363.1 MB, free: 6.906 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.1035, allocations: 7.938 kB / 363.1 MB, free: 6.898 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.972e-05/0.1036, allocations: 20.84 kB / 363.1 MB, free: 6.875 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003407/0.1039, allocations: 88.03 kB / 363.2 MB, free: 6.789 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009876/0.1049, allocations: 1.402 MB / 364.6 MB, free: 5.246 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001848/0.1051, allocations: 19.94 kB / 364.6 MB, free: 5.227 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.13e-05/0.1051, allocations: 11.98 kB / 364.6 MB, free: 5.215 MB / 302.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.0001612/0.1053, allocations: 162.3 kB / 364.8 MB, free: 5.047 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.094e-05/0.1054, allocations: 43.5 kB / 364.8 MB, free: 5.004 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.977e-05/0.1055, allocations: 47.88 kB / 364.9 MB, free: 4.953 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.516e-06/0.1055, allocations: 8.062 kB / 364.9 MB, free: 4.945 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.497e-06/0.1055, allocations: 3.984 kB / 364.9 MB, free: 4.941 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005774/0.1061, allocations: 0.6533 MB / 365.5 MB, free: 4.184 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001061/0.1071, allocations: 0.8486 MB / 366.4 MB, free: 3.266 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.158e-06/0.1071, allocations: 4 kB / 366.4 MB, free: 3.262 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000324/0.1075, allocations: 75.89 kB / 366.5 MB, free: 3.188 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.202e-06/0.1075, allocations: 4 kB / 366.5 MB, free: 3.184 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.278e-05/0.1075, allocations: 8 kB / 366.5 MB, free: 3.176 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.95e-06/0.1075, allocations: 7.938 kB / 366.5 MB, free: 3.168 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.786e-06/0.1075, allocations: 3.984 kB / 366.5 MB, free: 3.164 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007643/0.1083, allocations: 0.5493 MB / 367 MB, free: 2.586 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001597/0.1085, allocations: 132.8 kB / 367.2 MB, free: 2.438 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.79e-05/0.1085, allocations: 8 kB / 367.2 MB, free: 2.43 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002226/0.1088, allocations: 19.98 kB / 367.2 MB, free: 2.41 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.792e-05/0.1088, allocations: 35.84 kB / 367.2 MB, free: 2.375 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.803e-05/0.1089, allocations: 8 kB / 367.2 MB, free: 2.367 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002254/0.1091, allocations: 243 kB / 367.5 MB, free: 2.129 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.1091, allocations: 0 / 367.5 MB, free: 2.129 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000372/0.1095, allocations: 88 kB / 367.5 MB, free: 2.043 MB / 302.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.001731/0.1112, allocations: 1.398 MB / 368.9 MB, free: 0.7656 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006528/0.1119, allocations: 379.1 kB / 369.3 MB, free: 392 kB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.987e-06/0.1119, allocations: 8.062 kB / 369.3 MB, free: 384 kB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002126/0.1121, allocations: 139.8 kB / 369.5 MB, free: 244 kB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005399/0.1127, allocations: 103.8 kB / 369.6 MB, free: 144 kB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1323/0.2449, allocations: 3.642 MB / 373.2 MB, free: 23.76 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002918/0.2453, allocations: 0.8062 MB / 374 MB, free: 23.06 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001995/0.2455, allocations: 45.28 kB / 374.1 MB, free: 23.05 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001739/0.2457, allocations: 128.2 kB / 374.2 MB, free: 23.04 MB / 302.1 MB Notification: Performance of SimCode: time 8.21e-07/0.2457, allocations: 3.828 kB / 374.2 MB, free: 23.04 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03076/0.2764, allocations: 9.13 MB / 383.3 MB, free: 20.79 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.99/11.27, allocations: 1.469 kB / 383.3 MB, free: 20.79 MB / 302.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