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.001482/0.001482, allocations: 80.62 kB / 22.21 MB, free: 2.297 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.001055/0.001055, allocations: 142.6 kB / 25.59 MB, free: 8.129 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.9038/0.9038, allocations: 173.4 MB / 202.2 MB, free: 8.312 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.453e-06/1.453e-06, allocations: 0 / 269.2 MB, free: 9.809 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.286e-05/2.432e-05, allocations: 2.812 kB / 269.2 MB, free: 9.805 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.002895/0.00292, allocations: 2.742 MB / 271.9 MB, free: 7.062 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001014/0.003933, allocations: 0.802 MB / 272.7 MB, free: 6.262 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001333/0.004067, allocations: 4.688 kB / 272.7 MB, free: 6.258 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002199/0.004287, allocations: 80.03 kB / 272.8 MB, free: 6.18 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002213/0.004508, allocations: 146.6 kB / 272.9 MB, free: 6.039 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001577/0.004666, allocations: 87.8 kB / 273 MB, free: 5.953 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003615/0.005027, allocations: 454.2 kB / 273.5 MB, free: 5.508 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001312/0.005158, allocations: 63.95 kB / 273.5 MB, free: 5.441 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004595/0.005618, allocations: 245.1 kB / 273.8 MB, free: 5.203 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001621/0.00578, allocations: 135.6 kB / 273.9 MB, free: 5.07 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.452e-05/0.005824, allocations: 36 kB / 273.9 MB, free: 5.035 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.732e-05/0.005862, allocations: 36 kB / 274 MB, free: 5 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.311e-05/0.005915, allocations: 72.56 kB / 274 MB, free: 4.93 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001009/0.006016, allocations: 147.7 kB / 274.2 MB, free: 4.785 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002498/0.006265, allocations: 291.9 kB / 274.5 MB, free: 4.5 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.955e-06/0.006268, allocations: 3.938 kB / 274.5 MB, free: 4.496 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.62e-07/0.006269, allocations: 0 / 274.5 MB, free: 4.496 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.499e-06/0.006274, allocations: 4 kB / 274.5 MB, free: 4.492 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.0006921/0.006966, allocations: 0.7156 MB / 275.2 MB, free: 3.734 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.136e-05/0.006997, allocations: 8.031 kB / 275.2 MB, free: 3.727 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.328e-05/0.007071, allocations: 60.7 kB / 275.3 MB, free: 3.668 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002423/0.007313, allocations: 248.5 kB / 275.5 MB, free: 3.398 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.844e-05/0.007401, allocations: 102.2 kB / 275.6 MB, free: 3.281 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.593e-05/0.007437, allocations: 28.38 kB / 275.6 MB, free: 3.254 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003707/0.007808, allocations: 0.6315 MB / 276.3 MB, free: 2.484 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.259e-05/0.007821, allocations: 4.172 kB / 276.3 MB, free: 2.48 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.018e-05/0.007841, allocations: 12.12 kB / 276.3 MB, free: 2.469 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.613e-06/0.007847, allocations: 4 kB / 276.3 MB, free: 2.465 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001124/0.00796, allocations: 87.41 kB / 276.4 MB, free: 2.383 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007559/0.008716, allocations: 0.6386 MB / 277 MB, free: 1.715 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002161/0.008932, allocations: 161.4 kB / 277.2 MB, free: 1.547 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.051e-05/0.008992, allocations: 60.16 kB / 277.2 MB, free: 1.484 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.371e-05/0.009016, allocations: 11.98 kB / 277.2 MB, free: 1.473 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.432e-05/0.00904, allocations: 41.39 kB / 277.3 MB, free: 1.422 MB / 250.7 MB Notification: Performance of pre-optimization done (n=29): time 1.403e-06/0.009042, allocations: 4 kB / 277.3 MB, free: 1.418 MB / 250.7 MB Notification: Performance of matching and sorting (n=29): time 0.0004505/0.009492, allocations: 277 kB / 277.6 MB, free: 1.137 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.725e-05/0.009579, allocations: 312.4 kB / 277.9 MB, free: 0.7578 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001732/0.009753, allocations: 330.1 kB / 278.2 MB, free: 432 kB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.431e-05/0.009777, allocations: 33.7 kB / 278.2 MB, free: 392 kB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.204e-05/0.009869, allocations: 211.6 kB / 278.4 MB, free: 176 kB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.652e-05/0.009925, allocations: 115 kB / 278.5 MB, free: 60 kB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.67e-05/0.01001, allocations: 79.31 kB / 278.6 MB, free: 15.97 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001308/0.01014, allocations: 0.5157 MB / 279.1 MB, free: 15.45 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.359e-05/0.01022, allocations: 65.67 kB / 279.2 MB, free: 15.38 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002058/0.01042, allocations: 470.2 kB / 279.7 MB, free: 14.79 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001516/0.01057, allocations: 174 kB / 279.8 MB, free: 14.59 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.01058, allocations: 0 / 279.8 MB, free: 14.59 MB / 266.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0002829/0.01086, allocations: 298.9 kB / 280.1 MB, free: 14.28 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.386e-05/0.01089, allocations: 45.62 kB / 280.2 MB, free: 14.23 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.0109, allocations: 0 / 280.2 MB, free: 14.23 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.746e-05/0.01099, allocations: 27.67 kB / 280.2 MB, free: 14.2 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003957/0.01138, allocations: 131.8 kB / 280.3 MB, free: 14.07 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005284/0.01667, allocations: 3.688 MB / 284 MB, free: 10.16 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000257/0.01692, allocations: 35.81 kB / 284 MB, free: 10.12 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.349e-05/0.01695, allocations: 8 kB / 284 MB, free: 10.11 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 0.000155/0.0171, allocations: 176.5 kB / 284.2 MB, free: 9.93 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.509e-05/0.01718, allocations: 47.77 kB / 284.3 MB, free: 9.883 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.912e-05/0.01724, allocations: 39.08 kB / 284.3 MB, free: 9.84 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.907e-06/0.01724, allocations: 8 kB / 284.3 MB, free: 9.832 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.01724, allocations: 3.984 kB / 284.3 MB, free: 9.828 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004189/0.01766, allocations: 0.559 MB / 284.9 MB, free: 9.16 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003298/0.01799, allocations: 229 kB / 285.1 MB, free: 8.91 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.01799, allocations: 0 / 285.1 MB, free: 8.91 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008497/0.01884, allocations: 183.8 kB / 285.3 MB, free: 8.73 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.082e-05/0.01892, allocations: 27.88 kB / 285.3 MB, free: 8.699 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.167e-05/0.01894, allocations: 8 kB / 285.3 MB, free: 8.691 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002222/0.02116, allocations: 3.578 MB / 288.9 MB, free: 4.883 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.02116, allocations: 7.922 kB / 288.9 MB, free: 4.875 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005007/0.02166, allocations: 408.7 kB / 289.3 MB, free: 4.453 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001373/0.0218, allocations: 71.64 kB / 289.4 MB, free: 4.383 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.667e-05/0.02185, allocations: 8 kB / 289.4 MB, free: 4.375 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002203/0.02207, allocations: 15.98 kB / 289.4 MB, free: 4.359 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.136e-05/0.02214, allocations: 23.95 kB / 289.4 MB, free: 4.336 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.381e-05/0.0222, allocations: 8 kB / 289.4 MB, free: 4.328 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001635/0.02237, allocations: 214.9 kB / 289.6 MB, free: 4.121 MB / 266.7 MB Notification: Performance of sort global known variables: time 2e-07/0.02237, allocations: 0 / 289.6 MB, free: 4.121 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004553/0.02282, allocations: 107.9 kB / 289.7 MB, free: 4.016 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 0.0001427/0.02296, allocations: 111.2 kB / 289.8 MB, free: 3.898 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.00101/0.02397, allocations: 0.4945 MB / 290.3 MB, free: 3.363 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.42e-06/0.02398, allocations: 4 kB / 290.3 MB, free: 3.359 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009429/0.02492, allocations: 385.2 kB / 290.7 MB, free: 2.961 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005503/0.02547, allocations: 98.28 kB / 290.8 MB, free: 2.867 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00206/0.02753, allocations: 0.761 MB / 291.6 MB, free: 2.082 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.774e-05/0.02763, allocations: 97.3 kB / 291.7 MB, free: 1.969 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001296/0.02776, allocations: 34.97 kB / 291.7 MB, free: 1.93 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002515/0.02801, allocations: 218.1 kB / 291.9 MB, free: 1.715 MB / 266.7 MB Notification: Performance of SimCode: time 9.31e-07/0.02801, allocations: 7.938 kB / 291.9 MB, free: 1.707 MB / 266.7 MB Notification: Performance of Templates: time 0.008458/0.03647, allocations: 7.345 MB / 299.3 MB, free: 10.55 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 -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.9715201961807907]