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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008124/0.0008124, allocations: 76.08 kB / 20.67 MB, free: 3.879 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007939/0.0007939, allocations: 157.1 kB / 23.94 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8813/0.8813, allocations: 173.3 MB / 200.4 MB, free: 9.441 MB / 186.7 MB " [Timeout remaining time 179] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.613e-06/1.613e-06, allocations: 0 / 318.4 MB, free: 6.383 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.767e-05/1.929e-05, allocations: 2.281 kB / 318.4 MB, free: 6.379 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder): time 0.002926/0.002946, allocations: 2.777 MB / 321.2 MB, free: 3.582 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001444/0.004389, allocations: 1.207 MB / 322.4 MB, free: 2.367 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001349/0.004524, allocations: 11.88 kB / 322.4 MB, free: 2.355 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004155/0.00494, allocations: 139.1 kB / 322.6 MB, free: 2.219 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003715/0.005311, allocations: 190.7 kB / 322.7 MB, free: 2.031 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003628/0.005674, allocations: 175.3 kB / 322.9 MB, free: 1.859 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004081/0.006082, allocations: 460.7 kB / 323.4 MB, free: 1.41 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001536/0.006236, allocations: 64 kB / 323.4 MB, free: 1.348 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002127/0.006448, allocations: 255.4 kB / 323.7 MB, free: 1.098 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001775/0.006626, allocations: 143.6 kB / 323.8 MB, free: 0.957 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.96e-05/0.006665, allocations: 32 kB / 323.8 MB, free: 0.9258 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001033/0.006769, allocations: 59.86 kB / 323.9 MB, free: 0.8672 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 7.852e-05/0.006847, allocations: 83.67 kB / 324 MB, free: 0.7852 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 9.708e-05/0.006944, allocations: 123.7 kB / 324.1 MB, free: 0.6641 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003878/0.007332, allocations: 450.4 kB / 324.6 MB, free: 228 kB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.007336, allocations: 4 kB / 324.6 MB, free: 224 kB / 282.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.007338, allocations: 0 / 324.6 MB, free: 224 kB / 282.7 MB Notification: Performance of Transformations before backend: time 5.63e-06/0.007343, allocations: 0 / 324.6 MB, free: 224 kB / 282.7 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.0007302/0.008074, allocations: 0.6085 MB / 325.2 MB, free: 15.58 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.821e-05/0.008112, allocations: 8.922 kB / 325.2 MB, free: 15.57 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.367e-05/0.008195, allocations: 79.22 kB / 325.2 MB, free: 15.48 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.178e-05/0.008267, allocations: 52.64 kB / 325.3 MB, free: 15.43 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003463/0.008614, allocations: 253.6 kB / 325.5 MB, free: 15.16 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.24e-05/0.008636, allocations: 25.03 kB / 325.6 MB, free: 15.14 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.444e-05/0.00867, allocations: 28.36 kB / 325.6 MB, free: 15.11 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004495/0.00912, allocations: 0.5301 MB / 326.1 MB, free: 14.5 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.629e-05/0.009136, allocations: 3.953 kB / 326.1 MB, free: 14.5 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.154e-05/0.009158, allocations: 12 kB / 326.1 MB, free: 14.48 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.089e-05/0.009169, allocations: 8 kB / 326.2 MB, free: 14.48 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002262/0.009395, allocations: 186.5 kB / 326.3 MB, free: 14.29 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009045/0.0103, allocations: 0.7639 MB / 327.1 MB, free: 13.47 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003854/0.01068, allocations: 243.9 kB / 327.3 MB, free: 13.22 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001064/0.01079, allocations: 98.16 kB / 327.4 MB, free: 13.12 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.268e-05/0.01081, allocations: 4.281 kB / 327.4 MB, free: 13.12 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002384/0.01105, allocations: 268.5 kB / 327.7 MB, free: 12.82 MB / 298.7 MB Notification: Performance of pre-optimization done (n=34): time 2.425e-06/0.01105, allocations: 4 kB / 327.7 MB, free: 12.82 MB / 298.7 MB Notification: Performance of matching and sorting (n=40): time 0.001565/0.01262, allocations: 1.096 MB / 328.8 MB, free: 11.67 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.934e-05/0.01269, allocations: 187.9 kB / 329 MB, free: 11.44 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000244/0.01293, allocations: 336.5 kB / 329.3 MB, free: 11.1 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.156e-05/0.01295, allocations: 33.7 kB / 329.3 MB, free: 11.06 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.674e-05/0.01305, allocations: 192.7 kB / 329.5 MB, free: 10.87 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.465e-05/0.01313, allocations: 146.8 kB / 329.7 MB, free: 10.72 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.307e-05/0.0132, allocations: 74.2 kB / 329.7 MB, free: 10.64 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.722e-05/0.01329, allocations: 354.7 kB / 330.1 MB, free: 10.29 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001138/0.0134, allocations: 88.95 kB / 330.2 MB, free: 10.2 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001941/0.01359, allocations: 314.4 kB / 330.5 MB, free: 9.828 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002538/0.01385, allocations: 246.2 kB / 330.7 MB, free: 9.574 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.01385, allocations: 3.938 kB / 330.7 MB, free: 9.57 MB / 298.7 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0003581/0.01421, allocations: 358.6 kB / 331.1 MB, free: 9.211 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.536e-05/0.01422, allocations: 4 kB / 331.1 MB, free: 9.207 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.77e-06/0.01423, allocations: 0 / 331.1 MB, free: 9.207 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.421e-05/0.01431, allocations: 28.78 kB / 331.1 MB, free: 9.176 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001958/0.01451, allocations: 83.91 kB / 331.2 MB, free: 9.094 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009881/0.0155, allocations: 1.283 MB / 332.5 MB, free: 7.699 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001115/0.01561, allocations: 20.02 kB / 332.5 MB, free: 7.68 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.42e-05/0.01562, allocations: 8 kB / 332.5 MB, free: 7.672 MB / 298.7 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.0001357/0.01576, allocations: 169.8 kB / 332.7 MB, free: 7.496 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.747e-05/0.0158, allocations: 51.66 kB / 332.7 MB, free: 7.445 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000391/0.01619, allocations: 345.6 kB / 333.1 MB, free: 7.098 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.01619, allocations: 4 kB / 333.1 MB, free: 7.094 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.086e-06/0.01619, allocations: 7.984 kB / 333.1 MB, free: 7.086 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0003941/0.01659, allocations: 0.6576 MB / 333.7 MB, free: 6.324 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007652/0.01735, allocations: 0.7865 MB / 334.5 MB, free: 5.477 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.01735, allocations: 4 kB / 334.5 MB, free: 5.473 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001889/0.01754, allocations: 75.91 kB / 334.6 MB, free: 5.398 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.759e-06/0.01755, allocations: 4 kB / 334.6 MB, free: 5.395 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.491e-05/0.01756, allocations: 8 kB / 334.6 MB, free: 5.387 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.565e-06/0.01757, allocations: 0 / 334.6 MB, free: 5.387 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.01757, allocations: 12.05 kB / 334.6 MB, free: 5.375 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004766/0.01805, allocations: 0.5548 MB / 335.2 MB, free: 4.789 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.868e-05/0.01813, allocations: 63.78 kB / 335.2 MB, free: 4.727 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.937e-05/0.01816, allocations: 12 kB / 335.2 MB, free: 4.715 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001114/0.01828, allocations: 12 kB / 335.3 MB, free: 4.703 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.191e-05/0.01833, allocations: 35.88 kB / 335.3 MB, free: 4.668 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.752e-05/0.01835, allocations: 12 kB / 335.3 MB, free: 4.656 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001595/0.01851, allocations: 239.1 kB / 335.5 MB, free: 4.426 MB / 298.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.01851, allocations: 0 / 335.5 MB, free: 4.426 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002963/0.01881, allocations: 99.92 kB / 335.6 MB, free: 4.328 MB / 298.7 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 (41): * Single equations (assignments): 39 * 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.001305/0.02012, allocations: 1.444 MB / 337.1 MB, free: 3.031 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004557/0.02057, allocations: 366.2 kB / 337.4 MB, free: 2.66 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.02057, allocations: 0 / 337.4 MB, free: 2.66 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001374/0.02071, allocations: 136 kB / 337.6 MB, free: 2.527 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003729/0.02108, allocations: 101 kB / 337.7 MB, free: 2.43 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003276/0.02436, allocations: 3.514 MB / 341.2 MB, free: 14.77 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001303/0.02449, allocations: 195.7 kB / 341.4 MB, free: 14.56 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001356/0.02463, allocations: 51.23 kB / 341.4 MB, free: 14.51 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001302/0.02476, allocations: 132.5 kB / 341.6 MB, free: 14.38 MB / 314.7 MB Notification: Performance of SimCode: time 8.92e-07/0.02476, allocations: 4 kB / 341.6 MB, free: 14.38 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02375/0.0485, allocations: 10.49 MB / 352.1 MB, free: 4.027 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.814/7.862, allocations: 12.03 kB / 352.1 MB, free: 4.016 MB / 314.7 MB " [Timeout remaining time 652] (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 --stepSize=0.001 --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) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/TestCylinder/TestCylinder.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.504999753087759]