Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Media.Examples.WaterIF97,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|V|medium.h|medium.p",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.WaterIF97") translateModel(Modelica.Media.Examples.WaterIF97,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|V|medium.h|medium.p",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.WaterIF97") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008938/0.0008938, allocations: 183.1 kB / 16.71 MB, free: 4.969 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.2/1.2, allocations: 225.7 MB / 243.2 MB, free: 10.24 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007807/0.0007805, allocations: 94.25 kB / 294.4 MB, free: 9.742 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002332/0.0002332, allocations: 11.94 kB / 354.1 MB, free: 13.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2238/0.224, allocations: 50.41 MB / 404.6 MB, free: 31.37 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01027/0.2344, allocations: 15.53 MB / 420.1 MB, free: 15.14 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01047/0.2449, allocations: 17.17 MB / 437.3 MB, free: 12.65 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.854e-05/0.245, allocations: 0 / 437.3 MB, free: 12.65 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002863/0.2453, allocations: 71.67 kB / 437.3 MB, free: 12.58 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002262/0.2455, allocations: 83.48 kB / 437.4 MB, free: 12.5 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009548/0.2551, allocations: 4 MB / 441.4 MB, free: 8.484 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003229/0.2554, allocations: 266.9 kB / 441.7 MB, free: 8.223 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.529e-05/0.2555, allocations: 13.44 kB / 441.7 MB, free: 8.207 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003738/0.2559, allocations: 195.3 kB / 441.9 MB, free: 8.016 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001073/0.256, allocations: 79.62 kB / 442 MB, free: 7.938 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 1.676e-05/0.256, allocations: 4 kB / 442 MB, free: 7.934 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01022/0.2662, allocations: 6.65 MB / 448.6 MB, free: 1.277 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 6.414e-05/0.2663, allocations: 23.91 kB / 448.6 MB, free: 1.254 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001045/0.2664, allocations: 101.3 kB / 448.7 MB, free: 1.148 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006379/0.2728, allocations: 3.859 MB / 452.6 MB, free: 13.28 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.2728, allocations: 0 / 452.6 MB, free: 13.28 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.303e-06/0.2728, allocations: 4 kB / 452.6 MB, free: 13.28 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.338e-06/0.2728, allocations: 0 / 452.6 MB, free: 13.28 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.003986/0.2768, allocations: 1.105 MB / 453.7 MB, free: 12.12 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.281e-05/0.2769, allocations: 8.031 kB / 453.7 MB, free: 12.12 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004205/0.2773, allocations: 56.7 kB / 453.8 MB, free: 12.06 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002257/0.2775, allocations: 224.1 kB / 454 MB, free: 11.8 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.456e-05/0.2776, allocations: 8.375 kB / 454 MB, free: 11.79 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.894e-05/0.2776, allocations: 20.28 kB / 454 MB, free: 11.77 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001151/0.2788, allocations: 392 kB / 454.4 MB, free: 11.36 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.355e-05/0.2788, allocations: 0 / 454.4 MB, free: 11.36 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.037e-05/0.2788, allocations: 4 kB / 454.4 MB, free: 11.36 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.931e-06/0.2789, allocations: 8 kB / 454.4 MB, free: 11.35 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001287/0.2802, allocations: 371.5 kB / 454.8 MB, free: 10.98 MB / 330.7 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.001259/0.2814, allocations: 1.188 MB / 456 MB, free: 9.695 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007547/0.2822, allocations: 291.7 kB / 456.2 MB, free: 9.383 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002572/0.2825, allocations: 122.9 kB / 456.4 MB, free: 9.254 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08551/0.368, allocations: 47.87 MB / 0.4924 GB, free: 3.762 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.543e-05/0.368, allocations: 42.55 kB / 0.4925 GB, free: 3.711 MB / 378.7 MB Notification: Performance of pre-optimization done (n=23): time 1.994e-06/0.3681, allocations: 0 / 0.4925 GB, free: 3.711 MB / 378.7 MB Notification: Performance of matching and sorting (n=33): time 0.006454/0.3745, allocations: 1.618 MB / 0.494 GB, free: 2.039 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.772e-05/0.3746, allocations: 106.8 kB / 0.4941 GB, free: 1.91 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.274e-05/0.3747, allocations: 133.8 kB / 0.4943 GB, free: 1.77 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.86e-05/0.3747, allocations: 29.7 kB / 0.4943 GB, free: 1.734 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.296e-05/0.3748, allocations: 104.5 kB / 0.4944 GB, free: 1.629 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.971e-05/0.3749, allocations: 114.3 kB / 0.4945 GB, free: 1.516 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.999e-05/0.3749, allocations: 8 kB / 0.4945 GB, free: 1.508 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.976e-05/0.375, allocations: 330.8 kB / 0.4948 GB, free: 1.176 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003706/0.3754, allocations: 131.9 kB / 0.495 GB, free: 1.047 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003898/0.3758, allocations: 206.7 kB / 0.4952 GB, free: 0.8203 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007348/0.3765, allocations: 351.6 kB / 0.4955 GB, free: 464 kB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.3765, allocations: 0 / 0.4955 GB, free: 464 kB / 378.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001023/0.3776, allocations: 438 kB / 0.4959 GB, free: 16 kB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.685e-05/0.3776, allocations: 4 kB / 0.4959 GB, free: 12 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/0.3776, allocations: 4 kB / 0.4959 GB, free: 8 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1479/0.5255, allocations: 29.67 kB / 0.4959 GB, free: 103.3 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005392/0.5261, allocations: 94.48 kB / 0.496 GB, free: 103.3 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002917/0.5264, allocations: 0.5473 MB / 0.4966 GB, free: 102.8 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003268/0.5268, allocations: 28.89 kB / 0.4966 GB, free: 102.8 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.412e-05/0.5268, allocations: 15.91 kB / 0.4966 GB, free: 102.8 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 3 (medium.phase,state.phase,state2.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 39 * 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 {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001381/0.527, allocations: 145.8 kB / 0.4967 GB, free: 102.7 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.166e-05/0.5271, allocations: 14.47 kB / 0.4968 GB, free: 102.7 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002239/0.5293, allocations: 1.458 MB / 0.4982 GB, free: 102.3 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.158e-05/0.5293, allocations: 20.58 kB / 0.4982 GB, free: 102.3 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.5293, allocations: 3.781 kB / 0.4982 GB, free: 102.3 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.063e-06/0.5294, allocations: 2.688 kB / 0.4982 GB, free: 102.3 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002318/0.5317, allocations: 1.992 MB / 0.5002 GB, free: 101.3 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.893e-06/0.5317, allocations: 3.969 kB / 0.5002 GB, free: 101.3 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004004/0.5321, allocations: 84.06 kB / 0.5002 GB, free: 101.3 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003293/0.5325, allocations: 74.83 kB / 0.5003 GB, free: 101.3 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.513e-05/0.5325, allocations: 15.48 kB / 0.5003 GB, free: 101.3 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000252/0.5328, allocations: 0.5867 MB / 0.5009 GB, free: 100.7 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.476e-06/0.5328, allocations: 13.33 kB / 0.5009 GB, free: 100.7 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001918/0.5347, allocations: 1.688 MB / 0.5026 GB, free: 99.81 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.97e-05/0.5348, allocations: 128.2 kB / 0.5027 GB, free: 99.68 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.48e-05/0.5348, allocations: 17 kB / 0.5027 GB, free: 99.67 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003525/0.5352, allocations: 25.53 kB / 0.5027 GB, free: 99.66 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.422e-05/0.5353, allocations: 39.03 kB / 0.5028 GB, free: 99.66 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.257e-05/0.5353, allocations: 22.75 kB / 0.5028 GB, free: 99.65 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.452e-05/0.5353, allocations: 87.53 kB / 0.5029 GB, free: 99.57 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5353, allocations: 0 / 0.5029 GB, free: 99.57 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002458/0.5378, allocations: 0.9559 MB / 0.5038 GB, free: 99.51 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (medium.p,medium.h,V) * Number of discrete variables: 11 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.region3boundary,$cse6.region3boundary,medium.phase,$cse1.phase,$cse1.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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 {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004403/0.5422, allocations: 1.137 MB / 0.5049 GB, free: 99.34 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001048/0.5433, allocations: 0.6086 MB / 0.5055 GB, free: 99.13 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.836e-06/0.5433, allocations: 0 / 0.5055 GB, free: 99.13 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006351/0.5439, allocations: 0.5134 MB / 0.506 GB, free: 98.91 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007004/0.5446, allocations: 81.23 kB / 0.5061 GB, free: 98.89 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001911/0.5466, allocations: 1.576 MB / 0.5076 GB, free: 97.82 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001893/0.5468, allocations: 0.817 MB / 0.5084 GB, free: 97 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003537/0.5471, allocations: 133.8 kB / 0.5085 GB, free: 96.86 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001255/0.5473, allocations: 35.42 kB / 0.5086 GB, free: 96.83 MB / 378.7 MB Notification: Performance of SimCode: time 2.31e-07/0.5473, allocations: 3.938 kB / 0.5086 GB, free: 96.82 MB / 378.7 MB Notification: Performance of Templates: time 0.03464/0.5819, allocations: 35.91 MB / 0.5437 GB, free: 60.96 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.makefile (rm -f Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.sim & ./Modelica_4.0.0_Modelica.Media.Examples.WaterIF97 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.WaterIF97_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/WaterIF97/WaterIF97.csv","../files/Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches