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: translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|openTank.H|openTank.m",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001434/0.001434, allocations: 113 kB / 18.45 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001985/0.001985, allocations: 208.9 kB / 19.4 MB, free: 3.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.47/1.47, allocations: 227.4 MB / 247.6 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001287/0.001287, allocations: 59.91 kB / 359.4 MB, free: 12.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2588/0.2601, allocations: 50.54 MB / 409.9 MB, free: 1.641 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank): time 0.005938/0.2661, allocations: 2.865 MB / 412.8 MB, free: 14.77 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003266/0.2694, allocations: 1.398 MB / 414.2 MB, free: 13.36 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003052/0.2697, allocations: 7.938 kB / 414.2 MB, free: 13.35 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007335/0.2705, allocations: 183.1 kB / 414.4 MB, free: 13.17 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009243/0.2714, allocations: 242.6 kB / 414.6 MB, free: 12.93 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005208/0.272, allocations: 135.6 kB / 414.7 MB, free: 12.8 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008595/0.2728, allocations: 465.8 kB / 415.2 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002825/0.2731, allocations: 107.8 kB / 415.3 MB, free: 12.23 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003899/0.2735, allocations: 187.3 kB / 415.5 MB, free: 12.05 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004478/0.274, allocations: 207.1 kB / 415.7 MB, free: 11.85 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.646e-05/0.2741, allocations: 28 kB / 415.7 MB, free: 11.82 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002378/0.2744, allocations: 71.98 kB / 415.8 MB, free: 11.75 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001382/0.2745, allocations: 87.67 kB / 415.9 MB, free: 11.66 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003151/0.2749, allocations: 195 kB / 416.1 MB, free: 11.47 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008535/0.2757, allocations: 499.5 kB / 416.5 MB, free: 10.98 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.2757, allocations: 0 / 416.5 MB, free: 10.98 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.2758, allocations: 0 / 416.5 MB, free: 10.98 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.857e-05/0.2758, allocations: 0 / 416.5 MB, free: 10.98 MB / 334.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.001671/0.2775, allocations: 0.7008 MB / 417.2 MB, free: 10.23 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.763e-05/0.2775, allocations: 8.031 kB / 417.2 MB, free: 10.23 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001711/0.2777, allocations: 52.38 kB / 417.3 MB, free: 10.18 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000796/0.2785, allocations: 346.6 kB / 417.6 MB, free: 9.797 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.203e-05/0.2786, allocations: 16.81 kB / 417.7 MB, free: 9.781 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.291e-05/0.2787, allocations: 24.12 kB / 417.7 MB, free: 9.758 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006827/0.2793, allocations: 301.4 kB / 418 MB, free: 9.426 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.056e-05/0.2794, allocations: 0 / 418 MB, free: 9.426 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.906e-05/0.2794, allocations: 8 kB / 418 MB, free: 9.418 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.065e-05/0.2794, allocations: 4 kB / 418 MB, free: 9.414 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000426/0.2799, allocations: 149.6 kB / 418.1 MB, free: 9.266 MB / 334.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.001955/0.2819, allocations: 0.8166 MB / 418.9 MB, free: 8.379 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005994/0.2825, allocations: 198.5 kB / 419.1 MB, free: 8.18 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002365/0.2827, allocations: 76.83 kB / 419.2 MB, free: 8.102 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.838e-05/0.2828, allocations: 4 kB / 419.2 MB, free: 8.098 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004144/0.2832, allocations: 139.3 kB / 419.4 MB, free: 7.949 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 2.355e-06/0.2832, allocations: 0 / 419.4 MB, free: 7.949 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.001242/0.2845, allocations: 404.3 kB / 419.8 MB, free: 7.527 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002003/0.2847, allocations: 312.4 kB / 420.1 MB, free: 7.148 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007242/0.2854, allocations: 441.6 kB / 420.5 MB, free: 6.703 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.416e-05/0.2855, allocations: 33.7 kB / 420.5 MB, free: 6.664 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002306/0.2857, allocations: 208.2 kB / 420.7 MB, free: 6.453 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001028/0.2858, allocations: 86.83 kB / 420.8 MB, free: 6.367 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001422/0.286, allocations: 57.7 kB / 420.9 MB, free: 6.305 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001854/0.2862, allocations: 346.8 kB / 421.2 MB, free: 5.957 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002119/0.2864, allocations: 63.97 kB / 421.3 MB, free: 5.895 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003595/0.2868, allocations: 183.9 kB / 421.4 MB, free: 5.672 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004629/0.2873, allocations: 167.3 kB / 421.6 MB, free: 5.496 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.641e-06/0.2873, allocations: 7.938 kB / 421.6 MB, free: 5.488 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.000788/0.2881, allocations: 273.9 kB / 421.9 MB, free: 5.211 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.716e-05/0.2881, allocations: 4 kB / 421.9 MB, free: 5.207 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.246e-05/0.2882, allocations: 4 kB / 421.9 MB, free: 5.203 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002039/0.2884, allocations: 32.84 kB / 421.9 MB, free: 5.168 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003026/0.2887, allocations: 51.91 kB / 422 MB, free: 5.117 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002079/0.2908, allocations: 1.563 MB / 423.5 MB, free: 3.41 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003459/0.2911, allocations: 31.78 kB / 423.6 MB, free: 3.379 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.71e-05/0.2912, allocations: 15.94 kB / 423.6 MB, free: 3.363 MB / 334.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.000303/0.2915, allocations: 172.2 kB / 423.8 MB, free: 3.188 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.708e-05/0.2916, allocations: 39.53 kB / 423.8 MB, free: 3.148 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001035/0.2917, allocations: 51.59 kB / 423.8 MB, free: 3.098 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.139e-06/0.2917, allocations: 3.938 kB / 423.8 MB, free: 3.094 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.2917, allocations: 0 / 423.8 MB, free: 3.094 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007108/0.2924, allocations: 0.5827 MB / 424.4 MB, free: 2.406 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001261/0.2937, allocations: 0.703 MB / 425.1 MB, free: 1.645 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.377e-06/0.2937, allocations: 0 / 425.1 MB, free: 1.645 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002849/0.294, allocations: 47.91 kB / 425.2 MB, free: 1.598 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.885e-06/0.294, allocations: 4 kB / 425.2 MB, free: 1.594 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.233e-05/0.2941, allocations: 4 kB / 425.2 MB, free: 1.59 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.2941, allocations: 0 / 425.2 MB, free: 1.59 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.2941, allocations: 0 / 425.2 MB, free: 1.59 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008012/0.2949, allocations: 406.7 kB / 425.6 MB, free: 1.176 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001911/0.2951, allocations: 148.5 kB / 425.7 MB, free: 1.012 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.176e-05/0.2952, allocations: 8 kB / 425.7 MB, free: 1.004 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000312/0.2955, allocations: 11.98 kB / 425.7 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.49e-05/0.2956, allocations: 15.84 kB / 425.8 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.733e-05/0.2956, allocations: 8 kB / 425.8 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005032/0.2962, allocations: 323.1 kB / 426.1 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.2962, allocations: 0 / 426.1 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006918/0.2969, allocations: 103.9 kB / 426.2 MB, free: 0.5586 MB / 334.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.001407/0.2983, allocations: 419 kB / 426.6 MB, free: 292 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008803/0.2992, allocations: 308.2 kB / 426.9 MB, free: 15.97 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.844e-06/0.2992, allocations: 4 kB / 426.9 MB, free: 15.96 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002389/0.2995, allocations: 88.03 kB / 427 MB, free: 15.88 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008857/0.3004, allocations: 105.4 kB / 427.1 MB, free: 15.77 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002071/0.3025, allocations: 0.817 MB / 427.9 MB, free: 14.92 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005448/0.303, allocations: 0.7999 MB / 428.7 MB, free: 14.09 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001172/0.3031, allocations: 31.44 kB / 428.7 MB, free: 14.06 MB / 350.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3032, allocations: 4 kB / 428.7 MB, free: 14.05 MB / 350.1 MB Notification: Performance of Templates: time 0.01151/0.3147, allocations: 5.915 MB / 434.7 MB, free: 8.172 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.makefile (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 & ./Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches