Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 90] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|openTank1.H|openTank1.m|openTank2.H|openTank2.m",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|openTank1.H|openTank1.m|openTank2.H|openTank2.m",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") [Timeout 660] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001791/0.001791, allocations: 113.5 kB / 18.79 MB, free: 3.562 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002006/0.002006, allocations: 215.1 kB / 19.8 MB, free: 2.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.464/1.464, allocations: 230.4 MB / 251.1 MB, free: 8.457 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001967/0.001967, allocations: 59.84 kB / 368.9 MB, free: 6.102 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2424/0.2444, allocations: 53.32 MB / 422.3 MB, free: 7.863 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.003948/0.2484, allocations: 2.769 MB / 425 MB, free: 5.086 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001415/0.2498, allocations: 0.8684 MB / 425.9 MB, free: 4.211 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001199/0.2499, allocations: 7.938 kB / 425.9 MB, free: 4.203 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002567/0.2501, allocations: 75.41 kB / 426 MB, free: 4.129 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002771/0.2504, allocations: 134.9 kB / 426.1 MB, free: 3.996 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001962/0.2506, allocations: 79.91 kB / 426.2 MB, free: 3.918 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005263/0.2511, allocations: 454.2 kB / 426.6 MB, free: 3.473 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001581/0.2513, allocations: 59.39 kB / 426.7 MB, free: 3.41 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001779/0.2515, allocations: 155.5 kB / 426.8 MB, free: 3.258 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002675/0.2517, allocations: 183.2 kB / 427 MB, free: 3.078 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.828e-05/0.2518, allocations: 36 kB / 427 MB, free: 3.043 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.148e-05/0.2519, allocations: 36 kB / 427.1 MB, free: 3.008 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.911e-05/0.2519, allocations: 75.73 kB / 427.2 MB, free: 2.934 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001915/0.2521, allocations: 191.1 kB / 427.3 MB, free: 2.746 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004862/0.2526, allocations: 441.8 kB / 427.8 MB, free: 2.316 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.2526, allocations: 0 / 427.8 MB, free: 2.316 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.2526, allocations: 4 kB / 427.8 MB, free: 2.312 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.973e-06/0.2526, allocations: 0 / 427.8 MB, free: 2.312 MB / 334.1 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.001175/0.2538, allocations: 0.6793 MB / 428.5 MB, free: 1.578 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.468e-05/0.2538, allocations: 19.97 kB / 428.5 MB, free: 1.559 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.835e-05/0.2539, allocations: 40.7 kB / 428.5 MB, free: 1.52 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004334/0.2544, allocations: 307.6 kB / 428.8 MB, free: 1.18 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001009/0.2545, allocations: 46.7 kB / 428.9 MB, free: 1.125 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.626e-05/0.2545, allocations: 20.38 kB / 428.9 MB, free: 1.105 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005418/0.2551, allocations: 325.6 kB / 429.2 MB, free: 0.75 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.471e-05/0.2551, allocations: 0 / 429.2 MB, free: 0.75 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.208e-05/0.2551, allocations: 12 kB / 429.2 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.735e-06/0.2551, allocations: 4 kB / 429.2 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004352/0.2555, allocations: 209.6 kB / 429.4 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001427/0.257, allocations: 0.791 MB / 430.2 MB, free: 15.69 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005865/0.2576, allocations: 258.4 kB / 430.5 MB, free: 15.43 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002297/0.2578, allocations: 104.8 kB / 430.6 MB, free: 15.33 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.528e-05/0.2578, allocations: 4 kB / 430.6 MB, free: 15.32 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.719e-05/0.2579, allocations: 42.56 kB / 430.6 MB, free: 15.27 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 1.303e-06/0.2579, allocations: 0 / 430.6 MB, free: 15.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.00108/0.2589, allocations: 491.4 kB / 431.1 MB, free: 14.77 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001768/0.2591, allocations: 320.4 kB / 431.4 MB, free: 14.38 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003103/0.2594, allocations: 283 kB / 431.7 MB, free: 14.1 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.888e-05/0.2595, allocations: 33.7 kB / 431.7 MB, free: 14.06 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001357/0.2596, allocations: 172.8 kB / 431.9 MB, free: 13.89 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.638e-05/0.2597, allocations: 111.1 kB / 432 MB, free: 13.78 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001113/0.2598, allocations: 65.69 kB / 432.1 MB, free: 13.71 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001561/0.26, allocations: 346.8 kB / 432.4 MB, free: 13.36 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002196/0.2602, allocations: 87.95 kB / 432.5 MB, free: 13.27 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003289/0.2605, allocations: 216.2 kB / 432.7 MB, free: 13.02 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004681/0.261, allocations: 271.4 kB / 433 MB, free: 12.73 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.261, allocations: 0 / 433 MB, free: 12.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006759/0.2617, allocations: 361.8 kB / 433.3 MB, free: 12.37 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.867e-05/0.2617, allocations: 33.7 kB / 433.3 MB, free: 12.33 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.354e-06/0.2617, allocations: 8.078 kB / 433.4 MB, free: 12.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000166/0.2619, allocations: 40.84 kB / 433.4 MB, free: 12.28 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001034/0.2629, allocations: 155.8 kB / 433.5 MB, free: 12.12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004107/0.267, allocations: 3.237 MB / 436.8 MB, free: 8.605 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000292/0.2673, allocations: 28.11 kB / 436.8 MB, free: 8.578 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.124e-05/0.2673, allocations: 15.98 kB / 436.8 MB, free: 8.562 MB / 350.1 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 0.0001989/0.2675, allocations: 149.7 kB / 437 MB, free: 8.406 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.601e-05/0.2676, allocations: 43.77 kB / 437 MB, free: 8.363 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.083e-05/0.2677, allocations: 39.08 kB / 437.1 MB, free: 8.324 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.073e-06/0.2677, allocations: 4 kB / 437.1 MB, free: 8.32 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.214e-06/0.2677, allocations: 4 kB / 437.1 MB, free: 8.316 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007202/0.2684, allocations: 0.6461 MB / 437.7 MB, free: 7.562 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005971/0.269, allocations: 393.2 kB / 438.1 MB, free: 7.129 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.269, allocations: 0 / 438.1 MB, free: 7.129 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001356/0.2704, allocations: 203.8 kB / 438.3 MB, free: 6.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.01e-05/0.2705, allocations: 28.78 kB / 438.3 MB, free: 6.898 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.869e-05/0.2705, allocations: 8 kB / 438.3 MB, free: 6.891 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003565/0.2741, allocations: 3.034 MB / 441.4 MB, free: 3.578 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.2741, allocations: 4.031 kB / 441.4 MB, free: 3.574 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009208/0.275, allocations: 0.5129 MB / 441.9 MB, free: 3.043 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001819/0.2752, allocations: 137.1 kB / 442 MB, free: 2.891 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.399e-05/0.2752, allocations: 11.98 kB / 442 MB, free: 2.879 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002667/0.2755, allocations: 27.98 kB / 442 MB, free: 2.852 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.54e-05/0.2756, allocations: 23.95 kB / 442.1 MB, free: 2.828 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.275e-05/0.2756, allocations: 12 kB / 442.1 MB, free: 2.816 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002213/0.2758, allocations: 198 kB / 442.3 MB, free: 2.621 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2758, allocations: 0 / 442.3 MB, free: 2.621 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004384/0.2762, allocations: 107.9 kB / 442.4 MB, free: 2.516 MB / 350.1 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 0.000179/0.2764, allocations: 107.2 kB / 442.5 MB, free: 2.402 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001596/0.278, allocations: 0.5291 MB / 443 MB, free: 1.848 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.278, allocations: 0 / 443 MB, free: 1.848 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001445/0.2795, allocations: 394.3 kB / 443.4 MB, free: 1.449 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005415/0.28, allocations: 96.5 kB / 443.5 MB, free: 1.352 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001765/0.2818, allocations: 0.8505 MB / 444.3 MB, free: 488 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004145/0.2822, allocations: 0.776 MB / 445.1 MB, free: 15.67 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001491/0.2823, allocations: 38.95 kB / 445.2 MB, free: 15.63 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.903e-05/0.2824, allocations: 31.38 kB / 445.2 MB, free: 15.6 MB / 366.1 MB Notification: Performance of SimCode: time 3e-07/0.2824, allocations: 0 / 445.2 MB, free: 15.6 MB / 366.1 MB Notification: Performance of Templates: time 0.01223/0.2946, allocations: 6.384 MB / 451.6 MB, free: 9.32 MB / 366.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & ./Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Thermal/FluidHeatFlow/Examples/TwoTanks/TwoTanks.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] Reference file matches