Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.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.0009946/0.0009946, allocations: 75.75 kB / 21.97 MB, free: 2.602 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.0009971/0.0009971, allocations: 166.9 kB / 25.33 MB, free: 8.586 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9129/0.9129, allocations: 158.6 MB / 187.2 MB, free: 2.934 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Fluid.Examples.Tanks.ThreeTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T",fileNamePrefix="Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks") translateModel(Modelica.Fluid.Examples.Tanks.ThreeTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T",fileNamePrefix="Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.624e-06/1.624e-06, allocations: 3.938 kB / 251 MB, free: 7.527 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.987e-05/2.149e-05, allocations: 2.312 kB / 251 MB, free: 7.523 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.008741/0.008762, allocations: 11.14 MB / 262.2 MB, free: 12.32 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.008569/0.01733, allocations: 6.851 MB / 269 MB, free: 5.457 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001004/0.01834, allocations: 59.5 kB / 269.1 MB, free: 5.398 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008373/0.01917, allocations: 409.3 kB / 269.5 MB, free: 4.996 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002682/0.02186, allocations: 1.752 MB / 271.2 MB, free: 3.234 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004058/0.02591, allocations: 2.724 MB / 274 MB, free: 0.5039 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.004017/0.02993, allocations: 4.145 MB / 278.1 MB, free: 12.35 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001682/0.03161, allocations: 1.064 MB / 279.2 MB, free: 11.26 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002593/0.0342, allocations: 1.972 MB / 281.1 MB, free: 9.285 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001849/0.03605, allocations: 1.648 MB / 282.8 MB, free: 7.633 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002414/0.03629, allocations: 164 kB / 282.9 MB, free: 7.473 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001646/0.03794, allocations: 0.9868 MB / 283.9 MB, free: 6.484 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004791/0.03842, allocations: 0.6738 MB / 284.6 MB, free: 5.809 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006391/0.03906, allocations: 0.647 MB / 285.3 MB, free: 5.16 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002592/0.04165, allocations: 2.29 MB / 287.5 MB, free: 2.863 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.04166, allocations: 4 kB / 287.5 MB, free: 2.859 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.041e-06/0.04166, allocations: 0 / 287.5 MB, free: 2.859 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.902e-05/0.04168, allocations: 0 / 287.5 MB, free: 2.859 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: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.003078/0.04475, allocations: 2.047 MB / 289.6 MB, free: 0.7656 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.083e-05/0.04479, allocations: 19.97 kB / 289.6 MB, free: 0.7461 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004773/0.04527, allocations: 275.6 kB / 289.9 MB, free: 488 kB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001174/0.04645, allocations: 1.024 MB / 290.9 MB, free: 15.42 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001571/0.0466, allocations: 256.2 kB / 291.2 MB, free: 15.14 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000154/0.04676, allocations: 112 kB / 291.3 MB, free: 15.03 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001586/0.04834, allocations: 1.534 MB / 292.8 MB, free: 13.32 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.315e-05/0.04837, allocations: 11.89 kB / 292.8 MB, free: 13.3 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.545e-05/0.04846, allocations: 43.95 kB / 292.9 MB, free: 13.26 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001084/0.04857, allocations: 113.9 kB / 293 MB, free: 13.15 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001206/0.04978, allocations: 0.7455 MB / 293.7 MB, free: 12.39 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00548/0.05526, allocations: 4.228 MB / 297.9 MB, free: 8.078 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008398/0.0561, allocations: 0.6428 MB / 298.6 MB, free: 7.426 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004197/0.05652, allocations: 302.5 kB / 298.9 MB, free: 7.129 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002291/0.05881, allocations: 1.799 MB / 300.7 MB, free: 5.309 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.272e-05/0.05884, allocations: 50.39 kB / 300.7 MB, free: 5.25 MB / 282.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003718/0.05921, allocations: 183.2 kB / 300.9 MB, free: 5.07 MB / 282.7 MB Notification: Performance of pre-optimization done (n=97): time 2.534e-06/0.05921, allocations: 0 / 300.9 MB, free: 5.07 MB / 282.7 MB Notification: Performance of matching and sorting (n=112): time 0.00751/0.06672, allocations: 3.337 MB / 304.2 MB, free: 1.703 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.917e-05/0.06678, allocations: 145.5 kB / 304.4 MB, free: 1.531 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007759/0.06756, allocations: 0.9535 MB / 305.3 MB, free: 0.5586 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.196e-05/0.06763, allocations: 49.7 kB / 305.4 MB, free: 0.5039 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003287/0.06796, allocations: 0.6828 MB / 306.1 MB, free: 15.81 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002243/0.06818, allocations: 416.5 kB / 306.5 MB, free: 15.4 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003041/0.06849, allocations: 289.1 kB / 306.8 MB, free: 15.11 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.411e-05/0.06858, allocations: 476.8 kB / 307.2 MB, free: 14.64 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004619/0.06904, allocations: 279.5 kB / 307.5 MB, free: 14.36 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006969/0.06974, allocations: 0.8211 MB / 308.3 MB, free: 13.33 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001133/0.07087, allocations: 1.034 MB / 309.3 MB, free: 12.11 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.679e-06/0.07088, allocations: 0 / 309.3 MB, free: 12.11 MB / 298.7 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.002048/0.07293, allocations: 1.281 MB / 310.6 MB, free: 10.82 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.073e-05/0.07295, allocations: 8 kB / 310.6 MB, free: 10.82 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.279e-05/0.07296, allocations: 16.09 kB / 310.7 MB, free: 10.8 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002923/0.07588, allocations: 0.9398 MB / 311.6 MB, free: 9.855 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006231/0.0765, allocations: 299.5 kB / 311.9 MB, free: 9.562 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001108/0.07761, allocations: 1.171 MB / 313.1 MB, free: 8.359 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005333/0.07815, allocations: 63.91 kB / 313.1 MB, free: 8.297 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.568e-05/0.07824, allocations: 67.97 kB / 313.2 MB, free: 8.23 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000622/0.07886, allocations: 410.7 kB / 313.6 MB, free: 7.824 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006912/0.07956, allocations: 0.8444 MB / 314.4 MB, free: 6.758 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001083/0.08064, allocations: 1.045 MB / 315.5 MB, free: 5.52 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.54e-06/0.08064, allocations: 4 kB / 315.5 MB, free: 5.516 MB / 298.7 MB Notification: Performance of matching and sorting (n=181) (initialization_lambda0): time 0.001668/0.08231, allocations: 1.253 MB / 316.7 MB, free: 4.25 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.38e-05/0.08233, allocations: 8 kB / 316.7 MB, free: 4.242 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.337e-06/0.08234, allocations: 12 kB / 316.8 MB, free: 4.23 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0027/0.08504, allocations: 0.8036 MB / 317.6 MB, free: 3.422 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006024/0.08564, allocations: 299.5 kB / 317.8 MB, free: 3.129 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008816/0.08652, allocations: 1.116 MB / 319 MB, free: 1.98 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005364/0.08706, allocations: 59.97 kB / 319 MB, free: 1.922 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.191e-05/0.08715, allocations: 71.97 kB / 319.1 MB, free: 1.852 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 6 (tank3.inFlow[1],tank3.regularFlow[1],tank2.inFlow[1],tank2.regularFlow[1],tank1.inFlow[1],tank1.regularFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (156): * Single equations (assignments): 155 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(8,18)} Notification: Performance of prepare postOptimizeDAE: time 0.0002963/0.08744, allocations: 347.7 kB / 319.4 MB, free: 1.504 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001916/0.08764, allocations: 175.2 kB / 319.6 MB, free: 1.332 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001934/0.08957, allocations: 1.201 MB / 320.8 MB, free: 124 kB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.308e-06/0.08958, allocations: 15.94 kB / 320.8 MB, free: 108 kB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.08958, allocations: 0 / 320.8 MB, free: 108 kB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.737e-06/0.08959, allocations: 7.969 kB / 320.8 MB, free: 100 kB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002619/0.09221, allocations: 2.049 MB / 322.9 MB, free: 14 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.125e-06/0.09221, allocations: 0 / 322.9 MB, free: 14 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004669/0.09268, allocations: 187.8 kB / 323.1 MB, free: 13.82 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001056/0.09374, allocations: 0.6002 MB / 323.7 MB, free: 13.21 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.42e-05/0.0938, allocations: 31.98 kB / 323.7 MB, free: 13.18 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00124/0.09504, allocations: 1.207 MB / 324.9 MB, free: 11.94 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.09504, allocations: 0 / 324.9 MB, free: 11.94 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001816/0.09686, allocations: 1.432 MB / 326.3 MB, free: 10.48 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003905/0.09725, allocations: 270.9 kB / 326.6 MB, free: 10.22 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001095/0.09736, allocations: 24 kB / 326.6 MB, free: 10.2 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004164/0.09777, allocations: 47.97 kB / 326.7 MB, free: 10.15 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001546/0.09793, allocations: 93.12 kB / 326.8 MB, free: 10.05 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.356e-05/0.098, allocations: 51.91 kB / 326.8 MB, free: 10 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004922/0.09849, allocations: 0.5656 MB / 327.4 MB, free: 9.43 MB / 314.7 MB Notification: Performance of sort global known variables: time 8e-08/0.09849, allocations: 0 / 327.4 MB, free: 9.43 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001507/0.1, allocations: 0.874 MB / 328.2 MB, free: 8.555 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T,tank3.level,tank3.medium.T) * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (90): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(9,29)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007253/0.1007, allocations: 473.8 kB / 328.7 MB, free: 8.082 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002779/0.1035, allocations: 1.6 MB / 330.3 MB, free: 6.488 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.1035, allocations: 4.125 kB / 330.3 MB, free: 6.484 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007348/0.1042, allocations: 0.5022 MB / 330.8 MB, free: 5.98 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001411/0.1057, allocations: 0.6293 MB / 331.4 MB, free: 5.363 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003635/0.1093, allocations: 2.492 MB / 333.9 MB, free: 2.828 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002036/0.1095, allocations: 340.6 kB / 334.3 MB, free: 2.473 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0009189/0.1104, allocations: 0.5028 MB / 334.8 MB, free: 1.965 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002145/0.1106, allocations: 120.4 kB / 334.9 MB, free: 1.848 MB / 314.7 MB Notification: Performance of SimCode: time 9.12e-07/0.1106, allocations: 0 / 334.9 MB, free: 1.848 MB / 314.7 MB Notification: Performance of Templates: time 0.1439/0.2546, allocations: 34.82 MB / 369.7 MB, free: 80.34 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.sim & ./Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Fluid/Examples/Tanks/ThreeTanks/ThreeTanks.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.8647475270554423]