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.001314/0.001314, allocations: 106.7 kB / 16.62 MB, free: 6.809 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.001309/0.001309, allocations: 193.8 kB / 17.55 MB, free: 5.953 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.336/1.336, allocations: 222.9 MB / 241.2 MB, free: 13.74 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009208/0.0009208, allocations: 47.08 kB / 300.1 MB, free: 5.984 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08188/0.08282, allocations: 49.45 MB / 349.6 MB, free: 4.531 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.003589/0.08644, allocations: 2.806 MB / 352.4 MB, free: 1.707 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001231/0.0877, allocations: 0.8062 MB / 353.2 MB, free: 0.8945 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001221/0.08783, allocations: 7.938 kB / 353.2 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000262/0.0881, allocations: 59.59 kB / 353.2 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002673/0.0884, allocations: 123.1 kB / 353.4 MB, free: 0.707 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001867/0.08859, allocations: 79.92 kB / 353.4 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004304/0.08903, allocations: 434.9 kB / 353.9 MB, free: 208 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001625/0.0892, allocations: 91.34 kB / 354 MB, free: 116 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001601/0.08937, allocations: 159.5 kB / 354.1 MB, free: 15.95 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001989/0.08958, allocations: 175.2 kB / 354.3 MB, free: 15.79 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.148e-05/0.08964, allocations: 40 kB / 354.3 MB, free: 15.75 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.566e-05/0.0897, allocations: 36 kB / 354.4 MB, free: 15.71 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.427e-05/0.08978, allocations: 87.55 kB / 354.4 MB, free: 15.62 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001616/0.08995, allocations: 191.2 kB / 354.6 MB, free: 15.44 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003844/0.09034, allocations: 434.8 kB / 355.1 MB, free: 15.01 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.09035, allocations: 0 / 355.1 MB, free: 15.01 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.09036, allocations: 0 / 355.1 MB, free: 15.01 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.284e-06/0.09037, allocations: 0 / 355.1 MB, free: 15.01 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.001052/0.09143, allocations: 0.6872 MB / 355.7 MB, free: 14.27 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.333e-05/0.09147, allocations: 11.89 kB / 355.8 MB, free: 14.26 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.446e-05/0.09156, allocations: 40.56 kB / 355.8 MB, free: 14.22 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003255/0.09189, allocations: 299.4 kB / 356.1 MB, free: 13.89 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.722e-05/0.09199, allocations: 46.7 kB / 356.1 MB, free: 13.84 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.491e-05/0.09204, allocations: 24.28 kB / 356.2 MB, free: 13.81 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005146/0.09256, allocations: 332.7 kB / 356.5 MB, free: 13.45 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.281e-05/0.09259, allocations: 4 kB / 356.5 MB, free: 13.45 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.255e-05/0.09262, allocations: 12 kB / 356.5 MB, free: 13.44 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.292e-06/0.09264, allocations: 4 kB / 356.5 MB, free: 13.43 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004209/0.09306, allocations: 201.6 kB / 356.7 MB, free: 13.23 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00131/0.09438, allocations: 0.8026 MB / 357.5 MB, free: 12.38 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005341/0.09493, allocations: 275 kB / 357.8 MB, free: 12.1 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002074/0.09514, allocations: 116.8 kB / 357.9 MB, free: 11.98 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.312e-05/0.09519, allocations: 4 kB / 357.9 MB, free: 11.98 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.019e-05/0.09522, allocations: 38.56 kB / 357.9 MB, free: 11.93 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 1.453e-06/0.09523, allocations: 0 / 357.9 MB, free: 11.93 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.0009871/0.09622, allocations: 479.1 kB / 358.4 MB, free: 11.44 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000131/0.09636, allocations: 324.4 kB / 358.7 MB, free: 11.05 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002637/0.09664, allocations: 275 kB / 359 MB, free: 10.77 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.579e-05/0.09668, allocations: 37.7 kB / 359 MB, free: 10.73 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001149/0.0968, allocations: 172.6 kB / 359.2 MB, free: 10.55 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.095e-05/0.09689, allocations: 98.55 kB / 359.3 MB, free: 10.45 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001087/0.097, allocations: 69.69 kB / 359.3 MB, free: 10.38 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001192/0.09713, allocations: 342.8 kB / 359.7 MB, free: 10.04 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000202/0.09734, allocations: 91.95 kB / 359.8 MB, free: 9.945 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002942/0.09764, allocations: 212.6 kB / 360 MB, free: 9.691 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004418/0.09809, allocations: 271.5 kB / 360.2 MB, free: 9.41 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.0981, allocations: 0 / 360.2 MB, free: 9.41 MB / 302.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006163/0.09872, allocations: 369.6 kB / 360.6 MB, free: 9.035 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.028e-05/0.09876, allocations: 33.69 kB / 360.6 MB, free: 8.996 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.151e-06/0.09878, allocations: 8.094 kB / 360.6 MB, free: 8.988 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001363/0.09892, allocations: 32.84 kB / 360.7 MB, free: 8.953 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001017/0.09994, allocations: 159.8 kB / 360.8 MB, free: 8.797 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00361/0.1036, allocations: 3.233 MB / 364.1 MB, free: 5.289 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000279/0.1039, allocations: 35.72 kB / 364.1 MB, free: 5.254 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.682e-05/0.1039, allocations: 19.94 kB / 364.1 MB, free: 5.234 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.0001778/0.1041, allocations: 157.7 kB / 364.3 MB, free: 5.07 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.939e-05/0.1042, allocations: 35.62 kB / 364.3 MB, free: 5.035 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.847e-05/0.1042, allocations: 35.08 kB / 364.3 MB, free: 5 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/0.1042, allocations: 4 kB / 364.3 MB, free: 4.996 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.175e-06/0.1043, allocations: 0 / 364.3 MB, free: 4.996 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000687/0.1049, allocations: 0.6516 MB / 365 MB, free: 4.238 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004071/0.1054, allocations: 389.2 kB / 365.4 MB, free: 3.809 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.1054, allocations: 0 / 365.4 MB, free: 3.809 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001343/0.1067, allocations: 211.7 kB / 365.6 MB, free: 3.602 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.164e-05/0.1068, allocations: 24.84 kB / 365.6 MB, free: 3.574 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.196e-05/0.1068, allocations: 4 kB / 365.6 MB, free: 3.57 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003104/0.11, allocations: 3.041 MB / 368.7 MB, free: 252 kB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.11, allocations: 8.062 kB / 368.7 MB, free: 244 kB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1421/0.2521, allocations: 0.5014 MB / 369.2 MB, free: 25.41 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001891/0.2523, allocations: 134.9 kB / 369.3 MB, free: 25.31 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.977e-05/0.2523, allocations: 7.766 kB / 369.3 MB, free: 25.31 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002864/0.2526, allocations: 18.62 kB / 369.3 MB, free: 25.31 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.935e-05/0.2527, allocations: 23.78 kB / 369.3 MB, free: 25.31 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.148e-05/0.2528, allocations: 12.58 kB / 369.4 MB, free: 25.31 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002057/0.253, allocations: 200 kB / 369.6 MB, free: 25.23 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.253, allocations: 0.6562 kB / 369.6 MB, free: 25.23 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004606/0.2535, allocations: 104.6 kB / 369.7 MB, free: 25.23 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.0001177/0.2536, allocations: 113.2 kB / 369.8 MB, free: 25.14 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001594/0.2552, allocations: 0.5473 MB / 370.3 MB, free: 24.98 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.608e-06/0.2552, allocations: 1.281 kB / 370.3 MB, free: 24.98 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0014/0.2566, allocations: 403.6 kB / 370.7 MB, free: 24.86 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005335/0.2571, allocations: 89.88 kB / 370.8 MB, free: 24.86 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001611/0.2588, allocations: 0.9626 MB / 371.8 MB, free: 24.39 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001801/0.259, allocations: 0.7772 MB / 372.5 MB, free: 23.69 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001824/0.2592, allocations: 36.81 kB / 372.6 MB, free: 23.68 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.837e-05/0.2592, allocations: 28.41 kB / 372.6 MB, free: 23.68 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2592, allocations: 0 / 372.6 MB, free: 23.68 MB / 302.1 MB Notification: Performance of Templates: time 0.01136/0.2706, allocations: 6.109 MB / 378.7 MB, free: 22.9 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/TwoTanks/TwoTanks.csv","/var/lib/jenkins/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