Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.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.001125/0.001125, allocations: 80.8 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.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.001247/0.001247, allocations: 169.4 kB / 24.91 MB, free: 8.77 MB / 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 0.9478/0.9478, allocations: 177.1 MB / 205.3 MB, free: 5.098 MB / 186.7 MB " [Timeout remaining time 179] 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.TwoTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|openTank1.H|openTank1.m|openTank2.H|openTank2.m",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.254e-06/2.254e-06, allocations: 4 kB / 273.4 MB, free: 1.191 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.197e-05/1.423e-05, allocations: 2.312 kB / 273.4 MB, free: 1.188 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.002598/0.002613, allocations: 2.77 MB / 276.2 MB, free: 14.41 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001117/0.00373, allocations: 0.8603 MB / 277.1 MB, free: 13.54 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001232/0.003853, allocations: 7.938 kB / 277.1 MB, free: 13.53 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000207/0.00406, allocations: 75.39 kB / 277.1 MB, free: 13.46 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002108/0.004271, allocations: 146.8 kB / 277.3 MB, free: 13.31 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000167/0.004438, allocations: 95.73 kB / 277.4 MB, free: 13.22 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003652/0.004803, allocations: 450.2 kB / 277.8 MB, free: 12.77 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001224/0.004926, allocations: 70.56 kB / 277.9 MB, free: 12.71 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000199/0.005125, allocations: 247.5 kB / 278.1 MB, free: 12.46 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001625/0.005287, allocations: 131.6 kB / 278.3 MB, free: 12.34 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.383e-05/0.005331, allocations: 36 kB / 278.3 MB, free: 12.3 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.72e-05/0.005368, allocations: 35.94 kB / 278.3 MB, free: 12.27 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.565e-05/0.005424, allocations: 83.73 kB / 278.4 MB, free: 12.18 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001026/0.005527, allocations: 139.7 kB / 278.5 MB, free: 12.05 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002682/0.005795, allocations: 287.1 kB / 278.8 MB, free: 11.77 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.924e-06/0.005797, allocations: 0 / 278.8 MB, free: 11.77 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.21e-07/0.005797, allocations: 0 / 278.8 MB, free: 11.77 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.238e-06/0.005802, allocations: 0 / 278.8 MB, free: 11.77 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0006421/0.006444, allocations: 0.587 MB / 279.4 MB, free: 11.15 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.997e-05/0.006474, allocations: 11.97 kB / 279.4 MB, free: 11.14 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.943e-05/0.006533, allocations: 44.89 kB / 279.5 MB, free: 11.09 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002285/0.006761, allocations: 217.7 kB / 279.7 MB, free: 10.86 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.557e-05/0.006837, allocations: 94.17 kB / 279.8 MB, free: 10.75 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.913e-05/0.006876, allocations: 28.38 kB / 279.8 MB, free: 10.72 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003393/0.007216, allocations: 0.6089 MB / 280.4 MB, free: 9.98 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.447e-05/0.00723, allocations: 192 / 280.4 MB, free: 9.98 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.133e-05/0.007251, allocations: 20.12 kB / 280.4 MB, free: 9.961 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.505e-06/0.007259, allocations: 4 kB / 280.4 MB, free: 9.957 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001043/0.007363, allocations: 75.38 kB / 280.5 MB, free: 9.887 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006757/0.008039, allocations: 470 kB / 281 MB, free: 9.41 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000274/0.008313, allocations: 136.9 kB / 281.1 MB, free: 9.27 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.667e-05/0.00837, allocations: 56.83 kB / 281.2 MB, free: 9.211 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.487e-05/0.008394, allocations: 7.984 kB / 281.2 MB, free: 9.203 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.607e-05/0.008421, allocations: 42.5 kB / 281.2 MB, free: 9.152 MB / 266.7 MB Notification: Performance of pre-optimization done (n=29): time 1.523e-06/0.008422, allocations: 4 kB / 281.2 MB, free: 9.148 MB / 266.7 MB Notification: Performance of matching and sorting (n=29): time 0.0004327/0.008855, allocations: 223.1 kB / 281.4 MB, free: 8.922 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001035/0.008958, allocations: 312.4 kB / 281.7 MB, free: 8.543 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001606/0.009119, allocations: 259 kB / 282 MB, free: 8.277 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.185e-05/0.009141, allocations: 33.7 kB / 282 MB, free: 8.238 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.897e-05/0.00921, allocations: 145.4 kB / 282.2 MB, free: 8.094 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.699e-05/0.009267, allocations: 111 kB / 282.3 MB, free: 7.984 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.545e-05/0.009332, allocations: 65.61 kB / 282.3 MB, free: 7.914 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.249e-05/0.009415, allocations: 346.7 kB / 282.7 MB, free: 7.566 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.908e-05/0.009474, allocations: 57.69 kB / 282.7 MB, free: 7.504 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001819/0.009656, allocations: 427.3 kB / 283.1 MB, free: 6.973 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001294/0.009785, allocations: 154.6 kB / 283.3 MB, free: 6.805 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.464e-06/0.009787, allocations: 0 / 283.3 MB, free: 6.805 MB / 266.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.000208/0.009995, allocations: 243.6 kB / 283.5 MB, free: 6.547 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.343e-05/0.01002, allocations: 37.62 kB / 283.6 MB, free: 6.504 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.388e-06/0.01002, allocations: 0 / 283.6 MB, free: 6.504 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.936e-05/0.01011, allocations: 32.83 kB / 283.6 MB, free: 6.469 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000357/0.01047, allocations: 135.9 kB / 283.7 MB, free: 6.336 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001404/0.01187, allocations: 2.534 MB / 286.3 MB, free: 3.629 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001207/0.01199, allocations: 35.77 kB / 286.3 MB, free: 3.594 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.384e-05/0.01201, allocations: 11.94 kB / 286.3 MB, free: 3.582 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 9.082e-05/0.0121, allocations: 137.8 kB / 286.4 MB, free: 3.438 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.221e-05/0.01214, allocations: 35.95 kB / 286.5 MB, free: 3.402 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.023e-05/0.01218, allocations: 39.08 kB / 286.5 MB, free: 3.359 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.01218, allocations: 0 / 286.5 MB, free: 3.359 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.765e-06/0.01219, allocations: 4 kB / 286.5 MB, free: 3.355 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002427/0.01243, allocations: 0.5173 MB / 287 MB, free: 2.73 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001965/0.01263, allocations: 201.6 kB / 287.2 MB, free: 2.516 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.01263, allocations: 192 / 287.2 MB, free: 2.516 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004772/0.01311, allocations: 179.8 kB / 287.4 MB, free: 2.34 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.224e-05/0.01316, allocations: 20.84 kB / 287.4 MB, free: 2.316 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.404e-05/0.01317, allocations: 8 kB / 287.4 MB, free: 2.309 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1111/0.1242, allocations: 2.435 MB / 289.9 MB, free: 25.15 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.1242, allocations: 3.562 kB / 289.9 MB, free: 25.15 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005059/0.1247, allocations: 312.2 kB / 290.2 MB, free: 25.01 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001352/0.1249, allocations: 35.7 kB / 290.2 MB, free: 25.01 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.271e-05/0.1249, allocations: 8.562 kB / 290.2 MB, free: 25.01 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001822/0.1251, allocations: 18.78 kB / 290.2 MB, free: 25.01 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.34e-05/0.1252, allocations: 27.22 kB / 290.3 MB, free: 25.01 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.917e-05/0.1252, allocations: 10.09 kB / 290.3 MB, free: 25.01 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001325/0.1253, allocations: 94.16 kB / 290.4 MB, free: 25 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1253, allocations: 1.406 kB / 290.4 MB, free: 25 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003934/0.1257, allocations: 106.4 kB / 290.5 MB, free: 25 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.0001375/0.1259, allocations: 88.8 kB / 290.6 MB, free: 24.93 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007488/0.1266, allocations: 441.5 kB / 291 MB, free: 24.72 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.141e-05/0.1266, allocations: 4.125 kB / 291 MB, free: 24.72 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000554/0.1272, allocations: 321 kB / 291.3 MB, free: 24.6 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003177/0.1275, allocations: 89 kB / 291.4 MB, free: 24.6 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001348/0.1289, allocations: 0.6945 MB / 292.1 MB, free: 24.3 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.969e-05/0.1289, allocations: 94.92 kB / 292.2 MB, free: 24.23 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001476/0.1291, allocations: 36.03 kB / 292.2 MB, free: 24.22 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002593/0.1293, allocations: 179.7 kB / 292.4 MB, free: 24.18 MB / 266.7 MB Notification: Performance of SimCode: time 7.41e-07/0.1293, allocations: 0 / 292.4 MB, free: 24.18 MB / 266.7 MB Notification: Performance of Templates: time 0.01056/0.1399, allocations: 7.229 MB / 299.6 MB, free: 22.4 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & ./Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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","",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.9204851780086756]