Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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.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=5000,variableFilter="time|openTank1.H|openTank1.m|openTank2.H|openTank2.m",fileNamePrefix="Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|openTank1.H|openTank1.m|openTank2.H|openTank2.m",fileNamePrefix="Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001118/0.001118, allocations: 109.4 kB / 18.36 MB, free: 4.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001179/0.001179, allocations: 192 kB / 19.29 MB, free: 3.707 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.41/1.41, allocations: 205.1 MB / 225.2 MB, free: 12.26 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001227/0.001227, allocations: 47.94 kB / 282.1 MB, free: 2.453 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08558/0.08682, allocations: 46.62 MB / 328.7 MB, free: 3.762 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.003762/0.09061, allocations: 2.76 MB / 331.5 MB, free: 0.9805 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001377/0.09201, allocations: 0.8577 MB / 332.3 MB, free: 116 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001297/0.09217, allocations: 4 kB / 332.3 MB, free: 112 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002772/0.09245, allocations: 79.41 kB / 332.4 MB, free: 32 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002969/0.09276, allocations: 131 kB / 332.5 MB, free: 15.9 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000209/0.09298, allocations: 91.83 kB / 332.6 MB, free: 15.81 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004338/0.09342, allocations: 442.2 kB / 333.1 MB, free: 15.38 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001824/0.09361, allocations: 95.36 kB / 333.2 MB, free: 15.29 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001531/0.09377, allocations: 155.4 kB / 333.3 MB, free: 15.13 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002207/0.094, allocations: 179.3 kB / 333.5 MB, free: 14.96 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.446e-05/0.09406, allocations: 32 kB / 333.5 MB, free: 14.93 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.875e-05/0.09413, allocations: 43.94 kB / 333.6 MB, free: 14.88 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.846e-05/0.09422, allocations: 75.75 kB / 333.6 MB, free: 14.81 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001803/0.0944, allocations: 195 kB / 333.8 MB, free: 14.62 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000373/0.09478, allocations: 434.5 kB / 334.3 MB, free: 14.19 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.09479, allocations: 0 / 334.3 MB, free: 14.19 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.09481, allocations: 4 kB / 334.3 MB, free: 14.19 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.172e-06/0.09482, allocations: 0 / 334.3 MB, free: 14.19 MB / 286.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.001095/0.09592, allocations: 0.6795 MB / 334.9 MB, free: 13.45 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.644e-05/0.09596, allocations: 11.89 kB / 334.9 MB, free: 13.44 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.939e-05/0.09605, allocations: 48.47 kB / 335 MB, free: 13.39 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003935/0.09645, allocations: 299.4 kB / 335.3 MB, free: 13.07 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.647e-05/0.09655, allocations: 42.7 kB / 335.3 MB, free: 13.02 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.146e-05/0.09662, allocations: 28.38 kB / 335.4 MB, free: 12.99 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000512/0.09714, allocations: 321.5 kB / 335.7 MB, free: 12.64 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.438e-05/0.09717, allocations: 4 kB / 335.7 MB, free: 12.63 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.641e-05/0.09721, allocations: 12 kB / 335.7 MB, free: 12.62 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.526e-06/0.09723, allocations: 11.94 kB / 335.7 MB, free: 12.61 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000412/0.09765, allocations: 197.6 kB / 335.9 MB, free: 12.42 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001394/0.09905, allocations: 0.8103 MB / 336.7 MB, free: 11.55 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005295/0.09959, allocations: 270.9 kB / 337 MB, free: 11.28 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002097/0.09981, allocations: 124.8 kB / 337.1 MB, free: 11.16 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.715e-05/0.09986, allocations: 4 kB / 337.1 MB, free: 11.15 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.463e-05/0.09989, allocations: 34.56 kB / 337.1 MB, free: 11.11 MB / 286.1 MB Notification: Performance of pre-optimization done (n=29): time 1.473e-06/0.0999, allocations: 0 / 337.1 MB, free: 11.11 MB / 286.1 MB Notification: Performance of matching and sorting (n=29): time 0.001067/0.101, allocations: 479.1 kB / 337.6 MB, free: 10.61 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002411/0.1012, allocations: 324.5 kB / 337.9 MB, free: 10.22 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002927/0.1015, allocations: 275 kB / 338.2 MB, free: 9.941 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.729e-05/0.1016, allocations: 33.7 kB / 338.2 MB, free: 9.902 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001228/0.1017, allocations: 176.6 kB / 338.4 MB, free: 9.723 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.877e-05/0.1018, allocations: 102.5 kB / 338.5 MB, free: 9.621 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001144/0.1019, allocations: 73.69 kB / 338.6 MB, free: 9.543 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001202/0.102, allocations: 338.8 kB / 338.9 MB, free: 9.203 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002102/0.1022, allocations: 91.95 kB / 339 MB, free: 9.113 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002977/0.1026, allocations: 212 kB / 339.2 MB, free: 8.863 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004519/0.103, allocations: 274.6 kB / 339.5 MB, free: 8.578 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.103, allocations: 0 / 339.5 MB, free: 8.578 MB / 286.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006115/0.1036, allocations: 368.7 kB / 339.8 MB, free: 8.203 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.514e-05/0.1037, allocations: 33.69 kB / 339.8 MB, free: 8.164 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/0.1037, allocations: 4 kB / 339.8 MB, free: 8.16 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000153/0.1039, allocations: 36.84 kB / 339.9 MB, free: 8.121 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009833/0.1049, allocations: 159.9 kB / 340 MB, free: 7.965 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00347/0.1083, allocations: 3.24 MB / 343.3 MB, free: 4.449 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002905/0.1086, allocations: 31.78 kB / 343.3 MB, free: 4.418 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.724e-05/0.1087, allocations: 12 kB / 343.3 MB, free: 4.406 MB / 286.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.0001731/0.1089, allocations: 157.7 kB / 343.5 MB, free: 4.242 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.491e-05/0.1089, allocations: 31.7 kB / 343.5 MB, free: 4.211 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.617e-05/0.109, allocations: 39.08 kB / 343.5 MB, free: 4.172 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.308e-06/0.109, allocations: 4 kB / 343.6 MB, free: 4.168 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.915e-06/0.109, allocations: 0 / 343.6 MB, free: 4.168 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000635/0.1097, allocations: 0.6472 MB / 344.2 MB, free: 3.414 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004401/0.1101, allocations: 393.1 kB / 344.6 MB, free: 2.98 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.1101, allocations: 4 kB / 344.6 MB, free: 2.977 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001286/0.1114, allocations: 207.7 kB / 344.8 MB, free: 2.773 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.146e-05/0.1115, allocations: 28.84 kB / 344.8 MB, free: 2.742 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.054e-05/0.1116, allocations: 0 / 344.8 MB, free: 2.742 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003127/0.1147, allocations: 3.045 MB / 347.9 MB, free: 15.42 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.1147, allocations: 96 / 347.9 MB, free: 15.42 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007618/0.1155, allocations: 0.5118 MB / 348.4 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001433/0.1156, allocations: 136.7 kB / 348.5 MB, free: 14.73 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.934e-05/0.1157, allocations: 16 kB / 348.5 MB, free: 14.72 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002521/0.1159, allocations: 15.98 kB / 348.5 MB, free: 14.7 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.746e-05/0.116, allocations: 27.91 kB / 348.6 MB, free: 14.68 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.984e-05/0.1161, allocations: 11.92 kB / 348.6 MB, free: 14.66 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001854/0.1163, allocations: 202 kB / 348.8 MB, free: 14.46 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1163, allocations: 0 / 348.8 MB, free: 14.46 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003992/0.1167, allocations: 103.9 kB / 348.9 MB, free: 14.36 MB / 302.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.0001409/0.1168, allocations: 103.2 kB / 349 MB, free: 14.25 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001483/0.1183, allocations: 0.5411 MB / 349.5 MB, free: 13.68 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.095e-06/0.1183, allocations: 0 / 349.5 MB, free: 13.68 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001329/0.1197, allocations: 398.4 kB / 349.9 MB, free: 13.28 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004982/0.1202, allocations: 80.61 kB / 350 MB, free: 13.2 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001647/0.1218, allocations: 0.8627 MB / 350.8 MB, free: 12.31 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003154/0.1222, allocations: 0.7723 MB / 351.6 MB, free: 11.52 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001348/0.1223, allocations: 34.95 kB / 351.7 MB, free: 11.48 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.735e-05/0.1224, allocations: 27.44 kB / 351.7 MB, free: 11.46 MB / 302.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1224, allocations: 0 / 351.7 MB, free: 11.46 MB / 302.1 MB Notification: Performance of Templates: time 0.0109/0.1333, allocations: 6.208 MB / 357.9 MB, free: 5.254 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.makefile (rm -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & ./Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/FluidHeatFlow/Examples/TwoTanks/TwoTanks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches