Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002521/0.002521, allocations: 91.61 kB / 20.96 MB, free: 3.465 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002951/0.002951, allocations: 169.3 kB / 24.28 MB, free: 148 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.548/1.548, allocations: 177.1 MB / 204.6 MB, free: 5.605 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|heatCapacitor.T|pipe.T",fileNamePrefix="Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|heatCapacitor.T|pipe.T",fileNamePrefix="Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.823e-06/1.823e-06, allocations: 0 / 272.3 MB, free: 1.852 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.319e-05/2.502e-05, allocations: 2.312 kB / 272.3 MB, free: 1.848 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling): time 0.005257/0.005282, allocations: 3.496 MB / 275.8 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002054/0.007336, allocations: 0.9579 MB / 276.7 MB, free: 13.37 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001794/0.007515, allocations: 11.94 kB / 276.8 MB, free: 13.36 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003304/0.007845, allocations: 99.12 kB / 276.9 MB, free: 13.26 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004304/0.008276, allocations: 202.2 kB / 277.1 MB, free: 13.06 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002817/0.008558, allocations: 127.7 kB / 277.2 MB, free: 12.94 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008279/0.009385, allocations: 0.6608 MB / 277.8 MB, free: 12.28 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002563/0.009642, allocations: 127.5 kB / 278 MB, free: 12.14 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004589/0.0101, allocations: 379.1 kB / 278.3 MB, free: 11.77 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003387/0.01044, allocations: 195.5 kB / 278.5 MB, free: 11.58 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.813e-05/0.01054, allocations: 52 kB / 278.6 MB, free: 11.53 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001116/0.01065, allocations: 52 kB / 278.6 MB, free: 11.48 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001314/0.01078, allocations: 123.6 kB / 278.7 MB, free: 11.36 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000286/0.01107, allocations: 219.5 kB / 279 MB, free: 11.14 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008379/0.0119, allocations: 0.662 MB / 279.6 MB, free: 10.48 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.01191, allocations: 0 / 279.6 MB, free: 10.48 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.01191, allocations: 0 / 279.6 MB, free: 10.48 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.534e-06/0.01192, allocations: 0 / 279.6 MB, free: 10.48 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001635/0.01355, allocations: 0.9136 MB / 280.5 MB, free: 9.523 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.691e-05/0.01359, allocations: 8.031 kB / 280.5 MB, free: 9.516 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001743/0.01376, allocations: 96.5 kB / 280.6 MB, free: 9.422 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006146/0.01438, allocations: 343.2 kB / 281 MB, free: 9.059 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001467/0.01452, allocations: 110.3 kB / 281.1 MB, free: 8.934 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.957e-05/0.0146, allocations: 40.38 kB / 281.1 MB, free: 8.895 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001118/0.01572, allocations: 0.8753 MB / 282 MB, free: 7.852 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.23e-05/0.01574, allocations: 8.172 kB / 282 MB, free: 7.844 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.448e-05/0.01579, allocations: 20.12 kB / 282 MB, free: 7.824 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.021e-05/0.0158, allocations: 8 kB / 282 MB, free: 7.816 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006265/0.01642, allocations: 262.5 kB / 282.3 MB, free: 7.562 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002275/0.0187, allocations: 1.112 MB / 283.4 MB, free: 6.406 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001409/0.02011, allocations: 347.3 kB / 283.7 MB, free: 6.055 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002833/0.02039, allocations: 131.6 kB / 283.9 MB, free: 5.922 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.608e-05/0.02043, allocations: 4 kB / 283.9 MB, free: 5.918 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.649e-05/0.02048, allocations: 45.38 kB / 283.9 MB, free: 5.863 MB / 266.7 MB Notification: Performance of pre-optimization done (n=32): time 1.724e-06/0.02048, allocations: 0 / 283.9 MB, free: 5.863 MB / 266.7 MB Notification: Performance of matching and sorting (n=32): time 0.001193/0.02167, allocations: 468.6 kB / 284.4 MB, free: 5.391 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003055/0.02198, allocations: 441 kB / 284.8 MB, free: 4.855 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006435/0.02262, allocations: 0.5143 MB / 285.3 MB, free: 4.324 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.402e-05/0.02266, allocations: 33.7 kB / 285.4 MB, free: 4.285 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002853/0.02295, allocations: 311.2 kB / 285.7 MB, free: 3.977 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000125/0.02307, allocations: 119 kB / 285.8 MB, free: 3.859 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000167/0.02324, allocations: 91.67 kB / 285.9 MB, free: 3.758 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003405/0.02358, allocations: 0.5508 MB / 286.4 MB, free: 3.195 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002728/0.02385, allocations: 126.3 kB / 286.5 MB, free: 3.066 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007546/0.02461, allocations: 0.7064 MB / 287.2 MB, free: 2.191 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000559/0.02517, allocations: 294.9 kB / 287.5 MB, free: 1.891 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.02517, allocations: 0 / 287.5 MB, free: 1.891 MB / 266.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.000859/0.02603, allocations: 456 kB / 288 MB, free: 1.418 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.102e-05/0.02607, allocations: 29.7 kB / 288 MB, free: 1.383 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.745e-06/0.02608, allocations: 11.95 kB / 288 MB, free: 1.371 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001829/0.02626, allocations: 55.36 kB / 288.1 MB, free: 1.309 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003389/0.0266, allocations: 67.89 kB / 288.1 MB, free: 1.242 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003796/0.0304, allocations: 3.761 MB / 291.9 MB, free: 13.23 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000393/0.03079, allocations: 35.77 kB / 291.9 MB, free: 13.2 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.131e-05/0.03083, allocations: 19.98 kB / 292 MB, free: 13.18 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (36): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(3,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002638/0.03109, allocations: 212.5 kB / 292.2 MB, free: 12.96 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001093/0.0312, allocations: 55.72 kB / 292.2 MB, free: 12.9 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001069/0.03131, allocations: 48.56 kB / 292.3 MB, free: 12.86 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.979e-06/0.03132, allocations: 4 kB / 292.3 MB, free: 12.85 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.633e-06/0.03132, allocations: 7.984 kB / 292.3 MB, free: 12.84 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008256/0.03215, allocations: 0.6464 MB / 292.9 MB, free: 12.09 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001511/0.03366, allocations: 0.8641 MB / 293.8 MB, free: 11.18 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.405e-06/0.03366, allocations: 0 / 293.8 MB, free: 11.18 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003664/0.03403, allocations: 71.89 kB / 293.9 MB, free: 11.11 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.23e-06/0.03403, allocations: 4 kB / 293.9 MB, free: 11.11 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.261e-05/0.03405, allocations: 4 kB / 293.9 MB, free: 11.11 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/0.03406, allocations: 0 / 293.9 MB, free: 11.11 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.03406, allocations: 8 kB / 293.9 MB, free: 11.1 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009799/0.03504, allocations: 0.5682 MB / 294.4 MB, free: 10.51 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001902/0.03523, allocations: 87.55 kB / 294.5 MB, free: 10.42 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.06e-05/0.03529, allocations: 8 kB / 294.5 MB, free: 10.41 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003078/0.0356, allocations: 15.98 kB / 294.5 MB, free: 10.4 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.091e-05/0.03566, allocations: 19.97 kB / 294.6 MB, free: 10.38 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.263e-05/0.03568, allocations: 7.984 kB / 294.6 MB, free: 10.37 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0004156/0.0361, allocations: 351.1 kB / 294.9 MB, free: 10.03 MB / 282.7 MB Notification: Performance of sort global known variables: time 1e-07/0.0361, allocations: 4.031 kB / 294.9 MB, free: 10.03 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004727/0.03657, allocations: 139.8 kB / 295.1 MB, free: 9.891 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (pipe.T,heatCapacitor.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 (32): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * 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.0001522/0.03672, allocations: 107.2 kB / 295.2 MB, free: 9.773 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.00113/0.03785, allocations: 0.7025 MB / 295.9 MB, free: 9.016 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.611e-06/0.03786, allocations: 4 kB / 295.9 MB, free: 9.012 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002809/0.03814, allocations: 140.1 kB / 296 MB, free: 8.871 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006418/0.03878, allocations: 139.4 kB / 296.1 MB, free: 8.738 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001599/0.04038, allocations: 0.8338 MB / 297 MB, free: 7.875 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002424/0.04062, allocations: 212.4 kB / 297.2 MB, free: 7.648 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002179/0.04084, allocations: 59.36 kB / 297.2 MB, free: 7.586 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001177/0.04095, allocations: 44.5 kB / 297.3 MB, free: 7.543 MB / 282.7 MB Notification: Performance of SimCode: time 6.91e-07/0.04096, allocations: 0 / 297.3 MB, free: 7.543 MB / 282.7 MB Notification: Performance of Templates: time 0.114/0.155, allocations: 8.372 MB / 305.7 MB, free: 41.89 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.pipe ; mkfifo Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.pipe >> ../files/Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.sim & ./Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Thermal/FluidHeatFlow/Examples/SimpleCooling/SimpleCooling.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.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: 4.790181928081438]