Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) 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 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_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_3_2_3_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.001192/0.001193, allocations: 113.2 kB / 17.73 MB, free: 5.336 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.001178/0.001178, allocations: 188.2 kB / 18.67 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.387/1.387, allocations: 205.1 MB / 224.5 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00163/0.001631, allocations: 59.91 kB / 328 MB, free: 3.816 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08388/0.08552, allocations: 46.61 MB / 374.6 MB, free: 5.094 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.003895/0.08945, allocations: 2.753 MB / 377.4 MB, free: 2.328 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001493/0.09097, allocations: 0.8691 MB / 378.3 MB, free: 1.449 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001579/0.09115, allocations: 7.938 kB / 378.3 MB, free: 1.441 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002745/0.09148, allocations: 63.48 kB / 378.3 MB, free: 1.379 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003093/0.0918, allocations: 138.9 kB / 378.5 MB, free: 1.242 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002405/0.09205, allocations: 87.89 kB / 378.5 MB, free: 1.156 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005303/0.09259, allocations: 442.3 kB / 379 MB, free: 0.7227 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002043/0.0928, allocations: 111.1 kB / 379.1 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002012/0.09301, allocations: 155.5 kB / 379.2 MB, free: 472 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002609/0.09328, allocations: 187.2 kB / 379.4 MB, free: 284 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.202e-05/0.09335, allocations: 36 kB / 379.5 MB, free: 248 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.055e-05/0.09343, allocations: 36 kB / 379.5 MB, free: 212 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.37e-05/0.09352, allocations: 67.77 kB / 379.6 MB, free: 144 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.1595/0.253, allocations: 194.7 kB / 379.7 MB, free: 9.781 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005947/0.2537, allocations: 440.7 kB / 380.2 MB, free: 9.758 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.2537, allocations: 1.375 kB / 380.2 MB, free: 9.758 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2537, allocations: 0 / 380.2 MB, free: 9.758 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.677e-06/0.2537, allocations: 0 / 380.2 MB, free: 9.758 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.001105/0.2548, allocations: 0.6878 MB / 380.9 MB, free: 9.246 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.957e-05/0.2549, allocations: 9.344 kB / 380.9 MB, free: 9.246 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001037/0.255, allocations: 71.23 kB / 380.9 MB, free: 9.199 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.442e-05/0.2551, allocations: 43.92 kB / 381 MB, free: 9.18 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004365/0.2555, allocations: 309.2 kB / 381.3 MB, free: 8.945 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.877e-05/0.2557, allocations: 51.41 kB / 381.3 MB, free: 8.914 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.981e-05/0.2557, allocations: 27.08 kB / 381.4 MB, free: 8.91 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005247/0.2562, allocations: 338.5 kB / 381.7 MB, free: 8.781 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.665e-05/0.2563, allocations: 3.703 kB / 381.7 MB, free: 8.781 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.12e-05/0.2563, allocations: 12.41 kB / 381.7 MB, free: 8.781 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.835e-06/0.2563, allocations: 7.969 kB / 381.7 MB, free: 8.781 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004209/0.2567, allocations: 211.1 kB / 381.9 MB, free: 8.781 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001446/0.2582, allocations: 0.8187 MB / 382.7 MB, free: 8.477 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006395/0.2589, allocations: 274.4 kB / 383 MB, free: 8.453 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002395/0.2591, allocations: 115.2 kB / 383.1 MB, free: 8.445 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.92e-05/0.2592, allocations: 10.81 kB / 383.1 MB, free: 8.445 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.137e-05/0.2592, allocations: 41.86 kB / 383.2 MB, free: 8.406 MB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 1.723e-06/0.2592, allocations: 1.469 kB / 383.2 MB, free: 8.406 MB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.0009988/0.2602, allocations: 484.1 kB / 383.7 MB, free: 8.25 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.949e-05/0.2603, allocations: 321.3 kB / 384 MB, free: 7.871 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002577/0.2605, allocations: 279.8 kB / 384.2 MB, free: 7.766 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.114e-05/0.2606, allocations: 35.42 kB / 384.3 MB, free: 7.734 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.551e-05/0.2607, allocations: 177.7 kB / 384.4 MB, free: 7.625 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.123e-05/0.2607, allocations: 109.3 kB / 384.6 MB, free: 7.555 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001015/0.2608, allocations: 65.02 kB / 384.6 MB, free: 7.539 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.315e-05/0.2609, allocations: 347.3 kB / 385 MB, free: 7.223 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002042/0.2611, allocations: 96.08 kB / 385.1 MB, free: 7.219 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002559/0.2614, allocations: 200.3 kB / 385.2 MB, free: 7.109 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004074/0.2618, allocations: 263.7 kB / 385.5 MB, free: 7.016 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.175e-06/0.2618, allocations: 3.891 kB / 385.5 MB, free: 7.016 MB / 318.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005887/0.2624, allocations: 366.3 kB / 385.9 MB, free: 6.836 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.979e-05/0.2624, allocations: 38.48 kB / 385.9 MB, free: 6.801 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.2625, allocations: 0 / 385.9 MB, free: 6.801 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001579/0.2626, allocations: 37.59 kB / 385.9 MB, free: 6.785 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009719/0.2636, allocations: 164.1 kB / 386.1 MB, free: 6.777 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003132/0.2667, allocations: 3.236 MB / 389.3 MB, free: 3.773 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000389/0.2672, allocations: 36.02 kB / 389.4 MB, free: 3.754 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.223e-05/0.2672, allocations: 9.734 kB / 389.4 MB, free: 3.754 MB / 318.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.0002013/0.2674, allocations: 153.3 kB / 389.5 MB, free: 3.617 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.105e-05/0.2675, allocations: 34.22 kB / 389.6 MB, free: 3.602 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.915e-05/0.2676, allocations: 40.36 kB / 389.6 MB, free: 3.57 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.769e-06/0.2676, allocations: 7.875 kB / 389.6 MB, free: 3.57 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.2676, allocations: 3.938 kB / 389.6 MB, free: 3.566 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005811/0.2682, allocations: 0.6508 MB / 390.3 MB, free: 2.953 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004296/0.2686, allocations: 393.6 kB / 390.6 MB, free: 2.676 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.497e-06/0.2686, allocations: 0.625 kB / 390.7 MB, free: 2.676 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001251/0.2699, allocations: 206.3 kB / 390.9 MB, free: 2.672 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.006e-05/0.27, allocations: 23.36 kB / 390.9 MB, free: 2.66 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.452e-05/0.27, allocations: 14.12 kB / 390.9 MB, free: 2.648 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002876/0.2729, allocations: 3.044 MB / 393.9 MB, free: 15.74 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.089e-06/0.2729, allocations: 4.594 kB / 393.9 MB, free: 15.73 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001052/0.274, allocations: 0.5097 MB / 394.4 MB, free: 15.44 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002521/0.2743, allocations: 142.7 kB / 394.6 MB, free: 15.31 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.403e-05/0.2743, allocations: 10.94 kB / 394.6 MB, free: 15.3 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002756/0.2746, allocations: 23.34 kB / 394.6 MB, free: 15.29 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000101/0.2747, allocations: 27 kB / 394.6 MB, free: 15.29 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.23e-05/0.2747, allocations: 7.484 kB / 394.7 MB, free: 15.29 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002824/0.275, allocations: 199.4 kB / 394.8 MB, free: 15.17 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.275, allocations: 0 / 394.8 MB, free: 15.17 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005519/0.2756, allocations: 109.4 kB / 395 MB, free: 15.15 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.001358/0.277, allocations: 1.052 MB / 396 MB, free: 14.33 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001666/0.2786, allocations: 0.54 MB / 396.5 MB, free: 14.06 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.151e-06/0.2787, allocations: 1.156 kB / 396.5 MB, free: 14.06 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001488/0.2802, allocations: 403.4 kB / 396.9 MB, free: 13.9 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000608/0.2808, allocations: 98.09 kB / 397 MB, free: 13.86 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005622/0.2864, allocations: 3.409 MB / 400.4 MB, free: 11.72 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000465/0.2869, allocations: 0.7791 MB / 401.2 MB, free: 11.02 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002234/0.2872, allocations: 33.97 kB / 401.3 MB, free: 11.01 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001642/0.2873, allocations: 104.4 kB / 401.4 MB, free: 10.94 MB / 334.1 MB Notification: Performance of SimCode: time 1.122e-06/0.2873, allocations: 0 / 401.4 MB, free: 10.94 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04041/0.3278, allocations: 9.63 MB / 411 MB, free: 7.434 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.7/12.03, allocations: 6.219 kB / 411 MB, free: 7.43 MB / 334.1 MB (rm -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks.fmu > Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/FluidHeatFlow/Examples/TwoTanks/TwoTanks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches