Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.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.TestOpenTank,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TestOpenTank",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TestOpenTank",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.001589/0.001588, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.001847/0.001847, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.292/1.292, allocations: 222.9 MB / 241.5 MB, free: 15.23 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001052/0.001052, allocations: 46.84 kB / 300.7 MB, free: 5.777 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08812/0.08919, allocations: 49.45 MB / 350.2 MB, free: 4.328 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank): time 0.004094/0.09332, allocations: 2.855 MB / 353 MB, free: 1.449 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001961/0.0953, allocations: 1.258 MB / 354.3 MB, free: 188 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002349/0.09556, allocations: 4 kB / 354.3 MB, free: 184 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004765/0.09606, allocations: 179.1 kB / 354.5 MB, free: 4 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005191/0.09659, allocations: 202.8 kB / 354.6 MB, free: 15.8 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004698/0.09708, allocations: 175.5 kB / 354.8 MB, free: 15.63 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005269/0.09762, allocations: 449 kB / 355.3 MB, free: 15.2 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001966/0.09782, allocations: 103.5 kB / 355.4 MB, free: 15.09 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002285/0.09806, allocations: 179.4 kB / 355.5 MB, free: 14.92 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002659/0.09834, allocations: 219 kB / 355.7 MB, free: 14.7 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.801e-05/0.09841, allocations: 32 kB / 355.8 MB, free: 14.67 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001609/0.09857, allocations: 63.98 kB / 355.8 MB, free: 14.61 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.737e-05/0.09868, allocations: 87.67 kB / 355.9 MB, free: 14.52 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001832/0.09887, allocations: 187 kB / 356.1 MB, free: 14.34 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004668/0.09934, allocations: 482.6 kB / 356.6 MB, free: 13.87 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.09935, allocations: 0 / 356.6 MB, free: 13.87 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.09936, allocations: 0 / 356.6 MB, free: 13.87 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.137e-06/0.09938, allocations: 0 / 356.6 MB, free: 13.87 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: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.0009619/0.1003, allocations: 0.7085 MB / 357.3 MB, free: 13.11 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.343e-05/0.1004, allocations: 8.031 kB / 357.3 MB, free: 13.1 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.239e-05/0.1005, allocations: 55.17 kB / 357.4 MB, free: 13.04 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.249e-05/0.1006, allocations: 48.38 kB / 357.4 MB, free: 12.99 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004055/0.101, allocations: 350.5 kB / 357.7 MB, free: 12.61 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.793e-05/0.101, allocations: 12.81 kB / 357.8 MB, free: 12.6 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.795e-05/0.1011, allocations: 23.94 kB / 357.8 MB, free: 12.57 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004534/0.1015, allocations: 301.5 kB / 358.1 MB, free: 12.24 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.33e-05/0.1015, allocations: 0 / 358.1 MB, free: 12.24 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.58e-05/0.1016, allocations: 8 kB / 358.1 MB, free: 12.23 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.737e-06/0.1016, allocations: 15.98 kB / 358.1 MB, free: 12.22 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002836/0.1019, allocations: 149.7 kB / 358.2 MB, free: 12.07 MB / 302.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00124/0.1031, allocations: 0.8398 MB / 359.1 MB, free: 11.16 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00037/0.1035, allocations: 190.5 kB / 359.3 MB, free: 10.97 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001424/0.1037, allocations: 80.83 kB / 359.3 MB, free: 10.89 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.559e-05/0.1037, allocations: 7.938 kB / 359.4 MB, free: 10.88 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000285/0.104, allocations: 133 kB / 359.5 MB, free: 10.74 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 1.764e-06/0.104, allocations: 0 / 359.5 MB, free: 10.74 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.0007866/0.1048, allocations: 406.4 kB / 359.9 MB, free: 10.32 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001313/0.1049, allocations: 324.4 kB / 360.2 MB, free: 9.926 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004203/0.1054, allocations: 425.7 kB / 360.6 MB, free: 9.5 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.715e-05/0.1054, allocations: 37.64 kB / 360.7 MB, free: 9.457 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000157/0.1056, allocations: 208.2 kB / 360.9 MB, free: 9.246 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.999e-05/0.1056, allocations: 78.89 kB / 360.9 MB, free: 9.168 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.46e-05/0.1057, allocations: 57.7 kB / 361 MB, free: 9.105 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000126/0.1059, allocations: 346.8 kB / 361.3 MB, free: 8.758 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001335/0.106, allocations: 71.97 kB / 361.4 MB, free: 8.688 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002131/0.1062, allocations: 176.4 kB / 361.6 MB, free: 8.473 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002759/0.1065, allocations: 171.3 kB / 361.7 MB, free: 8.293 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.1065, allocations: 0 / 361.7 MB, free: 8.293 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004507/0.107, allocations: 277.8 kB / 362 MB, free: 8.012 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.418e-05/0.107, allocations: 4.094 kB / 362 MB, free: 8.008 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.107, allocations: 3.938 kB / 362 MB, free: 8.004 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001238/0.1071, allocations: 36.94 kB / 362.1 MB, free: 7.965 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002084/0.1073, allocations: 55.91 kB / 362.1 MB, free: 7.91 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001362/0.1087, allocations: 1.574 MB / 363.7 MB, free: 6.195 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002126/0.1089, allocations: 31.78 kB / 363.7 MB, free: 6.164 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.709e-05/0.109, allocations: 8 kB / 363.7 MB, free: 6.156 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: 5 ($PRE.combiTimeTable.nextTimeEvent,$whenCondition1,combiTimeTable.nextTimeEventScaled,$PRE.combiTimeTable.nextTimeEventScaled,combiTimeTable.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 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,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001818/0.1092, allocations: 169.8 kB / 363.9 MB, free: 5.98 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.135e-05/0.1092, allocations: 39.56 kB / 363.9 MB, free: 5.941 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.086e-05/0.1093, allocations: 39.59 kB / 364 MB, free: 5.891 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.436e-06/0.1093, allocations: 4 kB / 364 MB, free: 5.887 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.034e-06/0.1093, allocations: 0 / 364 MB, free: 5.887 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004967/0.1098, allocations: 0.5789 MB / 364.5 MB, free: 5.203 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009052/0.1108, allocations: 0.7078 MB / 365.3 MB, free: 4.43 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.1108, allocations: 0 / 365.3 MB, free: 4.43 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002122/0.111, allocations: 43.92 kB / 365.3 MB, free: 4.387 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.166e-06/0.111, allocations: 0 / 365.3 MB, free: 4.387 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.165e-05/0.111, allocations: 11.98 kB / 365.3 MB, free: 4.375 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.244e-06/0.111, allocations: 0 / 365.3 MB, free: 4.375 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.111, allocations: 0 / 365.3 MB, free: 4.375 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000553/0.1116, allocations: 405.6 kB / 365.7 MB, free: 3.965 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001393/0.1117, allocations: 148.5 kB / 365.8 MB, free: 3.801 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.098e-05/0.1118, allocations: 8 kB / 365.9 MB, free: 3.793 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000208/0.112, allocations: 8 kB / 365.9 MB, free: 3.785 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.512e-05/0.1121, allocations: 15.97 kB / 365.9 MB, free: 3.77 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.26e-05/0.1121, allocations: 15.94 kB / 365.9 MB, free: 3.754 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003001/0.1124, allocations: 311.1 kB / 366.2 MB, free: 3.457 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1124, allocations: 4 kB / 366.2 MB, free: 3.453 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003773/0.1128, allocations: 99.78 kB / 366.3 MB, free: 3.355 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (openTank.m,openTank.H) * Number of discrete variables: 3 ($whenCondition1,combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 2 (combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001597/0.1144, allocations: 1.246 MB / 367.5 MB, free: 2.242 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006082/0.115, allocations: 316.9 kB / 367.9 MB, free: 1.922 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.039e-06/0.115, allocations: 4 kB / 367.9 MB, free: 1.918 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001505/0.1152, allocations: 79.91 kB / 367.9 MB, free: 1.84 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005431/0.1157, allocations: 105.5 kB / 368 MB, free: 1.734 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1438/0.2595, allocations: 3.389 MB / 371.4 MB, free: 23.97 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005072/0.2601, allocations: 0.7987 MB / 372.2 MB, free: 23.28 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003158/0.2604, allocations: 42.77 kB / 372.3 MB, free: 23.28 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002468/0.2607, allocations: 123.5 kB / 372.4 MB, free: 23.27 MB / 302.1 MB Notification: Performance of SimCode: time 1.703e-06/0.2607, allocations: 0 / 372.4 MB, free: 23.27 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02988/0.2906, allocations: 9.99 MB / 382.4 MB, free: 20.83 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.99/11.28, allocations: 6.203 kB / 382.4 MB, free: 20.82 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank_res.csv --start-time 0 --stop-time 1.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0006 Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TestOpenTank.fmu > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/TestOpenTank/TestOpenTank.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches