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.001433/0.001433, allocations: 109.2 kB / 16.62 MB, free: 6.961 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.001718/0.001718, allocations: 189.8 kB / 17.54 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.378/1.378, allocations: 222.9 MB / 241.2 MB, free: 15.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000952/0.000952, allocations: 48.75 kB / 300.1 MB, free: 6.223 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08076/0.08174, allocations: 49.45 MB / 349.6 MB, free: 4.762 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank): time 0.003821/0.08559, allocations: 2.889 MB / 352.5 MB, free: 1.852 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001744/0.08736, allocations: 1.239 MB / 353.7 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001331/0.0875, allocations: 7.938 kB / 353.7 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004393/0.08797, allocations: 159.4 kB / 353.9 MB, free: 452 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004065/0.08839, allocations: 191 kB / 354 MB, free: 260 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003755/0.08878, allocations: 153.2 kB / 354.2 MB, free: 108 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004833/0.08927, allocations: 446 kB / 354.6 MB, free: 15.67 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001892/0.08947, allocations: 107.5 kB / 354.7 MB, free: 15.56 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002056/0.08968, allocations: 175.3 kB / 354.9 MB, free: 15.39 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002377/0.08993, allocations: 215.1 kB / 355.1 MB, free: 15.18 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.801e-05/0.08999, allocations: 28 kB / 355.1 MB, free: 15.15 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001391/0.09013, allocations: 71.97 kB / 355.2 MB, free: 15.08 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001059/0.09025, allocations: 95.62 kB / 355.3 MB, free: 14.99 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001714/0.09042, allocations: 195 kB / 355.5 MB, free: 14.8 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004619/0.09089, allocations: 478.6 kB / 356 MB, free: 14.33 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.09091, allocations: 4 kB / 356 MB, free: 14.32 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.09092, allocations: 0 / 356 MB, free: 14.32 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.658e-06/0.09093, allocations: 0 / 356 MB, free: 14.32 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.0009903/0.09193, allocations: 0.6929 MB / 356.7 MB, free: 13.58 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.938e-05/0.09197, allocations: 12.03 kB / 356.7 MB, free: 13.57 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.438e-05/0.09206, allocations: 44.47 kB / 356.7 MB, free: 13.53 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004124/0.09248, allocations: 346.5 kB / 357.1 MB, free: 13.15 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.109e-05/0.09251, allocations: 12.81 kB / 357.1 MB, free: 13.14 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.822e-05/0.09255, allocations: 24.12 kB / 357.1 MB, free: 13.11 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004503/0.09301, allocations: 289.5 kB / 357.4 MB, free: 12.79 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.333e-05/0.09303, allocations: 4 kB / 357.4 MB, free: 12.79 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.627e-05/0.09306, allocations: 4 kB / 357.4 MB, free: 12.79 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.727e-06/0.09308, allocations: 12 kB / 357.4 MB, free: 12.77 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000282/0.09337, allocations: 145.7 kB / 357.5 MB, free: 12.63 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.001251/0.09462, allocations: 0.8359 MB / 358.4 MB, free: 11.72 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003915/0.09503, allocations: 193.7 kB / 358.6 MB, free: 11.53 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001409/0.09518, allocations: 72.84 kB / 358.6 MB, free: 11.46 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.166e-05/0.09522, allocations: 11.98 kB / 358.6 MB, free: 11.45 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002808/0.09551, allocations: 139.2 kB / 358.8 MB, free: 11.3 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 1.743e-06/0.09552, allocations: 3.938 kB / 358.8 MB, free: 11.29 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008105/0.09634, allocations: 402.5 kB / 359.2 MB, free: 10.88 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001286/0.09648, allocations: 320.4 kB / 359.5 MB, free: 10.49 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004328/0.09692, allocations: 433.6 kB / 359.9 MB, free: 10.06 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.965e-05/0.09696, allocations: 37.64 kB / 360 MB, free: 10.02 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001387/0.0971, allocations: 196.3 kB / 360.1 MB, free: 9.82 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.044e-05/0.09718, allocations: 78.84 kB / 360.2 MB, free: 9.742 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.632e-05/0.09727, allocations: 57.7 kB / 360.3 MB, free: 9.68 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001188/0.0974, allocations: 346.8 kB / 360.6 MB, free: 9.332 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00014/0.09754, allocations: 67.97 kB / 360.7 MB, free: 9.266 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002185/0.09777, allocations: 175.9 kB / 360.9 MB, free: 9.051 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002753/0.09805, allocations: 167.4 kB / 361 MB, free: 8.875 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/0.09807, allocations: 3.938 kB / 361 MB, free: 8.871 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.000453/0.09852, allocations: 277.8 kB / 361.3 MB, free: 8.59 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.456e-05/0.09855, allocations: 7.281 kB / 361.3 MB, free: 8.586 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.09856, allocations: 0 / 361.3 MB, free: 8.586 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001184/0.09868, allocations: 40.88 kB / 361.3 MB, free: 8.543 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002074/0.0989, allocations: 47.97 kB / 361.4 MB, free: 8.496 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001405/0.1003, allocations: 1.582 MB / 363 MB, free: 6.766 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002084/0.1005, allocations: 27.88 kB / 363 MB, free: 6.738 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.656e-05/0.1006, allocations: 8 kB / 363 MB, free: 6.73 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.0001803/0.1007, allocations: 169.8 kB / 363.2 MB, free: 6.555 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.97e-05/0.1008, allocations: 39.53 kB / 363.2 MB, free: 6.516 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.191e-05/0.1009, allocations: 39.59 kB / 363.2 MB, free: 6.469 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.529e-06/0.1009, allocations: 7.938 kB / 363.3 MB, free: 6.461 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.633e-06/0.1009, allocations: 0 / 363.3 MB, free: 6.461 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005031/0.1014, allocations: 0.5827 MB / 363.8 MB, free: 5.773 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008667/0.1023, allocations: 0.7001 MB / 364.5 MB, free: 5.012 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.1023, allocations: 0 / 364.5 MB, free: 5.012 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002074/0.1025, allocations: 43.92 kB / 364.6 MB, free: 4.969 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.1025, allocations: 0 / 364.6 MB, free: 4.969 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.907e-05/0.1026, allocations: 7.984 kB / 364.6 MB, free: 4.961 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.367e-06/0.1026, allocations: 4 kB / 364.6 MB, free: 4.957 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.1026, allocations: 0 / 364.6 MB, free: 4.957 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005294/0.1031, allocations: 408.3 kB / 365 MB, free: 4.543 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001252/0.1033, allocations: 140.6 kB / 365.1 MB, free: 4.387 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.101e-05/0.1033, allocations: 8 kB / 365.1 MB, free: 4.379 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002358/0.1036, allocations: 12 kB / 365.1 MB, free: 4.367 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.08e-05/0.1036, allocations: 11.97 kB / 365.2 MB, free: 4.355 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.129e-05/0.1036, allocations: 11.94 kB / 365.2 MB, free: 4.344 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000294/0.1039, allocations: 311.1 kB / 365.5 MB, free: 4.043 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1039, allocations: 96 / 365.5 MB, free: 4.043 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003863/0.1043, allocations: 103.8 kB / 365.6 MB, free: 3.941 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.000934/0.1053, allocations: 411.4 kB / 366 MB, free: 3.688 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006182/0.1059, allocations: 325.2 kB / 366.3 MB, free: 3.359 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.1059, allocations: 0 / 366.3 MB, free: 3.359 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001625/0.1061, allocations: 91.84 kB / 366.4 MB, free: 3.27 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005982/0.1067, allocations: 105.5 kB / 366.5 MB, free: 3.164 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001485/0.1082, allocations: 0.8931 MB / 367.4 MB, free: 2.246 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003549/0.1086, allocations: 0.7921 MB / 368.2 MB, free: 1.426 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001806/0.1087, allocations: 46.94 kB / 368.2 MB, free: 1.379 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.113e-05/0.1088, allocations: 43.3 kB / 368.3 MB, free: 1.336 MB / 302.1 MB Notification: Performance of SimCode: time 7.01e-07/0.1088, allocations: 4 kB / 368.3 MB, free: 1.332 MB / 302.1 MB Notification: Performance of Templates: time 0.1422/0.251, allocations: 6.041 MB / 374.3 MB, free: 25.39 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