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: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001029/0.001029, allocations: 104.7 kB / 17.06 MB, free: 6.027 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.001109/0.001109, allocations: 196 kB / 18 MB, free: 5.105 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.282/1.282, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001084/0.001084, allocations: 47.92 kB / 350.8 MB, free: 3.789 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2437/0.2448, allocations: 49.44 MB / 400.2 MB, free: 8.422 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.004706/0.2496, allocations: 2.744 MB / 403 MB, free: 6.09 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001519/0.2511, allocations: 0.8333 MB / 403.8 MB, free: 5.25 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002719/0.2514, allocations: 0 / 403.8 MB, free: 5.25 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000359/0.2518, allocations: 79.39 kB / 403.9 MB, free: 5.172 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004437/0.2523, allocations: 130.9 kB / 404 MB, free: 5.043 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003301/0.2526, allocations: 91.81 kB / 404.1 MB, free: 4.953 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006234/0.2533, allocations: 434.3 kB / 404.5 MB, free: 4.527 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001952/0.2535, allocations: 99.3 kB / 404.6 MB, free: 4.426 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002269/0.2537, allocations: 159.4 kB / 404.8 MB, free: 4.27 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002572/0.254, allocations: 179.3 kB / 404.9 MB, free: 4.094 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.417e-05/0.2541, allocations: 36 kB / 405 MB, free: 4.059 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.688e-05/0.2541, allocations: 36 kB / 405 MB, free: 4.023 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.081e-05/0.2542, allocations: 79.67 kB / 405.1 MB, free: 3.945 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001959/0.2544, allocations: 191.1 kB / 405.3 MB, free: 3.758 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004654/0.2549, allocations: 452.1 kB / 405.7 MB, free: 3.316 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.2549, allocations: 0 / 405.7 MB, free: 3.316 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.2549, allocations: 0 / 405.7 MB, free: 3.316 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.251e-05/0.2549, allocations: 0 / 405.7 MB, free: 3.316 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.001219/0.2562, allocations: 0.6718 MB / 406.4 MB, free: 2.586 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.398e-05/0.2562, allocations: 12.03 kB / 406.4 MB, free: 2.574 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001004/0.2563, allocations: 75.11 kB / 406.5 MB, free: 2.492 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001067/0.2564, allocations: 44.47 kB / 406.5 MB, free: 2.449 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004571/0.2569, allocations: 311.4 kB / 406.8 MB, free: 2.109 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.975e-05/0.257, allocations: 50.83 kB / 406.9 MB, free: 2.055 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.967e-05/0.2571, allocations: 20.38 kB / 406.9 MB, free: 2.035 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005489/0.2576, allocations: 339.3 kB / 407.2 MB, free: 1.66 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.429e-05/0.2576, allocations: 0 / 407.2 MB, free: 1.66 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.289e-05/0.2577, allocations: 16 kB / 407.2 MB, free: 1.645 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.554e-06/0.2577, allocations: 4 kB / 407.2 MB, free: 1.641 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004329/0.2581, allocations: 210.1 kB / 407.4 MB, free: 1.438 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001468/0.2596, allocations: 0.8109 MB / 408.3 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005475/0.2602, allocations: 279 kB / 408.5 MB, free: 300 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002158/0.2604, allocations: 116.8 kB / 408.6 MB, free: 180 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.719e-05/0.2605, allocations: 11.98 kB / 408.7 MB, free: 168 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.383e-05/0.2605, allocations: 42.59 kB / 408.7 MB, free: 116 kB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 2.214e-06/0.2605, allocations: 0 / 408.7 MB, free: 116 kB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.001072/0.2616, allocations: 479.1 kB / 409.2 MB, free: 15.62 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001463/0.2617, allocations: 320.4 kB / 409.5 MB, free: 15.23 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002848/0.262, allocations: 279 kB / 409.8 MB, free: 14.95 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.651e-05/0.2621, allocations: 33.7 kB / 409.8 MB, free: 14.91 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001206/0.2622, allocations: 180.5 kB / 410 MB, free: 14.73 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.91e-05/0.2623, allocations: 102.5 kB / 410.1 MB, free: 14.63 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001199/0.2624, allocations: 69.64 kB / 410.1 MB, free: 14.56 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000128/0.2626, allocations: 350.7 kB / 410.5 MB, free: 14.21 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002092/0.2628, allocations: 87.97 kB / 410.6 MB, free: 14.12 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002985/0.2631, allocations: 217 kB / 410.8 MB, free: 13.86 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004539/0.2635, allocations: 271.5 kB / 411 MB, free: 13.58 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.2636, allocations: 96 / 411 MB, free: 13.58 MB / 334.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006431/0.2642, allocations: 369.5 kB / 411.4 MB, free: 13.2 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.29e-05/0.2643, allocations: 29.7 kB / 411.4 MB, free: 13.17 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.003e-06/0.2643, allocations: 0 / 411.4 MB, free: 13.17 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001532/0.2644, allocations: 40.84 kB / 411.5 MB, free: 13.12 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009863/0.2654, allocations: 163.8 kB / 411.6 MB, free: 12.96 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003615/0.2691, allocations: 3.236 MB / 414.9 MB, free: 9.449 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003171/0.2694, allocations: 39.72 kB / 414.9 MB, free: 9.41 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.344e-05/0.2694, allocations: 12 kB / 414.9 MB, free: 9.398 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.0001942/0.2697, allocations: 149.8 kB / 415.1 MB, free: 9.242 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.183e-05/0.2697, allocations: 31.62 kB / 415.1 MB, free: 9.211 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.039e-05/0.2698, allocations: 39.08 kB / 415.1 MB, free: 9.172 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.439e-06/0.2698, allocations: 4 kB / 415.1 MB, free: 9.168 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.2698, allocations: 3.938 kB / 415.1 MB, free: 9.164 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000687/0.2705, allocations: 0.6588 MB / 415.8 MB, free: 8.398 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004404/0.271, allocations: 381.2 kB / 416.2 MB, free: 7.977 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.276e-05/0.271, allocations: 3.984 kB / 416.2 MB, free: 7.973 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001291/0.2723, allocations: 211.7 kB / 416.4 MB, free: 7.766 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.172e-05/0.2724, allocations: 20.84 kB / 416.4 MB, free: 7.742 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.614e-05/0.2724, allocations: 8 kB / 416.4 MB, free: 7.734 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003176/0.2756, allocations: 3.041 MB / 419.4 MB, free: 4.41 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.2756, allocations: 0 / 419.4 MB, free: 4.41 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008634/0.2765, allocations: 0.508 MB / 420 MB, free: 3.883 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001914/0.2767, allocations: 140.7 kB / 420.1 MB, free: 3.727 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.085e-05/0.2768, allocations: 8 kB / 420.1 MB, free: 3.719 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000268/0.2771, allocations: 19.92 kB / 420.1 MB, free: 3.699 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.509e-05/0.2772, allocations: 19.97 kB / 420.1 MB, free: 3.68 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.348e-05/0.2772, allocations: 19.98 kB / 420.2 MB, free: 3.66 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002106/0.2774, allocations: 198 kB / 420.4 MB, free: 3.469 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.392e-06/0.2774, allocations: 0 / 420.4 MB, free: 3.469 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004479/0.2779, allocations: 111.8 kB / 420.5 MB, free: 3.359 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.001184/0.2791, allocations: 1.06 MB / 421.5 MB, free: 2.27 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001604/0.2807, allocations: 0.5374 MB / 422.1 MB, free: 1.707 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.242e-06/0.2807, allocations: 4 kB / 422.1 MB, free: 1.703 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001415/0.2821, allocations: 402.7 kB / 422.5 MB, free: 1.297 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000575/0.2827, allocations: 96.73 kB / 422.5 MB, free: 1.199 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00498/0.2877, allocations: 3.39 MB / 425.9 MB, free: 13.7 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003437/0.2881, allocations: 0.7762 MB / 426.7 MB, free: 12.9 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001556/0.2882, allocations: 34.97 kB / 426.7 MB, free: 12.87 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001479/0.2884, allocations: 111.4 kB / 426.9 MB, free: 12.76 MB / 350.1 MB Notification: Performance of SimCode: time 2.695e-06/0.2884, allocations: 0 / 426.9 MB, free: 12.76 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03331/0.3217, allocations: 9.813 MB / 436.7 MB, free: 3.172 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.54/11.86, allocations: 8.438 kB / 436.7 MB, free: 3.168 MB / 350.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks.fmu > 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