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.001526/0.001526, allocations: 113 kB / 17.07 MB, free: 5.973 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.001792/0.001792, allocations: 200 kB / 18 MB, free: 5.059 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.34/1.34, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009777/0.0009777, allocations: 43.92 kB / 351.3 MB, free: 3.277 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.242/0.2429, allocations: 49.43 MB / 400.7 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.003676/0.2467, allocations: 2.755 MB / 403.5 MB, free: 6.117 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001383/0.2481, allocations: 0.8255 MB / 404.3 MB, free: 5.285 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001861/0.2483, allocations: 4 kB / 404.3 MB, free: 5.281 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000281/0.2486, allocations: 75.41 kB / 404.4 MB, free: 5.207 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003218/0.2489, allocations: 142.9 kB / 404.5 MB, free: 5.066 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002224/0.2491, allocations: 87.81 kB / 404.6 MB, free: 4.98 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004806/0.2496, allocations: 438.3 kB / 405 MB, free: 4.551 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001898/0.2498, allocations: 103.4 kB / 405.1 MB, free: 4.445 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001902/0.25, allocations: 155.4 kB / 405.3 MB, free: 4.293 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002427/0.2503, allocations: 179.3 kB / 405.4 MB, free: 4.117 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.118e-05/0.2503, allocations: 36 kB / 405.5 MB, free: 4.082 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.198e-05/0.2504, allocations: 32 kB / 405.5 MB, free: 4.051 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.268e-05/0.2505, allocations: 83.67 kB / 405.6 MB, free: 3.969 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001979/0.2507, allocations: 191.1 kB / 405.8 MB, free: 3.781 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000436/0.2511, allocations: 443.6 kB / 406.2 MB, free: 3.352 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.2512, allocations: 3.938 kB / 406.2 MB, free: 3.348 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.325e-06/0.2512, allocations: 0 / 406.2 MB, free: 3.348 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.315e-05/0.2512, allocations: 4 kB / 406.2 MB, free: 3.344 MB / 318.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.001109/0.2523, allocations: 0.6678 MB / 406.9 MB, free: 2.621 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.628e-05/0.2523, allocations: 11.89 kB / 406.9 MB, free: 2.609 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.297e-05/0.2524, allocations: 44.47 kB / 406.9 MB, free: 2.566 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004234/0.2529, allocations: 311.4 kB / 407.2 MB, free: 2.227 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.602e-05/0.253, allocations: 54.64 kB / 407.3 MB, free: 2.164 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.519e-05/0.253, allocations: 16.38 kB / 407.3 MB, free: 2.148 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005261/0.2536, allocations: 321.6 kB / 407.6 MB, free: 1.793 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.362e-05/0.2536, allocations: 4 kB / 407.6 MB, free: 1.789 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.06e-05/0.2536, allocations: 12 kB / 407.6 MB, free: 1.777 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.043e-06/0.2536, allocations: 4 kB / 407.6 MB, free: 1.773 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004313/0.2541, allocations: 201.6 kB / 407.8 MB, free: 1.578 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001423/0.2555, allocations: 0.8025 MB / 408.6 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005755/0.2561, allocations: 282.9 kB / 408.9 MB, free: 452 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002182/0.2563, allocations: 116.8 kB / 409 MB, free: 332 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.343e-05/0.2564, allocations: 8 kB / 409 MB, free: 324 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.693e-05/0.2564, allocations: 38.56 kB / 409.1 MB, free: 276 kB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 1.723e-06/0.2564, allocations: 4 kB / 409.1 MB, free: 272 kB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.00109/0.2575, allocations: 479.3 kB / 409.6 MB, free: 15.77 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001435/0.2577, allocations: 316.4 kB / 409.9 MB, free: 15.39 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002843/0.258, allocations: 278.9 kB / 410.1 MB, free: 15.11 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.122e-05/0.258, allocations: 37.7 kB / 410.2 MB, free: 15.07 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001123/0.2581, allocations: 164.8 kB / 410.3 MB, free: 14.9 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.657e-05/0.2582, allocations: 110.4 kB / 410.4 MB, free: 14.79 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001046/0.2583, allocations: 65.69 kB / 410.5 MB, free: 14.72 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001273/0.2585, allocations: 342.8 kB / 410.8 MB, free: 14.38 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002138/0.2587, allocations: 87.95 kB / 410.9 MB, free: 14.29 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003015/0.259, allocations: 220.9 kB / 411.1 MB, free: 14.03 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004528/0.2595, allocations: 275.4 kB / 411.4 MB, free: 13.74 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.115e-06/0.2595, allocations: 0 / 411.4 MB, free: 13.74 MB / 334.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006292/0.2601, allocations: 369.6 kB / 411.8 MB, free: 13.37 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.248e-05/0.2602, allocations: 36.36 kB / 411.8 MB, free: 13.33 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.2602, allocations: 0 / 411.8 MB, free: 13.33 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001486/0.2603, allocations: 40.94 kB / 411.8 MB, free: 13.29 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001013/0.2613, allocations: 151.8 kB / 412 MB, free: 13.14 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0037/0.2651, allocations: 3.232 MB / 415.2 MB, free: 9.621 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002792/0.2653, allocations: 31.81 kB / 415.3 MB, free: 9.59 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.977e-05/0.2654, allocations: 15.98 kB / 415.3 MB, free: 9.574 MB / 334.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.0001814/0.2656, allocations: 157.7 kB / 415.4 MB, free: 9.41 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.929e-05/0.2657, allocations: 31.62 kB / 415.5 MB, free: 9.379 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.951e-05/0.2657, allocations: 39.08 kB / 415.5 MB, free: 9.34 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.2657, allocations: 4 kB / 415.5 MB, free: 9.336 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.685e-06/0.2658, allocations: 4 kB / 415.5 MB, free: 9.332 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006647/0.2664, allocations: 0.6433 MB / 416.1 MB, free: 8.582 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000416/0.2669, allocations: 393.2 kB / 416.5 MB, free: 8.148 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.983e-06/0.2669, allocations: 3.938 kB / 416.5 MB, free: 8.145 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001313/0.2682, allocations: 207.7 kB / 416.7 MB, free: 7.941 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.936e-05/0.2683, allocations: 24.84 kB / 416.8 MB, free: 7.914 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.122e-05/0.2683, allocations: 4.188 kB / 416.8 MB, free: 7.91 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003089/0.2714, allocations: 3.041 MB / 419.8 MB, free: 4.59 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.2714, allocations: 128 / 419.8 MB, free: 4.59 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008191/0.2722, allocations: 0.5195 MB / 420.3 MB, free: 4.051 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001448/0.2724, allocations: 128.8 kB / 420.5 MB, free: 3.906 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.07e-05/0.2724, allocations: 11.98 kB / 420.5 MB, free: 3.895 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002833/0.2727, allocations: 15.98 kB / 420.5 MB, free: 3.879 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.609e-05/0.2728, allocations: 27.97 kB / 420.5 MB, free: 3.852 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.752e-05/0.2728, allocations: 4 kB / 420.5 MB, free: 3.848 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001916/0.273, allocations: 206 kB / 420.7 MB, free: 3.645 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2731, allocations: 0 / 420.7 MB, free: 3.645 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005862/0.2736, allocations: 107.8 kB / 420.8 MB, free: 3.539 MB / 334.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.0001303/0.2738, allocations: 122.7 kB / 420.9 MB, free: 3.414 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001536/0.2753, allocations: 0.5371 MB / 421.5 MB, free: 2.852 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/0.2753, allocations: 4 kB / 421.5 MB, free: 2.848 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001461/0.2768, allocations: 398.3 kB / 421.9 MB, free: 2.445 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005055/0.2773, allocations: 104 kB / 422 MB, free: 2.344 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001688/0.279, allocations: 0.8467 MB / 422.8 MB, free: 1.469 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003459/0.2794, allocations: 0.7723 MB / 423.6 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001616/0.2796, allocations: 38.95 kB / 423.6 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.986e-05/0.2796, allocations: 27.44 kB / 423.7 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of SimCode: time 5.42e-07/0.2796, allocations: 0 / 423.7 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of Templates: time 0.01166/0.2913, allocations: 6.263 MB / 429.9 MB, free: 10.45 MB / 350.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