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.0009732/0.0009732, allocations: 80.72 kB / 22.21 MB, free: 2.293 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.0008789/0.0008789, allocations: 140.4 kB / 25.59 MB, free: 8.906 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.9268/0.9268, allocations: 173.4 MB / 202.3 MB, free: 8.289 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.193e-06/1.193e-06, allocations: 0 / 269.2 MB, free: 9.777 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.326e-05/1.445e-05, allocations: 2.312 kB / 269.2 MB, free: 9.773 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.005694/0.005708, allocations: 4.949 MB / 274.1 MB, free: 4.812 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002466/0.008174, allocations: 1.288 MB / 275.4 MB, free: 3.535 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003798/0.008554, allocations: 11.94 kB / 275.4 MB, free: 3.523 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004162/0.00897, allocations: 162.5 kB / 275.6 MB, free: 3.363 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007521/0.009722, allocations: 356.9 kB / 275.9 MB, free: 3.012 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004696/0.01019, allocations: 223.6 kB / 276.2 MB, free: 2.793 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001407/0.0116, allocations: 1.233 MB / 277.4 MB, free: 1.559 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003978/0.012, allocations: 218.5 kB / 277.6 MB, free: 1.332 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009494/0.01295, allocations: 0.6744 MB / 278.3 MB, free: 0.6562 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006563/0.0136, allocations: 386.9 kB / 278.7 MB, free: 284 kB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001897/0.01379, allocations: 100 kB / 278.8 MB, free: 184 kB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001818/0.01397, allocations: 108 kB / 278.9 MB, free: 76 kB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001966/0.01417, allocations: 231.3 kB / 279.1 MB, free: 15.84 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004587/0.01463, allocations: 387.1 kB / 279.5 MB, free: 15.46 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008653/0.01549, allocations: 0.7863 MB / 280.3 MB, free: 14.68 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.936e-06/0.0155, allocations: 0 / 280.3 MB, free: 14.68 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.71e-07/0.0155, allocations: 0 / 280.3 MB, free: 14.68 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.204e-05/0.01551, allocations: 0 / 280.3 MB, free: 14.68 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.001348/0.01686, allocations: 1.392 MB / 281.6 MB, free: 13.23 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.833e-05/0.01689, allocations: 8.031 kB / 281.7 MB, free: 13.22 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001601/0.01705, allocations: 156.3 kB / 281.8 MB, free: 13.07 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004546/0.0175, allocations: 488.8 kB / 282.3 MB, free: 12.56 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001417/0.01764, allocations: 297.1 kB / 282.6 MB, free: 12.21 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.726e-05/0.01772, allocations: 72.33 kB / 282.6 MB, free: 12.14 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008174/0.01854, allocations: 1.48 MB / 284.1 MB, free: 10.34 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.479e-05/0.01855, allocations: 3.938 kB / 284.1 MB, free: 10.33 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.471e-05/0.0186, allocations: 28 kB / 284.2 MB, free: 10.3 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.167e-06/0.01861, allocations: 15.94 kB / 284.2 MB, free: 10.29 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003052/0.01891, allocations: 234.2 kB / 284.4 MB, free: 10.06 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001668/0.02058, allocations: 1.393 MB / 285.8 MB, free: 8.641 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000398/0.02098, allocations: 344.3 kB / 286.1 MB, free: 8.293 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000208/0.02118, allocations: 186.2 kB / 286.3 MB, free: 8.109 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.884e-05/0.02122, allocations: 12.66 kB / 286.3 MB, free: 8.094 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.028e-05/0.02125, allocations: 57.98 kB / 286.4 MB, free: 8.027 MB / 266.7 MB Notification: Performance of pre-optimization done (n=73): time 1.803e-06/0.02126, allocations: 4 kB / 286.4 MB, free: 8.023 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.001903/0.02316, allocations: 0.9407 MB / 287.3 MB, free: 7.066 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002319/0.02339, allocations: 0.8234 MB / 288.1 MB, free: 6.043 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003937/0.02378, allocations: 0.593 MB / 288.7 MB, free: 5.438 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.578e-05/0.02383, allocations: 45.7 kB / 288.8 MB, free: 5.387 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002062/0.02404, allocations: 407.9 kB / 289.2 MB, free: 4.98 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001457/0.02418, allocations: 273.6 kB / 289.5 MB, free: 4.711 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001637/0.02435, allocations: 148.3 kB / 289.6 MB, free: 4.559 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001713/0.02452, allocations: 0.5741 MB / 290.2 MB, free: 3.973 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001675/0.02468, allocations: 171 kB / 290.3 MB, free: 3.785 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000537/0.02522, allocations: 1.275 MB / 291.6 MB, free: 2.168 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003496/0.02557, allocations: 386.6 kB / 292 MB, free: 1.762 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.02557, allocations: 4 kB / 292 MB, free: 1.758 MB / 266.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001039/0.02661, allocations: 0.8024 MB / 292.8 MB, free: 0.8984 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.626e-05/0.02666, allocations: 91.12 kB / 292.9 MB, free: 0.793 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.02666, allocations: 0 / 292.9 MB, free: 0.793 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003822/0.02705, allocations: 178.7 kB / 293.1 MB, free: 0.6016 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000316/0.02736, allocations: 139.8 kB / 293.2 MB, free: 476 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003962/0.03132, allocations: 7.673 MB / 300.9 MB, free: 8.328 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003495/0.03167, allocations: 87.52 kB / 301 MB, free: 8.242 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.133e-05/0.03171, allocations: 20 kB / 301 MB, free: 8.223 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.000169/0.03187, allocations: 208.4 kB / 301.2 MB, free: 8.008 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001106/0.03198, allocations: 111.5 kB / 301.3 MB, free: 7.898 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.569e-05/0.03207, allocations: 91 kB / 301.4 MB, free: 7.805 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.03207, allocations: 8 kB / 301.4 MB, free: 7.797 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.776e-06/0.03208, allocations: 0 / 301.4 MB, free: 7.797 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008124/0.03289, allocations: 0.8782 MB / 302.3 MB, free: 6.801 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001491/0.03438, allocations: 1.245 MB / 303.5 MB, free: 5.508 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.03438, allocations: 0 / 303.5 MB, free: 5.508 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003257/0.03471, allocations: 135.8 kB / 303.6 MB, free: 5.375 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002935/0.035, allocations: 143 kB / 303.8 MB, free: 5.223 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.871e-05/0.03503, allocations: 23.98 kB / 303.8 MB, free: 5.199 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002901/0.03793, allocations: 5.842 MB / 309.6 MB, free: 15.02 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.03793, allocations: 0 / 309.6 MB, free: 15.02 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009954/0.03893, allocations: 0.8692 MB / 310.5 MB, free: 14.11 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002039/0.03913, allocations: 159.2 kB / 310.7 MB, free: 13.96 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.855e-05/0.0392, allocations: 20 kB / 310.7 MB, free: 13.94 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002915/0.03949, allocations: 51.89 kB / 310.7 MB, free: 13.89 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000104/0.0396, allocations: 64.53 kB / 310.8 MB, free: 13.82 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.451e-05/0.03962, allocations: 20 kB / 310.8 MB, free: 13.8 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000228/0.03985, allocations: 378.9 kB / 311.2 MB, free: 13.44 MB / 298.7 MB Notification: Performance of sort global known variables: time 8e-08/0.03985, allocations: 0 / 311.2 MB, free: 13.44 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005269/0.04037, allocations: 283.7 kB / 311.5 MB, free: 13.16 MB / 298.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.0001144/0.04049, allocations: 123.2 kB / 311.6 MB, free: 13.04 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008716/0.04136, allocations: 1.322 MB / 312.9 MB, free: 11.58 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.04136, allocations: 4 kB / 312.9 MB, free: 11.58 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005415/0.04191, allocations: 0.7676 MB / 313.7 MB, free: 10.76 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005874/0.04249, allocations: 250.8 kB / 313.9 MB, free: 10.51 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001777/0.04427, allocations: 1.423 MB / 315.4 MB, free: 9.047 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00011/0.04438, allocations: 165.1 kB / 315.5 MB, free: 8.867 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.000258/0.04464, allocations: 98.17 kB / 315.6 MB, free: 8.77 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005966/0.04523, allocations: 433.9 kB / 316 MB, free: 8.344 MB / 298.7 MB Notification: Performance of SimCode: time 9.82e-07/0.04524, allocations: 0 / 316 MB, free: 8.344 MB / 298.7 MB Notification: Performance of Templates: time 0.02129/0.06653, allocations: 21.04 MB / 337.1 MB, free: 3.672 MB / 314.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.2860826682299376]