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.002104/0.002104, allocations: 103.1 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.00267/0.00267, allocations: 191.5 kB / 17.85 MB, free: 5.309 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.603/1.603, allocations: 222.9 MB / 241.5 MB, free: 15.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001341/0.001341, allocations: 43.55 kB / 300.7 MB, free: 5.809 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1238/0.1252, allocations: 49.44 MB / 350.2 MB, free: 4.355 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank): time 0.005311/0.1305, allocations: 2.855 MB / 353 MB, free: 1.477 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002686/0.1333, allocations: 1.254 MB / 354.3 MB, free: 220 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003859/0.1337, allocations: 4 kB / 354.3 MB, free: 216 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006245/0.1343, allocations: 187.1 kB / 354.4 MB, free: 28 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007434/0.1351, allocations: 202.8 kB / 354.6 MB, free: 15.83 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005933/0.1357, allocations: 170.2 kB / 354.8 MB, free: 15.66 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007259/0.1365, allocations: 449.9 kB / 355.3 MB, free: 15.22 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000249/0.1367, allocations: 107.4 kB / 355.4 MB, free: 15.12 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000298/0.137, allocations: 175.3 kB / 355.5 MB, free: 14.95 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003513/0.1374, allocations: 223.1 kB / 355.7 MB, free: 14.73 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001009/0.1375, allocations: 28 kB / 355.8 MB, free: 14.7 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002064/0.1377, allocations: 63.98 kB / 355.8 MB, free: 14.64 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001325/0.1378, allocations: 83.69 kB / 355.9 MB, free: 14.55 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002464/0.1381, allocations: 199 kB / 356.1 MB, free: 14.36 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006174/0.1387, allocations: 470.7 kB / 356.6 MB, free: 13.9 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.1387, allocations: 3.938 kB / 356.6 MB, free: 13.89 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.1387, allocations: 0 / 356.6 MB, free: 13.89 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.313e-05/0.1388, allocations: 0 / 356.6 MB, free: 13.89 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.001269/0.14, allocations: 0.7071 MB / 357.3 MB, free: 13.14 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.641e-05/0.1401, allocations: 12.02 kB / 357.3 MB, free: 13.13 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001257/0.1402, allocations: 55.17 kB / 357.3 MB, free: 13.07 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001274/0.1404, allocations: 48.38 kB / 357.4 MB, free: 13.02 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006028/0.141, allocations: 346.5 kB / 357.7 MB, free: 12.64 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.572e-05/0.141, allocations: 16.81 kB / 357.8 MB, free: 12.62 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.428e-05/0.1411, allocations: 23.94 kB / 357.8 MB, free: 12.6 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005534/0.1416, allocations: 305.4 kB / 358.1 MB, free: 12.27 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.722e-05/0.1417, allocations: 0 / 358.1 MB, free: 12.27 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.764e-05/0.1417, allocations: 12 kB / 358.1 MB, free: 12.25 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.475e-06/0.1417, allocations: 8 kB / 358.1 MB, free: 12.25 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003354/0.1421, allocations: 153.7 kB / 358.2 MB, free: 12.09 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.001755/0.1438, allocations: 0.8399 MB / 359.1 MB, free: 11.18 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004219/0.1443, allocations: 183.1 kB / 359.3 MB, free: 11 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001742/0.1445, allocations: 76.83 kB / 359.3 MB, free: 10.92 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.239e-05/0.1445, allocations: 15.92 kB / 359.4 MB, free: 10.9 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003739/0.1449, allocations: 127.3 kB / 359.5 MB, free: 10.77 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 1.834e-06/0.1449, allocations: 3.938 kB / 359.5 MB, free: 10.76 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.0009397/0.1458, allocations: 414.4 kB / 359.9 MB, free: 10.33 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000167/0.146, allocations: 316.4 kB / 360.2 MB, free: 9.949 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005365/0.1466, allocations: 433.7 kB / 360.6 MB, free: 9.516 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.522e-05/0.1466, allocations: 29.7 kB / 360.6 MB, free: 9.48 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001776/0.1468, allocations: 208.2 kB / 360.8 MB, free: 9.27 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.351e-05/0.1469, allocations: 70.92 kB / 360.9 MB, free: 9.199 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001119/0.147, allocations: 61.69 kB / 361 MB, free: 9.133 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001456/0.1472, allocations: 346.8 kB / 361.3 MB, free: 8.785 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000137/0.1473, allocations: 59.98 kB / 361.4 MB, free: 8.727 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002491/0.1476, allocations: 184.4 kB / 361.6 MB, free: 8.504 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003129/0.1479, allocations: 175.3 kB / 361.7 MB, free: 8.32 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.1479, allocations: 4.094 kB / 361.7 MB, free: 8.316 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005263/0.1484, allocations: 273.8 kB / 362 MB, free: 8.039 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.079e-05/0.1485, allocations: 4 kB / 362 MB, free: 8.035 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.793e-05/0.1485, allocations: 7.984 kB / 362 MB, free: 8.027 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001558/0.1486, allocations: 36.94 kB / 362 MB, free: 7.988 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002224/0.1489, allocations: 55.91 kB / 362.1 MB, free: 7.934 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001664/0.1506, allocations: 1.57 MB / 363.7 MB, free: 6.223 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002663/0.1508, allocations: 23.75 kB / 363.7 MB, free: 6.199 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.27e-05/0.1509, allocations: 12 kB / 363.7 MB, free: 6.188 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.0002057/0.1511, allocations: 165.8 kB / 363.9 MB, free: 6.016 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.753e-05/0.1512, allocations: 43.55 kB / 363.9 MB, free: 5.973 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.108e-05/0.1513, allocations: 43.59 kB / 364 MB, free: 5.918 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.1513, allocations: 4 kB / 364 MB, free: 5.914 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.1513, allocations: 0 / 364 MB, free: 5.914 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005618/0.1519, allocations: 0.575 MB / 364.5 MB, free: 5.234 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001021/0.1529, allocations: 0.7171 MB / 365.2 MB, free: 4.453 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-06/0.1529, allocations: 240 / 365.2 MB, free: 4.453 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002043/0.1531, allocations: 43.92 kB / 365.3 MB, free: 4.41 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.242e-06/0.1531, allocations: 4 kB / 365.3 MB, free: 4.406 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.377e-05/0.1532, allocations: 7.984 kB / 365.3 MB, free: 4.398 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.537e-06/0.1532, allocations: 0 / 365.3 MB, free: 4.398 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.1532, allocations: 7.984 kB / 365.3 MB, free: 4.391 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000623/0.1538, allocations: 401.6 kB / 365.7 MB, free: 3.984 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001777/0.154, allocations: 140.5 kB / 365.8 MB, free: 3.828 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.929e-05/0.1541, allocations: 11.98 kB / 365.9 MB, free: 3.816 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00021/0.1543, allocations: 11.94 kB / 365.9 MB, free: 3.805 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.244e-05/0.1544, allocations: 19.97 kB / 365.9 MB, free: 3.785 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.254e-05/0.1544, allocations: 4 kB / 365.9 MB, free: 3.781 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003553/0.1547, allocations: 315.1 kB / 366.2 MB, free: 3.48 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1548, allocations: 0 / 366.2 MB, free: 3.48 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004496/0.1552, allocations: 103.8 kB / 366.3 MB, free: 3.379 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.001789/0.157, allocations: 1.242 MB / 367.5 MB, free: 2.273 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006907/0.1577, allocations: 318.4 kB / 367.8 MB, free: 1.949 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.038e-06/0.1577, allocations: 0 / 367.8 MB, free: 1.949 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001818/0.1579, allocations: 86.34 kB / 367.9 MB, free: 1.867 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006337/0.1586, allocations: 109.4 kB / 368 MB, free: 1.762 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2234/0.382, allocations: 3.386 MB / 371.4 MB, free: 24.02 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004753/0.3825, allocations: 0.7974 MB / 372.2 MB, free: 23.32 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003288/0.3828, allocations: 44.73 kB / 372.3 MB, free: 23.32 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002253/0.3831, allocations: 124.8 kB / 372.4 MB, free: 23.32 MB / 302.1 MB Notification: Performance of SimCode: time 1.232e-06/0.3831, allocations: 0 / 372.4 MB, free: 23.32 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03529/0.4184, allocations: 9.985 MB / 382.4 MB, free: 20.92 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.71/11.13, allocations: 14.64 kB / 382.4 MB, free: 20.91 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TestOpenTank_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 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.mat","/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