Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001195/0.001194, allocations: 105.5 kB / 18.4 MB, free: 4.703 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.001195/0.001195, allocations: 191 kB / 19.33 MB, free: 3.781 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.436/1.436, allocations: 205.1 MB / 225.2 MB, free: 12.22 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001498/0.001498, allocations: 43.94 kB / 329.2 MB, free: 3.332 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09768/0.09919, allocations: 46.62 MB / 375.8 MB, free: 4.598 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank): time 0.004882/0.1041, allocations: 2.848 MB / 378.6 MB, free: 1.734 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002213/0.1064, allocations: 1.177 MB / 379.8 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003301/0.1067, allocations: 4 kB / 379.8 MB, free: 0.543 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006361/0.1074, allocations: 187.1 kB / 380 MB, free: 368 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006288/0.1081, allocations: 206.8 kB / 380.2 MB, free: 160 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004629/0.1085, allocations: 143.6 kB / 380.4 MB, free: 16 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.2227/0.3313, allocations: 450.2 kB / 380.8 MB, free: 9.891 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003181/0.3317, allocations: 105.6 kB / 380.9 MB, free: 9.879 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003435/0.332, allocations: 181.7 kB / 381.1 MB, free: 9.859 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003524/0.3324, allocations: 212.4 kB / 381.3 MB, free: 9.816 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.959e-05/0.3325, allocations: 29.53 kB / 381.3 MB, free: 9.816 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002446/0.3327, allocations: 66.75 kB / 381.4 MB, free: 9.816 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001363/0.3329, allocations: 93.69 kB / 381.5 MB, free: 9.801 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002194/0.3331, allocations: 193.4 kB / 381.7 MB, free: 9.742 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007809/0.3339, allocations: 486.8 kB / 382.1 MB, free: 9.68 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.493e-06/0.3339, allocations: 0.5938 kB / 382.1 MB, free: 9.68 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.935e-06/0.3339, allocations: 0 / 382.1 MB, free: 9.68 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.878e-06/0.3339, allocations: 0.5 kB / 382.1 MB, free: 9.68 MB / 318.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.001387/0.3353, allocations: 0.6935 MB / 382.8 MB, free: 9.168 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.93e-05/0.3354, allocations: 9.406 kB / 382.8 MB, free: 9.168 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001482/0.3355, allocations: 47.75 kB / 382.9 MB, free: 9.145 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008758/0.3364, allocations: 349.5 kB / 383.2 MB, free: 8.895 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.169e-05/0.3365, allocations: 12.56 kB / 383.2 MB, free: 8.895 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.812e-05/0.3366, allocations: 20.31 kB / 383.3 MB, free: 8.895 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008356/0.3374, allocations: 300.8 kB / 383.5 MB, free: 8.766 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.297e-05/0.3374, allocations: 3.562 kB / 383.5 MB, free: 8.766 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.99e-05/0.3375, allocations: 9.344 kB / 383.6 MB, free: 8.766 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.4e-05/0.3375, allocations: 4.531 kB / 383.6 MB, free: 8.766 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003629/0.3379, allocations: 144.6 kB / 383.7 MB, free: 8.766 MB / 318.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.001858/0.3397, allocations: 0.8306 MB / 384.5 MB, free: 8.363 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004213/0.3402, allocations: 189.8 kB / 384.7 MB, free: 8.336 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001567/0.3403, allocations: 80.41 kB / 384.8 MB, free: 8.328 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.694e-05/0.3404, allocations: 10.42 kB / 384.8 MB, free: 8.324 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002516/0.3406, allocations: 138 kB / 384.9 MB, free: 8.27 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 2.244e-06/0.3407, allocations: 1.125 kB / 384.9 MB, free: 8.27 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008602/0.3415, allocations: 404.1 kB / 385.3 MB, free: 8.109 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000101/0.3416, allocations: 320.4 kB / 385.7 MB, free: 7.73 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004814/0.3421, allocations: 430.9 kB / 386.1 MB, free: 7.617 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.697e-05/0.3422, allocations: 32.86 kB / 386.1 MB, free: 7.586 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001266/0.3423, allocations: 204.6 kB / 386.3 MB, free: 7.48 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.142e-05/0.3424, allocations: 78.06 kB / 386.4 MB, free: 7.422 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.136e-05/0.3424, allocations: 58.25 kB / 386.4 MB, free: 7.387 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.859e-05/0.3425, allocations: 348.9 kB / 386.8 MB, free: 7.059 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001319/0.3427, allocations: 58.08 kB / 386.8 MB, free: 7.039 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001985/0.3429, allocations: 175.6 kB / 387 MB, free: 6.891 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000284/0.3432, allocations: 181.8 kB / 387.2 MB, free: 6.785 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.436e-06/0.3432, allocations: 0.6562 kB / 387.2 MB, free: 6.785 MB / 318.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004693/0.3437, allocations: 268.9 kB / 387.4 MB, free: 6.656 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.209e-05/0.3437, allocations: 9.172 kB / 387.5 MB, free: 6.656 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.254e-06/0.3437, allocations: 1.219 kB / 387.5 MB, free: 6.656 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001548/0.3439, allocations: 41.69 kB / 387.5 MB, free: 6.637 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002151/0.3441, allocations: 49.38 kB / 387.5 MB, free: 6.637 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001306/0.3454, allocations: 1.576 MB / 389.1 MB, free: 5.141 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00025/0.3457, allocations: 20.16 kB / 389.1 MB, free: 5.129 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.178e-05/0.3457, allocations: 7.391 kB / 389.2 MB, free: 5.129 MB / 318.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.0002069/0.3459, allocations: 170.2 kB / 389.3 MB, free: 4.988 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.917e-05/0.346, allocations: 40.09 kB / 389.4 MB, free: 4.969 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.113e-05/0.3461, allocations: 42.41 kB / 389.4 MB, free: 4.945 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.989e-06/0.3461, allocations: 6.25 kB / 389.4 MB, free: 4.941 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.093e-06/0.3461, allocations: 5.125 kB / 389.4 MB, free: 4.938 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004535/0.3466, allocations: 0.5799 MB / 390 MB, free: 4.355 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008689/0.3474, allocations: 0.7034 MB / 390.7 MB, free: 3.871 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.3475, allocations: 3.938 kB / 390.7 MB, free: 3.867 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001996/0.3477, allocations: 48.95 kB / 390.7 MB, free: 3.863 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.566e-06/0.3477, allocations: 1.719 kB / 390.7 MB, free: 3.863 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.757e-05/0.3477, allocations: 2.188 kB / 390.7 MB, free: 3.863 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.774e-06/0.3477, allocations: 5.125 kB / 390.8 MB, free: 3.859 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.3477, allocations: 1.875 kB / 390.8 MB, free: 3.859 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004988/0.3482, allocations: 410.1 kB / 391.2 MB, free: 3.613 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001262/0.3484, allocations: 140.6 kB / 391.3 MB, free: 3.48 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.518e-05/0.3484, allocations: 7.125 kB / 391.3 MB, free: 3.477 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001985/0.3486, allocations: 12.45 kB / 391.3 MB, free: 3.473 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.869e-05/0.3487, allocations: 12.28 kB / 391.3 MB, free: 3.473 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.679e-05/0.3487, allocations: 17.48 kB / 391.3 MB, free: 3.465 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003298/0.349, allocations: 311.8 kB / 391.6 MB, free: 3.316 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.349, allocations: 0 / 391.6 MB, free: 3.316 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004059/0.3495, allocations: 85.55 kB / 391.7 MB, free: 3.309 MB / 318.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.0009151/0.3504, allocations: 415.5 kB / 392.1 MB, free: 2.992 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0006151/0.351, allocations: 322.5 kB / 392.4 MB, free: 2.809 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.457e-06/0.351, allocations: 0 / 392.4 MB, free: 2.809 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001603/0.3512, allocations: 81.23 kB / 392.5 MB, free: 2.789 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006114/0.3518, allocations: 120.2 kB / 392.6 MB, free: 2.73 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001477/0.3533, allocations: 0.8177 MB / 393.5 MB, free: 2.246 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002793/0.3536, allocations: 0.7966 MB / 394.3 MB, free: 1.543 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.709e-05/0.3537, allocations: 32.94 kB / 394.3 MB, free: 1.539 MB / 318.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3537, allocations: 0 / 394.3 MB, free: 1.539 MB / 318.1 MB Notification: Performance of Templates: time 0.01099/0.3647, allocations: 5.89 MB / 400.2 MB, free: 404 kB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.makefile (rm -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.sim & ./Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/FluidHeatFlow/Examples/TestOpenTank/TestOpenTank.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches