Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TestOpenTank",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TestOpenTank",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00174/0.00174, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001637/0.001637, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.627/1.627, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001232/0.001232, allocations: 60.19 kB / 307 MB, free: 0.5859 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0899/0.09115, allocations: 50.53 MB / 357.6 MB, free: 14.06 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank): time 0.004433/0.09562, allocations: 2.86 MB / 360.4 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002397/0.09805, allocations: 1.409 MB / 361.8 MB, free: 9.77 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002813/0.09836, allocations: 4 kB / 361.8 MB, free: 9.766 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005409/0.09895, allocations: 187.1 kB / 362 MB, free: 9.582 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006021/0.09957, allocations: 242.6 kB / 362.3 MB, free: 9.344 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003422/0.09992, allocations: 139.5 kB / 362.4 MB, free: 9.207 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005416/0.1005, allocations: 461.9 kB / 362.9 MB, free: 8.754 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001937/0.1007, allocations: 101.4 kB / 363 MB, free: 8.656 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002364/0.1009, allocations: 183.3 kB / 363.1 MB, free: 8.477 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000289/0.1012, allocations: 203.2 kB / 363.3 MB, free: 8.277 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.856e-05/0.1013, allocations: 35.94 kB / 363.4 MB, free: 8.242 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001912/0.1015, allocations: 71.97 kB / 363.4 MB, free: 8.172 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.983e-05/0.1016, allocations: 91.62 kB / 363.5 MB, free: 8.082 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002071/0.1018, allocations: 195 kB / 363.7 MB, free: 7.891 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005119/0.1023, allocations: 490.6 kB / 364.2 MB, free: 7.41 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.1024, allocations: 0 / 364.2 MB, free: 7.41 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1024, allocations: 0 / 364.2 MB, free: 7.41 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.029e-05/0.1024, allocations: 0 / 364.2 MB, free: 7.41 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.001067/0.1035, allocations: 0.6968 MB / 364.9 MB, free: 6.664 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.286e-05/0.1035, allocations: 8.031 kB / 364.9 MB, free: 6.656 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001138/0.1036, allocations: 67.06 kB / 365 MB, free: 6.578 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.68e-05/0.1037, allocations: 56.31 kB / 365 MB, free: 6.523 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004362/0.1042, allocations: 342.6 kB / 365.4 MB, free: 6.148 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.927e-05/0.1042, allocations: 16.81 kB / 365.4 MB, free: 6.133 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.28e-05/0.1043, allocations: 27.92 kB / 365.4 MB, free: 6.105 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00046/0.1047, allocations: 301.5 kB / 365.7 MB, free: 5.77 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.392e-05/0.1047, allocations: 0 / 365.7 MB, free: 5.77 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.78e-05/0.1048, allocations: 11.94 kB / 365.7 MB, free: 5.758 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.765e-06/0.1048, allocations: 4 kB / 365.7 MB, free: 5.754 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002905/0.1051, allocations: 157.5 kB / 365.9 MB, free: 5.602 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.001315/0.1064, allocations: 0.84 MB / 366.7 MB, free: 4.691 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003825/0.1068, allocations: 194.7 kB / 366.9 MB, free: 4.496 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001429/0.107, allocations: 80.77 kB / 367 MB, free: 4.414 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.091e-05/0.107, allocations: 7.938 kB / 367 MB, free: 4.406 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003161/0.1073, allocations: 139.3 kB / 367.1 MB, free: 4.258 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 1.733e-06/0.1073, allocations: 0 / 367.1 MB, free: 4.258 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008175/0.1082, allocations: 401.9 kB / 367.5 MB, free: 3.84 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000139/0.1083, allocations: 320.4 kB / 367.8 MB, free: 3.453 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004585/0.1088, allocations: 437.7 kB / 368.2 MB, free: 3.016 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.714e-05/0.1088, allocations: 33.7 kB / 368.3 MB, free: 2.977 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001628/0.109, allocations: 216.2 kB / 368.5 MB, free: 2.758 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.296e-05/0.1091, allocations: 78.89 kB / 368.6 MB, free: 2.68 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.693e-05/0.1092, allocations: 57.7 kB / 368.6 MB, free: 2.617 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000134/0.1093, allocations: 346.8 kB / 369 MB, free: 2.27 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001375/0.1094, allocations: 63.97 kB / 369 MB, free: 2.207 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002182/0.1097, allocations: 180 kB / 369.2 MB, free: 1.988 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003114/0.11, allocations: 177 kB / 369.4 MB, free: 1.805 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.11, allocations: 0 / 369.4 MB, free: 1.805 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004621/0.1105, allocations: 277.8 kB / 369.6 MB, free: 1.523 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.663e-05/0.1105, allocations: 4 kB / 369.6 MB, free: 1.52 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.935e-06/0.1105, allocations: 4 kB / 369.7 MB, free: 1.516 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000117/0.1106, allocations: 28.84 kB / 369.7 MB, free: 1.484 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002019/0.1108, allocations: 55.91 kB / 369.7 MB, free: 1.43 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1444/0.2553, allocations: 1.57 MB / 371.3 MB, free: 19.21 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000309/0.2556, allocations: 26.98 kB / 371.3 MB, free: 19.21 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.292e-05/0.2557, allocations: 11.48 kB / 371.3 MB, free: 19.21 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.0002038/0.2559, allocations: 170.2 kB / 371.5 MB, free: 19.1 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.461e-05/0.256, allocations: 44.14 kB / 371.6 MB, free: 19.1 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.109e-05/0.256, allocations: 43.73 kB / 371.6 MB, free: 19.09 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.909e-06/0.2561, allocations: 2.375 kB / 371.6 MB, free: 19.09 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.535e-06/0.2561, allocations: 0.875 kB / 371.6 MB, free: 19.09 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004381/0.2565, allocations: 0.5755 MB / 372.2 MB, free: 18.56 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008751/0.2574, allocations: 0.717 MB / 372.9 MB, free: 18.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.2574, allocations: 0 / 372.9 MB, free: 18.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002179/0.2576, allocations: 50.91 kB / 372.9 MB, free: 18.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.863e-06/0.2577, allocations: 1.375 kB / 372.9 MB, free: 18.23 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.84e-05/0.2577, allocations: 6.547 kB / 372.9 MB, free: 18.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.745e-06/0.2577, allocations: 4.75 kB / 373 MB, free: 18.23 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.2577, allocations: 0.8438 kB / 373 MB, free: 18.23 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005814/0.2583, allocations: 404 kB / 373.3 MB, free: 18.1 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001302/0.2584, allocations: 139.3 kB / 373.5 MB, free: 18 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.581e-05/0.2585, allocations: 10.42 kB / 373.5 MB, free: 18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002127/0.2587, allocations: 11.66 kB / 373.5 MB, free: 18 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.686e-05/0.2588, allocations: 14.58 kB / 373.5 MB, free: 18 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.421e-05/0.2588, allocations: 14.61 kB / 373.5 MB, free: 18 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003307/0.2591, allocations: 318.1 kB / 373.8 MB, free: 17.91 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.2591, allocations: 0 / 373.8 MB, free: 17.91 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000405/0.2595, allocations: 95.08 kB / 373.9 MB, free: 17.91 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.00153/0.2611, allocations: 1.235 MB / 375.2 MB, free: 17.19 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006387/0.2617, allocations: 327.4 kB / 375.5 MB, free: 17.07 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.51e-06/0.2617, allocations: 4.531 kB / 375.5 MB, free: 17.07 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001865/0.2619, allocations: 86.14 kB / 375.6 MB, free: 17.07 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000594/0.2625, allocations: 101.3 kB / 375.7 MB, free: 17.06 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003909/0.2665, allocations: 3.446 MB / 379.1 MB, free: 14.92 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002432/0.2667, allocations: 0.8002 MB / 379.9 MB, free: 14.21 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001941/0.2669, allocations: 48.39 kB / 380 MB, free: 14.2 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001437/0.2671, allocations: 130.6 kB / 380.1 MB, free: 14.11 MB / 302.1 MB Notification: Performance of SimCode: time 7.81e-07/0.2671, allocations: 0 / 380.1 MB, free: 14.11 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0338/0.3009, allocations: 10.07 MB / 390.2 MB, free: 11.1 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.82/11.12, allocations: 16.27 kB / 390.2 MB, free: 11.09 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe >> ../files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TestOpenTank.fmu > Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches