Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.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.001423/0.001423, allocations: 85.05 kB / 21.5 MB, free: 2.992 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.001143/0.001143, allocations: 141.9 kB / 24.89 MB, free: 9.219 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 1.009/1.009, allocations: 173.3 MB / 201.5 MB, free: 9.184 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.TwoTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|openTank1.H|openTank1.m|openTank2.H|openTank2.m",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|openTank1.H|openTank1.m|openTank2.H|openTank2.m",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.212e-06/1.212e-06, allocations: 0 / 268.5 MB, free: 6.168 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.064e-05/1.185e-05, allocations: 6.25 kB / 268.5 MB, free: 6.16 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.002524/0.002535, allocations: 2.783 MB / 271.3 MB, free: 3.359 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001056/0.003592, allocations: 0.8486 MB / 272.1 MB, free: 2.504 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001158/0.003707, allocations: 7.938 kB / 272.1 MB, free: 2.496 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000203/0.00391, allocations: 75.42 kB / 272.2 MB, free: 2.422 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002068/0.004117, allocations: 138.8 kB / 272.3 MB, free: 2.285 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001606/0.004278, allocations: 91.8 kB / 272.4 MB, free: 2.195 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003583/0.004636, allocations: 454.2 kB / 272.9 MB, free: 1.75 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001166/0.004753, allocations: 66.58 kB / 272.9 MB, free: 1.68 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002031/0.004956, allocations: 247.5 kB / 273.2 MB, free: 1.438 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001588/0.005115, allocations: 131.7 kB / 273.3 MB, free: 1.309 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.121e-05/0.005156, allocations: 36 kB / 273.3 MB, free: 1.273 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.614e-05/0.005192, allocations: 36 kB / 273.4 MB, free: 1.238 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.774e-05/0.00524, allocations: 79.67 kB / 273.5 MB, free: 1.16 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 9.278e-05/0.005333, allocations: 139.7 kB / 273.6 MB, free: 1.023 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002489/0.005582, allocations: 294.9 kB / 273.9 MB, free: 0.7344 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.522e-06/0.005583, allocations: 0 / 273.9 MB, free: 0.7344 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.02e-07/0.005584, allocations: 0 / 273.9 MB, free: 0.7344 MB / 250.7 MB Notification: Performance of Transformations before backend: time 8.777e-06/0.005592, allocations: 4 kB / 273.9 MB, free: 0.7305 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0005729/0.006165, allocations: 0.5831 MB / 274.5 MB, free: 120 kB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.817e-05/0.006194, allocations: 8.031 kB / 274.5 MB, free: 112 kB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.652e-05/0.00625, allocations: 44.89 kB / 274.5 MB, free: 68 kB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002261/0.006476, allocations: 217.7 kB / 274.7 MB, free: 15.83 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.355e-05/0.00654, allocations: 98.16 kB / 274.8 MB, free: 15.71 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.833e-05/0.006578, allocations: 28.38 kB / 274.9 MB, free: 15.69 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003388/0.006917, allocations: 0.6089 MB / 275.5 MB, free: 14.95 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.157e-05/0.006928, allocations: 192 / 275.5 MB, free: 14.95 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.764e-05/0.006946, allocations: 16.12 kB / 275.5 MB, free: 14.93 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.42e-06/0.006952, allocations: 7.938 kB / 275.5 MB, free: 14.93 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001018/0.007053, allocations: 71.44 kB / 275.6 MB, free: 14.86 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006617/0.007715, allocations: 485.9 kB / 276 MB, free: 14.37 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001803/0.007895, allocations: 130.5 kB / 276.2 MB, free: 14.23 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.373e-05/0.007949, allocations: 52.83 kB / 276.2 MB, free: 14.18 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.148e-05/0.007971, allocations: 8 kB / 276.2 MB, free: 14.17 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.423e-05/0.007995, allocations: 42.55 kB / 276.3 MB, free: 14.12 MB / 266.7 MB Notification: Performance of pre-optimization done (n=29): time 1.082e-06/0.007996, allocations: 4 kB / 276.3 MB, free: 14.11 MB / 266.7 MB Notification: Performance of matching and sorting (n=29): time 0.0003789/0.008375, allocations: 222.3 kB / 276.5 MB, free: 13.89 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.916e-05/0.008464, allocations: 316.4 kB / 276.8 MB, free: 13.5 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001499/0.008614, allocations: 251 kB / 277 MB, free: 13.24 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.511e-05/0.008639, allocations: 33.7 kB / 277.1 MB, free: 13.2 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.407e-05/0.008733, allocations: 145.4 kB / 277.2 MB, free: 13.06 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.055e-05/0.008784, allocations: 111 kB / 277.3 MB, free: 12.95 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.565e-05/0.008849, allocations: 69.67 kB / 277.4 MB, free: 12.88 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.909e-05/0.008928, allocations: 342.7 kB / 277.7 MB, free: 12.53 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.426e-05/0.008983, allocations: 57.69 kB / 277.8 MB, free: 12.47 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001734/0.009156, allocations: 434.7 kB / 278.2 MB, free: 11.93 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001397/0.009296, allocations: 154.6 kB / 278.4 MB, free: 11.76 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.009298, allocations: 0 / 278.4 MB, free: 11.76 MB / 266.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.000231/0.009529, allocations: 247.7 kB / 278.6 MB, free: 11.5 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.071e-05/0.00956, allocations: 36.45 kB / 278.6 MB, free: 11.46 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.95e-06/0.009565, allocations: 0 / 278.6 MB, free: 11.46 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.981e-05/0.009654, allocations: 36.77 kB / 278.7 MB, free: 11.42 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000424/0.01008, allocations: 155.9 kB / 278.8 MB, free: 11.27 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001389/0.01147, allocations: 2.538 MB / 281.4 MB, free: 8.559 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001198/0.01159, allocations: 27.88 kB / 281.4 MB, free: 8.531 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.394e-05/0.0116, allocations: 12 kB / 281.4 MB, free: 8.52 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (33): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems 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 {(3,2)} Notification: Performance of prepare postOptimizeDAE: time 8.647e-05/0.01169, allocations: 129.8 kB / 281.5 MB, free: 8.383 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.072e-05/0.01173, allocations: 35.95 kB / 281.6 MB, free: 8.348 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.979e-05/0.01177, allocations: 39.08 kB / 281.6 MB, free: 8.305 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.414e-06/0.01177, allocations: 4 kB / 281.6 MB, free: 8.301 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.375e-06/0.01177, allocations: 7.875 kB / 281.6 MB, free: 8.293 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002439/0.01202, allocations: 0.5251 MB / 282.1 MB, free: 7.66 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003657/0.01238, allocations: 193.6 kB / 282.3 MB, free: 7.453 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.01238, allocations: 0 / 282.3 MB, free: 7.453 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005742/0.01296, allocations: 215.7 kB / 282.5 MB, free: 7.242 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.4e-05/0.01301, allocations: 16.84 kB / 282.5 MB, free: 7.223 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.43e-05/0.01303, allocations: 4 kB / 282.6 MB, free: 7.219 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001198/0.01423, allocations: 2.456 MB / 285 MB, free: 4.594 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.01423, allocations: 0 / 285 MB, free: 4.594 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002624/0.01449, allocations: 321.4 kB / 285.3 MB, free: 4.262 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.215e-05/0.01455, allocations: 39.73 kB / 285.4 MB, free: 4.223 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.436e-05/0.01458, allocations: 11.98 kB / 285.4 MB, free: 4.211 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001128/0.01469, allocations: 12 kB / 285.4 MB, free: 4.199 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.918e-05/0.01474, allocations: 27.89 kB / 285.4 MB, free: 4.172 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.153e-05/0.01475, allocations: 7.984 kB / 285.4 MB, free: 4.164 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.399e-05/0.01481, allocations: 92.67 kB / 285.5 MB, free: 4.07 MB / 266.7 MB Notification: Performance of sort global known variables: time 3e-08/0.01481, allocations: 0 / 285.5 MB, free: 4.07 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002324/0.01505, allocations: 104 kB / 285.6 MB, free: 3.969 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (openTank1.m,openTank1.H,openTank2.m,openTank2.H) * 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 (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems 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,2)} Notification: Performance of Backend phase and start with SimCode phase: time 8.108e-05/0.01513, allocations: 88.42 kB / 285.7 MB, free: 3.875 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005541/0.01568, allocations: 440.3 kB / 286.1 MB, free: 3.41 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.43e-06/0.01569, allocations: 4 kB / 286.1 MB, free: 3.406 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004745/0.01616, allocations: 315.2 kB / 286.4 MB, free: 3.082 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002625/0.01642, allocations: 100.6 kB / 286.5 MB, free: 2.984 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001064/0.01749, allocations: 0.6879 MB / 287.2 MB, free: 2.266 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.42e-05/0.01754, allocations: 93.31 kB / 287.3 MB, free: 2.156 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 9.917e-05/0.01764, allocations: 38.95 kB / 287.4 MB, free: 2.113 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002417/0.01788, allocations: 181.2 kB / 287.5 MB, free: 1.938 MB / 266.7 MB Notification: Performance of SimCode: time 3.61e-07/0.01788, allocations: 0 / 287.5 MB, free: 1.938 MB / 266.7 MB Notification: Performance of Templates: time 0.008496/0.02638, allocations: 7.546 MB / 295.1 MB, free: 10.59 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & ./Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/TwoTanks/TwoTanks.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: 2.865275562275201]