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: translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|openTank.H|openTank.m",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|openTank.H|openTank.m",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001055/0.001055, allocations: 105.6 kB / 16.5 MB, free: 6.645 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.001345/0.001345, allocations: 195.1 kB / 17.42 MB, free: 6.066 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.302/1.302, allocations: 222.9 MB / 241.1 MB, free: 13.69 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0008972/0.0008972, allocations: 43.56 kB / 299.9 MB, free: 6.074 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08248/0.08339, allocations: 49.44 MB / 349.4 MB, free: 4.625 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank): time 0.003857/0.08727, allocations: 2.908 MB / 352.3 MB, free: 1.695 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001873/0.08917, allocations: 1.235 MB / 353.5 MB, free: 464 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002026/0.08939, allocations: 7.938 kB / 353.5 MB, free: 456 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004605/0.08986, allocations: 163.4 kB / 353.7 MB, free: 292 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004154/0.0903, allocations: 191 kB / 353.9 MB, free: 100 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004072/0.09073, allocations: 149.6 kB / 354 MB, free: 15.95 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000456/0.09119, allocations: 437.9 kB / 354.5 MB, free: 15.52 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001722/0.09137, allocations: 95.69 kB / 354.5 MB, free: 15.43 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002089/0.09159, allocations: 167.3 kB / 354.7 MB, free: 15.26 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002301/0.09183, allocations: 203.1 kB / 354.9 MB, free: 15.06 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.098e-05/0.09189, allocations: 20 kB / 354.9 MB, free: 15.04 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001447/0.09204, allocations: 59.98 kB / 355 MB, free: 14.98 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.214e-05/0.09214, allocations: 79.67 kB / 355.1 MB, free: 14.91 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001738/0.09232, allocations: 187 kB / 355.2 MB, free: 14.72 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004198/0.09275, allocations: 470.6 kB / 355.7 MB, free: 14.26 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.257e-06/0.09276, allocations: 0 / 355.7 MB, free: 14.26 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.92e-07/0.09276, allocations: 0 / 355.7 MB, free: 14.26 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.903e-06/0.09278, allocations: 0 / 355.7 MB, free: 14.26 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.0009649/0.09375, allocations: 0.7007 MB / 356.4 MB, free: 13.51 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.452e-05/0.09379, allocations: 8.031 kB / 356.4 MB, free: 13.5 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.706e-05/0.09389, allocations: 44.47 kB / 356.5 MB, free: 13.46 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003999/0.0943, allocations: 346.5 kB / 356.8 MB, free: 13.08 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.926e-05/0.09433, allocations: 12.81 kB / 356.8 MB, free: 13.07 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.768e-05/0.09437, allocations: 28.12 kB / 356.8 MB, free: 13.04 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004481/0.09482, allocations: 289.5 kB / 357.1 MB, free: 12.72 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.207e-05/0.09485, allocations: 0 / 357.1 MB, free: 12.72 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.766e-05/0.09488, allocations: 8 kB / 357.1 MB, free: 12.71 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.213e-06/0.09489, allocations: 4 kB / 357.1 MB, free: 12.71 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002806/0.09518, allocations: 145.7 kB / 357.3 MB, free: 12.57 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.001235/0.09642, allocations: 0.8322 MB / 358.1 MB, free: 11.66 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003854/0.09682, allocations: 190.5 kB / 358.3 MB, free: 11.47 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001472/0.09698, allocations: 84.83 kB / 358.4 MB, free: 11.39 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.508e-05/0.09701, allocations: 0 / 358.4 MB, free: 11.39 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002734/0.09729, allocations: 139.3 kB / 358.5 MB, free: 11.24 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 1.513e-06/0.0973, allocations: 4 kB / 358.5 MB, free: 11.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.0007898/0.0981, allocations: 406.2 kB / 358.9 MB, free: 10.81 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001175/0.09823, allocations: 316.4 kB / 359.2 MB, free: 10.43 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004152/0.09865, allocations: 433.6 kB / 359.6 MB, free: 10 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.619e-05/0.09869, allocations: 29.7 kB / 359.7 MB, free: 9.965 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001294/0.09882, allocations: 208.2 kB / 359.9 MB, free: 9.758 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.175e-05/0.09889, allocations: 82.83 kB / 360 MB, free: 9.676 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.422e-05/0.09898, allocations: 57.7 kB / 360 MB, free: 9.613 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001117/0.0991, allocations: 358.7 kB / 360.4 MB, free: 9.254 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000134/0.09924, allocations: 55.98 kB / 360.4 MB, free: 9.199 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002226/0.09947, allocations: 175.9 kB / 360.6 MB, free: 8.984 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002792/0.09976, allocations: 167.3 kB / 360.8 MB, free: 8.809 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.516e-06/0.09977, allocations: 11.94 kB / 360.8 MB, free: 8.797 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004455/0.1002, allocations: 269.9 kB / 361 MB, free: 8.523 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.37e-05/0.1002, allocations: 4 kB / 361 MB, free: 8.52 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.1003, allocations: 4 kB / 361 MB, free: 8.516 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001196/0.1004, allocations: 36.83 kB / 361.1 MB, free: 8.477 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002093/0.1006, allocations: 47.92 kB / 361.1 MB, free: 8.43 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001251/0.1019, allocations: 1.456 MB / 362.6 MB, free: 6.832 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002059/0.1021, allocations: 31.72 kB / 362.6 MB, free: 6.801 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.568e-05/0.1021, allocations: 4 kB / 362.6 MB, free: 6.797 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.0001702/0.1023, allocations: 176.6 kB / 362.8 MB, free: 6.617 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.715e-05/0.1023, allocations: 39.53 kB / 362.8 MB, free: 6.578 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.386e-05/0.1024, allocations: 39.59 kB / 362.9 MB, free: 6.531 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.327e-06/0.1024, allocations: 4 kB / 362.9 MB, free: 6.527 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.164e-06/0.1024, allocations: 0 / 362.9 MB, free: 6.527 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004659/0.1029, allocations: 0.5788 MB / 363.4 MB, free: 5.844 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008408/0.1038, allocations: 0.7001 MB / 364.1 MB, free: 5.082 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.1038, allocations: 4 kB / 364.1 MB, free: 5.078 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002097/0.104, allocations: 47.86 kB / 364.2 MB, free: 5.031 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.926e-06/0.104, allocations: 0 / 364.2 MB, free: 5.031 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.358e-05/0.104, allocations: 11.98 kB / 364.2 MB, free: 5.02 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/0.104, allocations: 4 kB / 364.2 MB, free: 5.016 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.104, allocations: 0 / 364.2 MB, free: 5.016 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005309/0.1046, allocations: 396.3 kB / 364.6 MB, free: 4.613 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001255/0.1047, allocations: 140.5 kB / 364.7 MB, free: 4.457 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.201e-05/0.1048, allocations: 11.98 kB / 364.7 MB, free: 4.445 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000216/0.105, allocations: 4 kB / 364.8 MB, free: 4.441 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.014e-05/0.105, allocations: 23.91 kB / 364.8 MB, free: 4.418 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.066e-05/0.1051, allocations: 8 kB / 364.8 MB, free: 4.41 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002876/0.1054, allocations: 311.1 kB / 365.1 MB, free: 4.109 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1054, allocations: 0 / 365.1 MB, free: 4.109 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003702/0.1057, allocations: 99.84 kB / 365.2 MB, free: 4.012 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.0008533/0.1066, allocations: 422 kB / 365.6 MB, free: 3.75 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005234/0.1071, allocations: 309.1 kB / 365.9 MB, free: 3.438 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.736e-06/0.1072, allocations: 0 / 365.9 MB, free: 3.438 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001613/0.1073, allocations: 87.91 kB / 366 MB, free: 3.352 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005623/0.1079, allocations: 105.5 kB / 366.1 MB, free: 3.246 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001313/0.1092, allocations: 0.9025 MB / 367 MB, free: 2.32 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002927/0.1095, allocations: 0.7924 MB / 367.8 MB, free: 1.504 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001679/0.1097, allocations: 42.95 kB / 367.8 MB, free: 1.461 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.179e-05/0.1098, allocations: 39.42 kB / 367.9 MB, free: 1.422 MB / 302.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1098, allocations: 4 kB / 367.9 MB, free: 1.418 MB / 302.1 MB Notification: Performance of Templates: time 0.1395/0.2493, allocations: 5.755 MB / 373.6 MB, free: 24.43 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.makefile (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 & ./Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/TestOpenTank/TestOpenTank.csv","/var/lib/jenkins/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