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.001231/0.001231, allocations: 72.08 kB / 21.69 MB, free: 2.859 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.004144/0.004144, allocations: 142.1 kB / 24.97 MB, free: 8.316 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.8819/0.8819, allocations: 173.3 MB / 201.5 MB, free: 9.316 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.894e-06/1.894e-06, allocations: 3.938 kB / 268.1 MB, free: 6.723 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.61e-05/2.799e-05, allocations: 2.312 kB / 268.1 MB, free: 6.719 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.006639/0.006667, allocations: 5.013 MB / 273.1 MB, free: 1.676 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002662/0.009329, allocations: 1.293 MB / 274.4 MB, free: 388 kB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003453/0.009674, allocations: 15.94 kB / 274.4 MB, free: 372 kB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004441/0.01012, allocations: 158.5 kB / 274.5 MB, free: 212 kB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007321/0.01085, allocations: 349 kB / 274.9 MB, free: 15.86 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004955/0.01135, allocations: 235.6 kB / 275.1 MB, free: 15.63 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001333/0.01268, allocations: 1.226 MB / 276.3 MB, free: 14.41 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004052/0.01308, allocations: 222.5 kB / 276.6 MB, free: 14.18 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008278/0.01391, allocations: 0.6783 MB / 277.2 MB, free: 13.5 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005571/0.01447, allocations: 390.9 kB / 277.6 MB, free: 13.11 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001803/0.01465, allocations: 104 kB / 277.7 MB, free: 13.01 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001753/0.01483, allocations: 104 kB / 277.8 MB, free: 12.91 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001873/0.01501, allocations: 231.2 kB / 278 MB, free: 12.68 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004573/0.01547, allocations: 387.1 kB / 278.4 MB, free: 12.3 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001016/0.01649, allocations: 0.7941 MB / 279.2 MB, free: 11.51 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.01649, allocations: 0 / 279.2 MB, free: 11.51 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.163e-06/0.01649, allocations: 0 / 279.2 MB, free: 11.51 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.434e-05/0.01651, allocations: 0 / 279.2 MB, free: 11.51 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.002356/0.01887, allocations: 1.38 MB / 280.6 MB, free: 10.07 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.712e-05/0.01892, allocations: 12.03 kB / 280.6 MB, free: 10.06 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000304/0.01922, allocations: 156.3 kB / 280.8 MB, free: 9.906 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009558/0.02018, allocations: 0.5059 MB / 281.3 MB, free: 9.367 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002386/0.02042, allocations: 293.2 kB / 281.6 MB, free: 9.027 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001222/0.02054, allocations: 72.38 kB / 281.6 MB, free: 8.957 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001593/0.02213, allocations: 1.519 MB / 283.1 MB, free: 7.113 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.318e-05/0.02215, allocations: 3.938 kB / 283.1 MB, free: 7.109 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.418e-05/0.02223, allocations: 24 kB / 283.2 MB, free: 7.086 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.929e-05/0.02225, allocations: 15.94 kB / 283.2 MB, free: 7.07 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008079/0.02306, allocations: 299.6 kB / 283.5 MB, free: 6.777 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003047/0.0261, allocations: 1.475 MB / 285 MB, free: 5.262 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007951/0.0269, allocations: 389.1 kB / 285.3 MB, free: 4.871 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004643/0.02736, allocations: 217.3 kB / 285.5 MB, free: 4.656 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.901e-05/0.02742, allocations: 20.66 kB / 285.6 MB, free: 4.633 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.811e-05/0.02746, allocations: 46.05 kB / 285.6 MB, free: 4.578 MB / 266.7 MB Notification: Performance of pre-optimization done (n=73): time 2.865e-06/0.02746, allocations: 4 kB / 285.6 MB, free: 4.574 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.003033/0.0305, allocations: 1.031 MB / 286.6 MB, free: 3.523 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003048/0.0308, allocations: 0.8234 MB / 287.5 MB, free: 2.5 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006984/0.0315, allocations: 0.6129 MB / 288.1 MB, free: 1.875 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.496e-05/0.03156, allocations: 41.7 kB / 288.1 MB, free: 1.828 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002399/0.0318, allocations: 400 kB / 288.5 MB, free: 1.43 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001958/0.032, allocations: 265.7 kB / 288.8 MB, free: 1.168 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001884/0.03219, allocations: 144.3 kB / 288.9 MB, free: 1.02 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000168/0.03236, allocations: 0.5625 MB / 289.5 MB, free: 456 kB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002591/0.03262, allocations: 211 kB / 289.7 MB, free: 224 kB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006431/0.03326, allocations: 1.298 MB / 291 MB, free: 14.58 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005043/0.03376, allocations: 434.7 kB / 291.4 MB, free: 14.12 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.466e-06/0.03377, allocations: 3.938 kB / 291.4 MB, free: 14.12 MB / 282.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001122/0.03489, allocations: 0.8766 MB / 292.3 MB, free: 13.19 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.694e-05/0.03494, allocations: 81.11 kB / 292.4 MB, free: 13.09 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.485e-06/0.03494, allocations: 7.984 kB / 292.4 MB, free: 13.08 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004621/0.0354, allocations: 186.5 kB / 292.6 MB, free: 12.88 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000335/0.03574, allocations: 135.8 kB / 292.7 MB, free: 12.75 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004311/0.04005, allocations: 7.81 MB / 300.5 MB, free: 4.453 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003725/0.04042, allocations: 83.58 kB / 300.6 MB, free: 4.371 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.591e-05/0.04047, allocations: 20 kB / 300.6 MB, free: 4.352 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.0001972/0.04067, allocations: 216.4 kB / 300.8 MB, free: 4.129 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001104/0.04078, allocations: 107.5 kB / 300.9 MB, free: 4.023 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.862e-05/0.04087, allocations: 94.94 kB / 301 MB, free: 3.922 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.04087, allocations: 8 kB / 301 MB, free: 3.914 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.04087, allocations: 0 / 301 MB, free: 3.914 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009911/0.04186, allocations: 0.929 MB / 301.9 MB, free: 2.867 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001726/0.04359, allocations: 1.385 MB / 303.3 MB, free: 1.426 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.04359, allocations: 0 / 303.3 MB, free: 1.426 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00034/0.04393, allocations: 135.8 kB / 303.5 MB, free: 1.293 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003182/0.04425, allocations: 155 kB / 303.6 MB, free: 1.129 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.057e-05/0.04428, allocations: 19.98 kB / 303.6 MB, free: 1.109 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.09673/0.141, allocations: 5.937 MB / 309.6 MB, free: 34.82 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.141, allocations: 2.406 kB / 309.6 MB, free: 34.82 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001419/0.1424, allocations: 0.9444 MB / 310.5 MB, free: 34.59 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002369/0.1427, allocations: 165.9 kB / 310.7 MB, free: 34.59 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.025e-05/0.1427, allocations: 21.55 kB / 310.7 MB, free: 34.59 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003115/0.1431, allocations: 39.23 kB / 310.7 MB, free: 34.59 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001467/0.1432, allocations: 70.92 kB / 310.8 MB, free: 34.59 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.682e-05/0.1432, allocations: 22.61 kB / 310.8 MB, free: 34.59 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000341/0.1436, allocations: 410.3 kB / 311.2 MB, free: 34.45 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1436, allocations: 0 / 311.2 MB, free: 34.45 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006268/0.1442, allocations: 283.9 kB / 311.5 MB, free: 34.45 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.0001315/0.1443, allocations: 127.9 kB / 311.6 MB, free: 34.36 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001072/0.1454, allocations: 1.374 MB / 313 MB, free: 33.36 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.789e-06/0.1454, allocations: 2.219 kB / 313 MB, free: 33.36 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005716/0.146, allocations: 0.7859 MB / 313.8 MB, free: 32.83 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006402/0.1466, allocations: 244.2 kB / 314 MB, free: 32.82 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002006/0.1486, allocations: 1.437 MB / 315.5 MB, free: 32.14 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001215/0.1487, allocations: 164.6 kB / 315.6 MB, free: 32.06 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002814/0.149, allocations: 103.2 kB / 315.7 MB, free: 32.04 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001265/0.1492, allocations: 66.67 kB / 315.8 MB, free: 32.03 MB / 282.7 MB Notification: Performance of SimCode: time 8.02e-07/0.1492, allocations: 0 / 315.8 MB, free: 32.03 MB / 282.7 MB Notification: Performance of Templates: time 0.01788/0.167, allocations: 19.35 MB / 335.2 MB, free: 20.01 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.4054915830492973]