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) 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 4.0.0+maint.om/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|openTank1.H|openTank1.m|openTank2.H|openTank2.m",fileNamePrefix="Modelica_4.0.0_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.001383/0.001383, allocations: 100.3 kB / 17.59 MB, free: 5.578 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.001625/0.001626, allocations: 191.3 kB / 18.51 MB, free: 4.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.431/1.431, allocations: 222.9 MB / 242.2 MB, free: 15.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001051/0.001051, allocations: 50.83 kB / 301.3 MB, free: 5.906 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.1066, allocations: 49.44 MB / 350.7 MB, free: 4.453 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.00506/0.1117, allocations: 2.753 MB / 353.5 MB, free: 1.676 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001926/0.1137, allocations: 0.8177 MB / 354.3 MB, free: 0.8516 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003792/0.1141, allocations: 4 kB / 354.3 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004226/0.1145, allocations: 79.39 kB / 354.4 MB, free: 0.7695 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005513/0.1151, allocations: 138.9 kB / 354.5 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003301/0.1154, allocations: 83.83 kB / 354.6 MB, free: 0.5508 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007309/0.1162, allocations: 444.7 kB / 355 MB, free: 120 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002803/0.1165, allocations: 103.3 kB / 355.1 MB, free: 16 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003433/0.1168, allocations: 159.4 kB / 355.3 MB, free: 15.86 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003542/0.1172, allocations: 175.3 kB / 355.4 MB, free: 15.69 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001079/0.1173, allocations: 36 kB / 355.5 MB, free: 15.65 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001123/0.1174, allocations: 32 kB / 355.5 MB, free: 15.62 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.164e-05/0.1175, allocations: 87.67 kB / 355.6 MB, free: 15.54 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002562/0.1178, allocations: 183.1 kB / 355.8 MB, free: 15.36 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005628/0.1184, allocations: 438.8 kB / 356.2 MB, free: 14.93 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.1184, allocations: 0 / 356.2 MB, free: 14.93 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.492e-06/0.1184, allocations: 0 / 356.2 MB, free: 14.93 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.544e-05/0.1184, allocations: 0 / 356.2 MB, free: 14.93 MB / 302.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.001504/0.1199, allocations: 0.6833 MB / 356.9 MB, free: 14.19 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.761e-05/0.12, allocations: 11.89 kB / 356.9 MB, free: 14.18 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001392/0.1201, allocations: 40.56 kB / 356.9 MB, free: 14.14 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005185/0.1207, allocations: 299.4 kB / 357.2 MB, free: 13.8 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001236/0.1208, allocations: 54.69 kB / 357.3 MB, free: 13.75 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.343e-05/0.1209, allocations: 28.28 kB / 357.3 MB, free: 13.72 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006087/0.1215, allocations: 325.5 kB / 357.6 MB, free: 13.36 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.742e-05/0.1215, allocations: 0 / 357.6 MB, free: 13.36 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.924e-05/0.1216, allocations: 12 kB / 357.6 MB, free: 13.35 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.107e-06/0.1216, allocations: 4 kB / 357.6 MB, free: 13.35 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004505/0.122, allocations: 201.6 kB / 357.8 MB, free: 13.15 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001502/0.1235, allocations: 0.7948 MB / 358.6 MB, free: 12.3 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005426/0.1241, allocations: 275.5 kB / 358.9 MB, free: 12.02 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002515/0.1244, allocations: 120.9 kB / 359 MB, free: 11.9 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.127e-05/0.1244, allocations: 11.98 kB / 359 MB, free: 11.89 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.602e-05/0.1245, allocations: 38.56 kB / 359.1 MB, free: 11.84 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 1.884e-06/0.1245, allocations: 0 / 359.1 MB, free: 11.84 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.001083/0.1256, allocations: 483.1 kB / 359.5 MB, free: 11.34 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001704/0.1257, allocations: 316.4 kB / 359.9 MB, free: 10.96 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002941/0.126, allocations: 287 kB / 360.1 MB, free: 10.67 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.478e-05/0.1261, allocations: 33.7 kB / 360.2 MB, free: 10.63 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001575/0.1262, allocations: 176.6 kB / 360.3 MB, free: 10.45 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.038e-05/0.1263, allocations: 98.56 kB / 360.4 MB, free: 10.36 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001127/0.1265, allocations: 61.7 kB / 360.5 MB, free: 10.29 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001406/0.1266, allocations: 342.8 kB / 360.8 MB, free: 9.945 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002113/0.1268, allocations: 95.95 kB / 360.9 MB, free: 9.852 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000293/0.1271, allocations: 208.6 kB / 361.1 MB, free: 9.602 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004308/0.1276, allocations: 271.4 kB / 361.4 MB, free: 9.32 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.1276, allocations: 0 / 361.4 MB, free: 9.32 MB / 302.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006134/0.1282, allocations: 373.6 kB / 361.8 MB, free: 8.941 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.67e-05/0.1283, allocations: 33.7 kB / 361.8 MB, free: 8.902 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.632e-06/0.1283, allocations: 0 / 361.8 MB, free: 8.902 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001601/0.1284, allocations: 40.83 kB / 361.8 MB, free: 8.859 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009468/0.1294, allocations: 163.8 kB / 362 MB, free: 8.699 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00396/0.1334, allocations: 3.221 MB / 365.2 MB, free: 5.203 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003153/0.1337, allocations: 39.78 kB / 365.3 MB, free: 5.164 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.699e-05/0.1337, allocations: 11.94 kB / 365.3 MB, free: 5.152 MB / 302.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.0001927/0.1339, allocations: 153.8 kB / 365.4 MB, free: 4.992 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.028e-05/0.134, allocations: 35.62 kB / 365.5 MB, free: 4.957 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.09e-05/0.1341, allocations: 42.95 kB / 365.5 MB, free: 4.914 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.466e-06/0.1341, allocations: 4 kB / 365.5 MB, free: 4.91 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.1341, allocations: 0 / 365.5 MB, free: 4.91 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006917/0.1348, allocations: 0.654 MB / 366.2 MB, free: 4.148 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004328/0.1353, allocations: 385.2 kB / 366.5 MB, free: 3.723 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.1353, allocations: 0 / 366.5 MB, free: 3.723 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001262/0.1365, allocations: 211.7 kB / 366.7 MB, free: 3.516 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.756e-05/0.1366, allocations: 20.86 kB / 366.8 MB, free: 3.492 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.588e-05/0.1367, allocations: 11.98 kB / 366.8 MB, free: 3.48 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003295/0.14, allocations: 3.041 MB / 369.8 MB, free: 160 kB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.14, allocations: 0 / 369.8 MB, free: 160 kB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2022/0.3422, allocations: 0.4969 MB / 370.3 MB, free: 25.45 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001821/0.3424, allocations: 138.1 kB / 370.4 MB, free: 25.36 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.423e-05/0.3425, allocations: 7.266 kB / 370.4 MB, free: 25.36 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002736/0.3427, allocations: 19.47 kB / 370.5 MB, free: 25.36 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001091/0.3429, allocations: 27.36 kB / 370.5 MB, free: 25.36 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.427e-05/0.3429, allocations: 11.64 kB / 370.5 MB, free: 25.36 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002281/0.3431, allocations: 200.3 kB / 370.7 MB, free: 25.28 MB / 302.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3431, allocations: 0.9375 kB / 370.7 MB, free: 25.28 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004549/0.3436, allocations: 103 kB / 370.8 MB, free: 25.28 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.0001531/0.3438, allocations: 112.7 kB / 370.9 MB, free: 25.19 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001597/0.3454, allocations: 0.5546 MB / 371.5 MB, free: 25.01 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/0.3454, allocations: 1.406 kB / 371.5 MB, free: 25.01 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00134/0.3467, allocations: 388.6 kB / 371.8 MB, free: 24.9 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005801/0.3473, allocations: 93.52 kB / 371.9 MB, free: 24.9 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001758/0.3491, allocations: 0.886 MB / 372.8 MB, free: 24.52 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002702/0.3494, allocations: 0.7784 MB / 373.6 MB, free: 23.81 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.365e-05/0.3495, allocations: 34.05 kB / 373.6 MB, free: 23.81 MB / 302.1 MB Notification: Performance of SimCode: time 4.61e-07/0.3495, allocations: 0 / 373.6 MB, free: 23.81 MB / 302.1 MB Notification: Performance of Templates: time 0.01057/0.3601, allocations: 6.807 MB / 380.4 MB, free: 22.38 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/TwoTanks/TwoTanks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches