Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008868/0.0008868, allocations: 175.2 kB / 16.72 MB, free: 5.086 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.593/1.593, allocations: 205.4 MB / 222.9 MB, free: 9.023 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007848/0.0007847, allocations: 93.47 kB / 271.2 MB, free: 8.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003129/0.000313, allocations: 12 kB / 327.5 MB, free: 15.91 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2392/0.2395, allocations: 47.58 MB / 375.1 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.002481/0.2421, allocations: 2.341 MB / 377.4 MB, free: 43.57 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001219/0.2433, allocations: 0.7594 MB / 378.2 MB, free: 42.95 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001811/0.2435, allocations: 6.469 kB / 378.2 MB, free: 42.95 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002258/0.2438, allocations: 57.95 kB / 378.2 MB, free: 42.9 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002771/0.2441, allocations: 115.7 kB / 378.4 MB, free: 42.8 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001776/0.2442, allocations: 63.36 kB / 378.4 MB, free: 42.75 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004035/0.2447, allocations: 407.5 kB / 378.8 MB, free: 42.51 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001868/0.2449, allocations: 92.61 kB / 378.9 MB, free: 42.47 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001571/0.245, allocations: 135.8 kB / 379 MB, free: 42.4 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001901/0.2452, allocations: 162.4 kB / 379.2 MB, free: 42.3 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.593e-05/0.2453, allocations: 22.5 kB / 379.2 MB, free: 42.3 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.418e-05/0.2453, allocations: 22.5 kB / 379.2 MB, free: 42.3 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.858e-05/0.2454, allocations: 65.03 kB / 379.3 MB, free: 42.24 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001887/0.2456, allocations: 202.1 kB / 379.5 MB, free: 42.1 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002577/0.2459, allocations: 316.3 kB / 379.8 MB, free: 41.87 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.322e-06/0.2459, allocations: 0 / 379.8 MB, free: 41.87 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.335e-06/0.2459, allocations: 3.938 kB / 379.8 MB, free: 41.87 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.743e-06/0.2459, allocations: 0 / 379.8 MB, free: 41.87 MB / 298.7 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.0008889/0.2468, allocations: 0.6236 MB / 380.4 MB, free: 41.3 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.454e-05/0.2469, allocations: 8.312 kB / 380.4 MB, free: 41.3 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.018e-05/0.2469, allocations: 38.75 kB / 380.5 MB, free: 41.29 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003145/0.2473, allocations: 299.8 kB / 380.8 MB, free: 41 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.347e-05/0.2474, allocations: 49.89 kB / 380.8 MB, free: 40.96 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.919e-05/0.2474, allocations: 21.84 kB / 380.8 MB, free: 40.95 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004946/0.2479, allocations: 329.2 kB / 381.2 MB, free: 40.7 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.548e-05/0.248, allocations: 4 kB / 381.2 MB, free: 40.69 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.308e-05/0.248, allocations: 12.34 kB / 381.2 MB, free: 40.68 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.967e-06/0.248, allocations: 4.562 kB / 381.2 MB, free: 40.68 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000433/0.2484, allocations: 211.1 kB / 381.4 MB, free: 40.59 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001306/0.2498, allocations: 0.8157 MB / 382.2 MB, free: 39.93 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005657/0.2503, allocations: 287.3 kB / 382.5 MB, free: 39.79 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002184/0.2506, allocations: 122.2 kB / 382.6 MB, free: 39.72 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.955e-05/0.2506, allocations: 3.719 kB / 382.6 MB, free: 39.72 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.896e-05/0.2507, allocations: 42 kB / 382.7 MB, free: 39.68 MB / 298.7 MB Notification: Performance of pre-optimization done (n=29): time 2.325e-06/0.2507, allocations: 4 kB / 382.7 MB, free: 39.67 MB / 298.7 MB Notification: Performance of matching and sorting (n=29): time 0.001081/0.2517, allocations: 494.4 kB / 383.1 MB, free: 39.37 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.893e-05/0.2518, allocations: 316.8 kB / 383.4 MB, free: 38.99 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002629/0.2521, allocations: 271.5 kB / 383.7 MB, free: 38.8 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.05e-05/0.2521, allocations: 37.89 kB / 383.8 MB, free: 38.77 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001055/0.2523, allocations: 167.8 kB / 383.9 MB, free: 38.61 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.013e-05/0.2523, allocations: 103.5 kB / 384 MB, free: 38.52 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.78e-05/0.2524, allocations: 9.25 kB / 384 MB, free: 38.51 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.726e-05/0.2524, allocations: 341.4 kB / 384.4 MB, free: 38.18 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002103/0.2527, allocations: 103.2 kB / 384.5 MB, free: 38.12 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002738/0.2529, allocations: 212.1 kB / 384.7 MB, free: 37.95 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004275/0.2534, allocations: 279.3 kB / 384.9 MB, free: 37.77 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.2534, allocations: 0 / 384.9 MB, free: 37.77 MB / 298.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006422/0.254, allocations: 369 kB / 385.3 MB, free: 37.56 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.45e-05/0.2541, allocations: 32.2 kB / 385.3 MB, free: 37.53 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.326e-06/0.2541, allocations: 5.062 kB / 385.3 MB, free: 37.53 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001621/0.2543, allocations: 39.12 kB / 385.4 MB, free: 37.5 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001019/0.2553, allocations: 201.4 kB / 385.6 MB, free: 37.45 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002898/0.2582, allocations: 3.076 MB / 388.6 MB, free: 34.45 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003923/0.2586, allocations: 39.81 kB / 388.7 MB, free: 34.41 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.597e-05/0.2587, allocations: 8 kB / 388.7 MB, free: 34.41 MB / 298.7 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 (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 2} Notification: Performance of prepare postOptimizeDAE: time 0.0002029/0.2589, allocations: 153.8 kB / 388.8 MB, free: 34.25 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.069e-05/0.2589, allocations: 47.64 kB / 388.9 MB, free: 34.2 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.88e-05/0.259, allocations: 39.02 kB / 388.9 MB, free: 34.16 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/0.259, allocations: 4 kB / 388.9 MB, free: 34.16 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.259, allocations: 0 / 388.9 MB, free: 34.16 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005156/0.2596, allocations: 0.662 MB / 389.6 MB, free: 33.39 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003337/0.2599, allocations: 381.2 kB / 390 MB, free: 32.96 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.2599, allocations: 4.188 kB / 390 MB, free: 32.96 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001189/0.2611, allocations: 255.8 kB / 390.2 MB, free: 32.71 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.136e-05/0.2612, allocations: 32.72 kB / 390.3 MB, free: 32.68 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.084e-05/0.2612, allocations: 7.938 kB / 390.3 MB, free: 32.67 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002283/0.2635, allocations: 2.895 MB / 393.2 MB, free: 29.51 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.2635, allocations: 0 / 393.2 MB, free: 29.51 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007229/0.2643, allocations: 0.5233 MB / 393.7 MB, free: 28.96 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001458/0.2644, allocations: 140.7 kB / 393.8 MB, free: 28.81 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.165e-05/0.2645, allocations: 4 kB / 393.8 MB, free: 28.8 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002474/0.2647, allocations: 27.98 kB / 393.8 MB, free: 28.78 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.919e-05/0.2648, allocations: 19.97 kB / 393.9 MB, free: 28.76 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.905e-05/0.2648, allocations: 8 kB / 393.9 MB, free: 28.75 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001592/0.265, allocations: 201.9 kB / 394.1 MB, free: 28.55 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.265, allocations: 0 / 394.1 MB, free: 28.55 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004061/0.2654, allocations: 107.8 kB / 394.2 MB, free: 28.45 MB / 298.7 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 (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001177/0.2655, allocations: 111.2 kB / 394.3 MB, free: 28.32 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001402/0.2669, allocations: 0.5721 MB / 394.9 MB, free: 27.73 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.508e-06/0.267, allocations: 4 kB / 394.9 MB, free: 27.72 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00126/0.2682, allocations: 454.8 kB / 395.3 MB, free: 27.27 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005633/0.2688, allocations: 88.12 kB / 395.4 MB, free: 27.18 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001496/0.2703, allocations: 1.054 MB / 396.4 MB, free: 26.1 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001706/0.2705, allocations: 0.7801 MB / 397.2 MB, free: 25.29 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.933e-05/0.2706, allocations: 31.44 kB / 397.3 MB, free: 25.26 MB / 298.7 MB Notification: Performance of SimCode: time 1.002e-06/0.2706, allocations: 0 / 397.3 MB, free: 25.26 MB / 298.7 MB Notification: Performance of Templates: time 0.006909/0.2775, allocations: 6.752 MB / 404 MB, free: 18.53 MB / 298.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & ./Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/FluidHeatFlow/Examples/TwoTanks/TwoTanks.csv","../files/Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches