Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.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.0008942/0.0008942, allocations: 84.06 kB / 21.19 MB, free: 3.379 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.0008418/0.0008418, allocations: 145.5 kB / 24.55 MB, free: 28 kB / 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.9009/0.9009, allocations: 173.3 MB / 201.1 MB, free: 9.359 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: translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|heatCapacitor1.T|heatCapacitor2.T|pipe1.T|pipe2.T|pipe3.T",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|heatCapacitor1.T|heatCapacitor2.T|pipe1.T|pipe2.T|pipe3.T",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.463e-06/1.463e-06, allocations: 0 / 268 MB, free: 6.465 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.702e-05/1.849e-05, allocations: 2.312 kB / 268 MB, free: 6.461 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.004185/0.004203, allocations: 5.036 MB / 273 MB, free: 1.398 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001903/0.006106, allocations: 1.289 MB / 274.3 MB, free: 108 kB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003118/0.006418, allocations: 11.94 kB / 274.3 MB, free: 96 kB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003506/0.006768, allocations: 166.5 kB / 274.5 MB, free: 15.93 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004993/0.007268, allocations: 353 kB / 274.8 MB, free: 15.58 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003487/0.007616, allocations: 231.5 kB / 275.1 MB, free: 15.36 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001137/0.008754, allocations: 1.229 MB / 276.3 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00027/0.009024, allocations: 222.5 kB / 276.5 MB, free: 13.89 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006088/0.009633, allocations: 0.6783 MB / 277.2 MB, free: 13.21 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003754/0.01001, allocations: 382.9 kB / 277.6 MB, free: 12.84 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001075/0.01012, allocations: 104 kB / 277.7 MB, free: 12.74 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001111/0.01023, allocations: 104 kB / 277.8 MB, free: 12.64 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001139/0.01034, allocations: 231.2 kB / 278 MB, free: 12.41 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000274/0.01061, allocations: 379.2 kB / 278.3 MB, free: 12.04 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006195/0.01123, allocations: 0.7863 MB / 279.1 MB, free: 11.25 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.01124, allocations: 8 kB / 279.1 MB, free: 11.24 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.82e-07/0.01124, allocations: 0 / 279.1 MB, free: 11.24 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.135e-05/0.01125, allocations: 0 / 279.1 MB, free: 11.24 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 137 * Number of variables: 137 Notification: Performance of Generate backend data structure: time 0.001387/0.01264, allocations: 1.372 MB / 280.5 MB, free: 9.812 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.421e-05/0.01267, allocations: 8.031 kB / 280.5 MB, free: 9.805 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001671/0.01284, allocations: 160.3 kB / 280.7 MB, free: 9.648 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005215/0.01336, allocations: 0.4968 MB / 281.2 MB, free: 9.121 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001817/0.01354, allocations: 293.1 kB / 281.5 MB, free: 8.777 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.976e-05/0.01362, allocations: 72.33 kB / 281.5 MB, free: 8.707 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001246/0.01487, allocations: 1.515 MB / 283 MB, free: 6.867 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.715e-05/0.01488, allocations: 3.938 kB / 283.1 MB, free: 6.863 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.379e-05/0.01493, allocations: 32 kB / 283.1 MB, free: 6.832 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.299e-05/0.01494, allocations: 12 kB / 283.1 MB, free: 6.82 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004684/0.01541, allocations: 295.6 kB / 283.4 MB, free: 6.531 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002025/0.01743, allocations: 1.483 MB / 284.9 MB, free: 5.012 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005317/0.01797, allocations: 385.2 kB / 285.2 MB, free: 4.625 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002872/0.01825, allocations: 213.3 kB / 285.5 MB, free: 4.414 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.379e-05/0.0183, allocations: 12.66 kB / 285.5 MB, free: 4.398 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.016e-05/0.01833, allocations: 50.05 kB / 285.5 MB, free: 4.34 MB / 266.7 MB Notification: Performance of pre-optimization done (n=73): time 2.615e-06/0.01833, allocations: 3.938 kB / 285.5 MB, free: 4.336 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.002007/0.02034, allocations: 1.035 MB / 286.6 MB, free: 3.281 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002197/0.02056, allocations: 0.8234 MB / 287.4 MB, free: 2.258 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004573/0.02101, allocations: 0.609 MB / 288 MB, free: 1.637 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.411e-05/0.02106, allocations: 41.7 kB / 288 MB, free: 1.59 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001944/0.02125, allocations: 400 kB / 288.4 MB, free: 1.191 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001392/0.02139, allocations: 265.7 kB / 288.7 MB, free: 0.9297 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001491/0.02154, allocations: 152.3 kB / 288.8 MB, free: 0.7734 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0004022/0.02194, allocations: 0.5586 MB / 289.4 MB, free: 208 kB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002417/0.02218, allocations: 211 kB / 289.6 MB, free: 15.98 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005678/0.02275, allocations: 1.302 MB / 290.9 MB, free: 14.33 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004553/0.02321, allocations: 434.7 kB / 291.3 MB, free: 13.88 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.115e-06/0.02321, allocations: 0 / 291.3 MB, free: 13.88 MB / 282.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001035/0.02425, allocations: 0.8688 MB / 292.2 MB, free: 12.95 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.919e-05/0.02429, allocations: 89.09 kB / 292.3 MB, free: 12.85 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.0243, allocations: 4.062 kB / 292.3 MB, free: 12.84 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004429/0.02474, allocations: 194.5 kB / 292.5 MB, free: 12.64 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003077/0.02505, allocations: 135.9 kB / 292.6 MB, free: 12.5 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00427/0.02932, allocations: 7.792 MB / 300.4 MB, free: 4.215 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003739/0.0297, allocations: 95.55 kB / 300.5 MB, free: 4.121 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.402e-05/0.02973, allocations: 27.98 kB / 300.5 MB, free: 4.094 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * 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): 4 systems {(3,3), (1,3), (1,7), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001829/0.02991, allocations: 208.4 kB / 300.7 MB, free: 3.879 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001063/0.03002, allocations: 111.5 kB / 300.8 MB, free: 3.77 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.855e-05/0.0301, allocations: 86.95 kB / 300.9 MB, free: 3.68 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.318e-06/0.0301, allocations: 8 kB / 300.9 MB, free: 3.672 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.197e-06/0.03011, allocations: 0 / 300.9 MB, free: 3.672 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009209/0.03103, allocations: 0.9368 MB / 301.9 MB, free: 2.617 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001905/0.03293, allocations: 1.381 MB / 303.2 MB, free: 1.176 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.03293, allocations: 4 kB / 303.2 MB, free: 1.172 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003338/0.03327, allocations: 135.8 kB / 303.4 MB, free: 1.039 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003148/0.03358, allocations: 155 kB / 303.5 MB, free: 0.875 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.094e-05/0.03361, allocations: 16.17 kB / 303.5 MB, free: 0.8594 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1175/0.1511, allocations: 5.936 MB / 309.5 MB, free: 38.46 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.464e-06/0.1511, allocations: 0.7969 kB / 309.5 MB, free: 38.46 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00204/0.1532, allocations: 0.9477 MB / 310.4 MB, free: 38.22 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003743/0.1536, allocations: 167.4 kB / 310.6 MB, free: 38.22 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001071/0.1537, allocations: 27.48 kB / 310.6 MB, free: 38.22 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004887/0.1541, allocations: 40.55 kB / 310.7 MB, free: 38.22 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002082/0.1544, allocations: 66.55 kB / 310.7 MB, free: 38.22 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.137e-05/0.1544, allocations: 18.91 kB / 310.7 MB, free: 38.22 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0004451/0.1548, allocations: 412.3 kB / 311.1 MB, free: 38.08 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1548, allocations: 0 / 311.1 MB, free: 38.08 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0009395/0.1558, allocations: 276.4 kB / 311.4 MB, free: 38.08 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (pipe1.T,pipe2.T,pipe3.T,heatCapacitor1.T,heatCapacitor2.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (61): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(1,3), (1,3), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001658/0.1559, allocations: 134.9 kB / 311.5 MB, free: 37.99 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001495/0.1574, allocations: 1.375 MB / 312.9 MB, free: 36.99 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.07e-06/0.1574, allocations: 2.938 kB / 312.9 MB, free: 36.99 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008326/0.1583, allocations: 0.7812 MB / 313.7 MB, free: 36.46 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000983/0.1593, allocations: 246.5 kB / 313.9 MB, free: 36.45 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002767/0.162, allocations: 1.434 MB / 315.4 MB, free: 35.77 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001721/0.1622, allocations: 162.1 kB / 315.5 MB, free: 35.7 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002714/0.1625, allocations: 99.89 kB / 315.6 MB, free: 35.68 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001281/0.1626, allocations: 67.52 kB / 315.7 MB, free: 35.67 MB / 282.7 MB Notification: Performance of SimCode: time 1.032e-06/0.1626, allocations: 1.312 kB / 315.7 MB, free: 35.67 MB / 282.7 MB Notification: Performance of Templates: time 0.01907/0.1817, allocations: 20.36 MB / 336.1 MB, free: 21.78 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.sim & ./Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/TwoMass/TwoMass.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.3038955270312726]