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.0008308/0.0008309, allocations: 90.19 kB / 16.65 MB, free: 6.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.0009668/0.0009668, allocations: 182.9 kB / 17.56 MB, free: 6.203 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.258/1.258, allocations: 223.3 MB / 241.6 MB, free: 14.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002296/0.0002296, allocations: 4.688 kB / 301.5 MB, free: 5.781 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08853/0.08878, allocations: 50.42 MB / 351.9 MB, free: 3.355 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.002771/0.0916, allocations: 2.436 MB / 354.4 MB, free: 0.9023 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001342/0.09296, allocations: 0.7479 MB / 355.1 MB, free: 152 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002146/0.0932, allocations: 0 / 355.1 MB, free: 152 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002849/0.0935, allocations: 63.59 kB / 355.2 MB, free: 88 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003978/0.09391, allocations: 123.2 kB / 355.3 MB, free: 15.96 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002339/0.09416, allocations: 71.92 kB / 355.4 MB, free: 15.89 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005032/0.09467, allocations: 418.2 kB / 355.8 MB, free: 15.48 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001901/0.09487, allocations: 83.36 kB / 355.9 MB, free: 15.4 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002257/0.0951, allocations: 151.5 kB / 356 MB, free: 15.25 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002506/0.09536, allocations: 167.2 kB / 356.2 MB, free: 15.09 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.183e-05/0.09543, allocations: 24 kB / 356.2 MB, free: 15.07 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.487e-05/0.0955, allocations: 20 kB / 356.2 MB, free: 15.05 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.275e-05/0.09557, allocations: 63.75 kB / 356.3 MB, free: 14.98 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001956/0.09577, allocations: 204.8 kB / 356.5 MB, free: 14.78 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003655/0.09615, allocations: 406.7 kB / 356.9 MB, free: 14.38 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.783e-06/0.09616, allocations: 3.984 kB / 356.9 MB, free: 14.38 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.09617, allocations: 4 kB / 356.9 MB, free: 14.37 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.419e-05/0.09619, allocations: 0 / 356.9 MB, free: 14.37 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.001019/0.09721, allocations: 0.6212 MB / 357.5 MB, free: 13.7 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.325e-05/0.09726, allocations: 8.031 kB / 357.5 MB, free: 13.69 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001329/0.0974, allocations: 75.17 kB / 357.6 MB, free: 13.61 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001099/0.09752, allocations: 44.41 kB / 357.6 MB, free: 13.56 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003749/0.0979, allocations: 303.4 kB / 357.9 MB, free: 13.23 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.694e-05/0.09801, allocations: 54.81 kB / 358 MB, free: 13.17 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.249e-05/0.09806, allocations: 20.38 kB / 358 MB, free: 13.15 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005308/0.0986, allocations: 339.3 kB / 358.3 MB, free: 12.78 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.304e-05/0.09862, allocations: 0 / 358.3 MB, free: 12.78 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.779e-05/0.09866, allocations: 12 kB / 358.4 MB, free: 12.77 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.544e-06/0.09867, allocations: 8 kB / 358.4 MB, free: 12.76 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004404/0.09911, allocations: 222.1 kB / 358.6 MB, free: 12.54 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001357/0.1005, allocations: 0.8226 MB / 359.4 MB, free: 11.67 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005299/0.101, allocations: 291 kB / 359.7 MB, free: 11.38 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002176/0.1013, allocations: 124.8 kB / 359.8 MB, free: 11.25 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.042e-05/0.1013, allocations: 15.91 kB / 359.8 MB, free: 11.24 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.955e-05/0.1013, allocations: 38.56 kB / 359.9 MB, free: 11.19 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 1.413e-06/0.1013, allocations: 0 / 359.9 MB, free: 11.19 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.0009917/0.1023, allocations: 495.1 kB / 360.3 MB, free: 10.68 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001331/0.1025, allocations: 320.4 kB / 360.7 MB, free: 10.29 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002711/0.1028, allocations: 283 kB / 360.9 MB, free: 10 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.229e-05/0.1028, allocations: 33.7 kB / 361 MB, free: 9.961 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001136/0.1029, allocations: 176.5 kB / 361.1 MB, free: 9.781 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.294e-05/0.103, allocations: 102.6 kB / 361.2 MB, free: 9.68 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.711e-05/0.1031, allocations: 29.7 kB / 361.3 MB, free: 9.645 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001292/0.1032, allocations: 346.8 kB / 361.6 MB, free: 9.297 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002042/0.1034, allocations: 95.95 kB / 361.7 MB, free: 9.203 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002868/0.1037, allocations: 215.9 kB / 361.9 MB, free: 8.949 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000445/0.1042, allocations: 283.5 kB / 362.2 MB, free: 8.656 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.1042, allocations: 0 / 362.2 MB, free: 8.656 MB / 302.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006158/0.1048, allocations: 377.6 kB / 362.6 MB, free: 8.273 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.61e-05/0.1048, allocations: 36.05 kB / 362.6 MB, free: 8.234 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.009e-06/0.1048, allocations: 0 / 362.6 MB, free: 8.234 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001355/0.105, allocations: 36.84 kB / 362.6 MB, free: 8.195 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009811/0.106, allocations: 203.8 kB / 362.8 MB, free: 7.996 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003339/0.1093, allocations: 3.082 MB / 365.9 MB, free: 4.652 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002755/0.1096, allocations: 39.78 kB / 365.9 MB, free: 4.613 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.278e-05/0.1097, allocations: 8 kB / 366 MB, free: 4.605 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.0001671/0.1098, allocations: 157.7 kB / 366.1 MB, free: 4.441 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.385e-05/0.1099, allocations: 35.62 kB / 366.1 MB, free: 4.406 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.451e-05/0.11, allocations: 35.08 kB / 366.2 MB, free: 4.371 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.558e-06/0.11, allocations: 8 kB / 366.2 MB, free: 4.363 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.11, allocations: 7.922 kB / 366.2 MB, free: 4.355 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000632/0.1106, allocations: 0.6511 MB / 366.8 MB, free: 3.598 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004082/0.1111, allocations: 393.2 kB / 367.2 MB, free: 3.164 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.1111, allocations: 0 / 367.2 MB, free: 3.164 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001267/0.1123, allocations: 255.7 kB / 367.5 MB, free: 2.914 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.378e-05/0.1124, allocations: 25.03 kB / 367.5 MB, free: 2.887 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.133e-05/0.1124, allocations: 8 kB / 367.5 MB, free: 2.879 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1458/0.2583, allocations: 2.901 MB / 370.4 MB, free: 23.6 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/0.2583, allocations: 4.734 kB / 370.4 MB, free: 23.6 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009921/0.2593, allocations: 0.5184 MB / 370.9 MB, free: 23.46 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001644/0.2595, allocations: 134.7 kB / 371.1 MB, free: 23.37 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.739e-05/0.2596, allocations: 9.656 kB / 371.1 MB, free: 23.37 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002809/0.2599, allocations: 23.73 kB / 371.1 MB, free: 23.37 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.909e-05/0.2599, allocations: 33.64 kB / 371.1 MB, free: 23.37 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.097e-05/0.26, allocations: 7.031 kB / 371.1 MB, free: 23.37 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002097/0.2602, allocations: 202.1 kB / 371.3 MB, free: 23.29 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2602, allocations: 1.344 kB / 371.3 MB, free: 23.29 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004506/0.2606, allocations: 106.7 kB / 371.4 MB, free: 23.29 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.001004/0.2617, allocations: 1.081 MB / 372.5 MB, free: 22.62 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001546/0.2632, allocations: 0.5813 MB / 373.1 MB, free: 22.45 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.408e-06/0.2632, allocations: 0.9375 kB / 373.1 MB, free: 22.45 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001363/0.2646, allocations: 452.9 kB / 373.5 MB, free: 22.33 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005212/0.2651, allocations: 83.53 kB / 373.6 MB, free: 22.33 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004633/0.2698, allocations: 3.648 MB / 377.3 MB, free: 20.51 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002427/0.27, allocations: 0.7774 MB / 378.1 MB, free: 19.81 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001965/0.2702, allocations: 41.27 kB / 378.1 MB, free: 19.8 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000149/0.2704, allocations: 105 kB / 378.2 MB, free: 19.79 MB / 302.1 MB Notification: Performance of SimCode: time 7.52e-07/0.2704, allocations: 0 / 378.2 MB, free: 19.79 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02225/0.2927, allocations: 8.81 MB / 387 MB, free: 17.5 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001378/0.2928, allocations: 228.5 kB / 387.2 MB, free: 17.25 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.88/2.173, allocations: 0 / 387.2 MB, free: 17.25 MB / 302.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