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.0007932/0.0007931, allocations: 90.22 kB / 17.31 MB, free: 5.59 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.00107/0.00107, allocations: 177.8 kB / 18.21 MB, free: 5.191 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.315/1.315, allocations: 223.3 MB / 242.3 MB, free: 88 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002557/0.0002561, allocations: 4 kB / 302.1 MB, free: 6.125 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08938/0.08966, allocations: 50.42 MB / 352.5 MB, free: 3.699 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.002729/0.09243, allocations: 2.428 MB / 354.9 MB, free: 1.254 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001329/0.09379, allocations: 0.7556 MB / 355.7 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001989/0.09401, allocations: 4 kB / 355.7 MB, free: 500 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002875/0.09431, allocations: 63.58 kB / 355.7 MB, free: 436 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000356/0.09468, allocations: 123.1 kB / 355.9 MB, free: 312 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002112/0.0949, allocations: 71.92 kB / 355.9 MB, free: 240 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000535/0.09545, allocations: 418.4 kB / 356.3 MB, free: 15.82 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001978/0.09566, allocations: 91.28 kB / 356.4 MB, free: 15.73 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002038/0.09587, allocations: 147.4 kB / 356.6 MB, free: 15.59 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002533/0.09613, allocations: 167.2 kB / 356.7 MB, free: 15.43 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.716e-05/0.0962, allocations: 20 kB / 356.8 MB, free: 15.41 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.262e-05/0.09627, allocations: 27.94 kB / 356.8 MB, free: 15.38 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.263e-05/0.09634, allocations: 59.75 kB / 356.8 MB, free: 15.32 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001986/0.09654, allocations: 208.8 kB / 357 MB, free: 15.11 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002943/0.09684, allocations: 319.4 kB / 357.4 MB, free: 14.8 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.09686, allocations: 0 / 357.4 MB, free: 14.8 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.09686, allocations: 0 / 357.4 MB, free: 14.8 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.269e-05/0.09688, allocations: 4 kB / 357.4 MB, free: 14.79 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.001033/0.09792, allocations: 0.6133 MB / 358 MB, free: 14.12 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.781e-05/0.09797, allocations: 16.03 kB / 358 MB, free: 14.11 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001086/0.09809, allocations: 44.45 kB / 358 MB, free: 14.07 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003974/0.09849, allocations: 295.5 kB / 358.3 MB, free: 13.74 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001125/0.09861, allocations: 50.7 kB / 358.4 MB, free: 13.68 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.973e-05/0.09867, allocations: 28.3 kB / 358.4 MB, free: 13.66 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005764/0.09925, allocations: 333.5 kB / 358.7 MB, free: 13.29 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.558e-05/0.09928, allocations: 0 / 358.7 MB, free: 13.29 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.603e-05/0.09932, allocations: 12 kB / 358.7 MB, free: 13.28 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.598e-06/0.09934, allocations: 4 kB / 358.7 MB, free: 13.28 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004386/0.09979, allocations: 213.6 kB / 358.9 MB, free: 13.07 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001462/0.1013, allocations: 0.8064 MB / 359.8 MB, free: 12.21 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005929/0.1019, allocations: 291 kB / 360 MB, free: 11.91 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002295/0.1021, allocations: 120.8 kB / 360.2 MB, free: 11.79 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.046e-05/0.1022, allocations: 8 kB / 360.2 MB, free: 11.79 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.133e-05/0.1022, allocations: 38.56 kB / 360.2 MB, free: 11.74 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 1.994e-06/0.1022, allocations: 0 / 360.2 MB, free: 11.74 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.001084/0.1033, allocations: 499.1 kB / 360.7 MB, free: 11.22 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001225/0.1034, allocations: 320.4 kB / 361 MB, free: 10.84 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002774/0.1037, allocations: 286.9 kB / 361.3 MB, free: 10.55 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.091e-05/0.1038, allocations: 29.7 kB / 361.3 MB, free: 10.51 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001065/0.1039, allocations: 164.7 kB / 361.5 MB, free: 10.34 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.671e-05/0.1039, allocations: 106.5 kB / 361.6 MB, free: 10.24 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.927e-05/0.104, allocations: 33.7 kB / 361.6 MB, free: 10.2 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001136/0.1041, allocations: 346.8 kB / 361.9 MB, free: 9.852 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002048/0.1043, allocations: 95.95 kB / 362 MB, free: 9.758 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002884/0.1046, allocations: 208.6 kB / 362.2 MB, free: 9.508 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004476/0.1051, allocations: 279.4 kB / 362.5 MB, free: 9.219 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.1051, allocations: 4 kB / 362.5 MB, free: 9.215 MB / 302.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006282/0.1057, allocations: 377.6 kB / 362.9 MB, free: 8.832 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.399e-05/0.1058, allocations: 36.67 kB / 362.9 MB, free: 8.793 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.1058, allocations: 0 / 362.9 MB, free: 8.793 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001416/0.1059, allocations: 40.83 kB / 363 MB, free: 8.75 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001023/0.107, allocations: 199.9 kB / 363.2 MB, free: 8.555 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003454/0.1104, allocations: 3.078 MB / 366.2 MB, free: 5.215 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002996/0.1108, allocations: 35.78 kB / 366.3 MB, free: 5.18 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.308e-05/0.1108, allocations: 15.98 kB / 366.3 MB, free: 5.164 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.0001871/0.111, allocations: 157.7 kB / 366.4 MB, free: 5 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.662e-05/0.1111, allocations: 35.56 kB / 366.5 MB, free: 4.965 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.714e-05/0.1112, allocations: 39.08 kB / 366.5 MB, free: 4.926 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.549e-06/0.1112, allocations: 8 kB / 366.5 MB, free: 4.918 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.605e-06/0.1112, allocations: 0 / 366.5 MB, free: 4.918 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006736/0.1119, allocations: 0.6511 MB / 367.2 MB, free: 4.16 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004427/0.1123, allocations: 385.2 kB / 367.6 MB, free: 3.734 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.466e-06/0.1123, allocations: 0 / 367.6 MB, free: 3.734 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001339/0.1137, allocations: 259.7 kB / 367.8 MB, free: 3.48 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.776e-05/0.1138, allocations: 28.78 kB / 367.8 MB, free: 3.449 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.286e-05/0.1138, allocations: 4 kB / 367.8 MB, free: 3.445 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003009/0.1168, allocations: 2.91 MB / 370.7 MB, free: 272 kB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-06/0.1168, allocations: 0 / 370.7 MB, free: 272 kB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1645/0.2813, allocations: 0.5134 MB / 371.3 MB, free: 24.56 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002349/0.2816, allocations: 139.2 kB / 371.4 MB, free: 24.47 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.203e-05/0.2817, allocations: 8.844 kB / 371.4 MB, free: 24.47 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000329/0.282, allocations: 19.98 kB / 371.4 MB, free: 24.47 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001078/0.2821, allocations: 24.69 kB / 371.5 MB, free: 24.47 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.674e-05/0.2822, allocations: 10.31 kB / 371.5 MB, free: 24.47 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002629/0.2824, allocations: 204 kB / 371.7 MB, free: 24.39 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2825, allocations: 0 / 371.7 MB, free: 24.39 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005549/0.283, allocations: 106.8 kB / 371.8 MB, free: 24.39 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.0001541/0.2832, allocations: 109.8 kB / 371.9 MB, free: 24.3 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001705/0.2849, allocations: 0.5836 MB / 372.5 MB, free: 24.13 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/0.2849, allocations: 0.8438 kB / 372.5 MB, free: 24.13 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00152/0.2864, allocations: 450.6 kB / 372.9 MB, free: 24.02 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006082/0.2871, allocations: 80.34 kB / 373 MB, free: 24.02 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001849/0.2889, allocations: 1.072 MB / 374 MB, free: 23.46 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002699/0.2892, allocations: 0.7733 MB / 374.8 MB, free: 22.76 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.181e-05/0.2893, allocations: 29.25 kB / 374.8 MB, free: 22.76 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2893, allocations: 0 / 374.8 MB, free: 22.76 MB / 302.1 MB Notification: Performance of Templates: time 0.01127/0.3006, allocations: 6.77 MB / 381.6 MB, free: 21.25 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