Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.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.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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001579/0.001579, allocations: 104.3 kB / 17.06 MB, free: 6.102 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.00194/0.001941, allocations: 196.1 kB / 18 MB, free: 5.176 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.368/1.368, allocations: 222.9 MB / 241.7 MB, free: 15.06 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001091/0.001091, allocations: 47.94 kB / 351.3 MB, free: 3.242 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2284/0.2295, allocations: 49.42 MB / 400.7 MB, free: 8.719 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.0158/0.2453, allocations: 12.91 MB / 413.6 MB, free: 11.89 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01273/0.2581, allocations: 11.53 MB / 425.1 MB, free: 320 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001162/0.2582, allocations: 0 / 425.1 MB, free: 320 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003104/0.2585, allocations: 79.55 kB / 425.2 MB, free: 240 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003036/0.2589, allocations: 83.42 kB / 425.3 MB, free: 156 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01267/0.2716, allocations: 5.082 MB / 430.4 MB, free: 11.08 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003522/0.2719, allocations: 230.9 kB / 430.6 MB, free: 10.85 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.289e-05/0.272, allocations: 9.453 kB / 430.6 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004749/0.2725, allocations: 195.3 kB / 430.8 MB, free: 10.65 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001396/0.2726, allocations: 75.69 kB / 430.9 MB, free: 10.57 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.218e-05/0.2727, allocations: 8 kB / 430.9 MB, free: 10.57 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0126/0.2853, allocations: 6.997 MB / 437.9 MB, free: 3.562 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.889e-05/0.2854, allocations: 27.91 kB / 437.9 MB, free: 3.535 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001126/0.2855, allocations: 67.73 kB / 438 MB, free: 3.469 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007749/0.2932, allocations: 3.856 MB / 441.8 MB, free: 15.61 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.2933, allocations: 4 kB / 441.8 MB, free: 15.6 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.2933, allocations: 0 / 441.8 MB, free: 15.6 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.346e-06/0.2933, allocations: 0 / 441.8 MB, free: 15.6 MB / 366.1 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.004756/0.2981, allocations: 1.143 MB / 443 MB, free: 14.41 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.583e-05/0.2981, allocations: 16.03 kB / 443 MB, free: 14.39 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005298/0.2986, allocations: 48.7 kB / 443.1 MB, free: 14.35 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003192/0.299, allocations: 216.2 kB / 443.3 MB, free: 14.1 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.27e-05/0.299, allocations: 16.64 kB / 443.3 MB, free: 14.08 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.172e-05/0.2991, allocations: 16.38 kB / 443.3 MB, free: 14.07 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001364/0.3004, allocations: 384.8 kB / 443.7 MB, free: 13.66 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.79e-05/0.3005, allocations: 11.91 kB / 443.7 MB, free: 13.65 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.012e-05/0.3005, allocations: 8 kB / 443.7 MB, free: 13.64 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.853e-06/0.3005, allocations: 7.938 kB / 443.7 MB, free: 13.63 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001504/0.302, allocations: 351.5 kB / 444 MB, free: 13.29 MB / 366.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.001375/0.3034, allocations: 1.184 MB / 445.2 MB, free: 12 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008982/0.3043, allocations: 275.7 kB / 445.5 MB, free: 11.71 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002976/0.3047, allocations: 116.2 kB / 445.6 MB, free: 11.59 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1011/0.4058, allocations: 47.65 MB / 493.3 MB, free: 6.324 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.831e-05/0.4058, allocations: 38.56 kB / 493.3 MB, free: 6.277 MB / 414.1 MB Notification: Performance of pre-optimization done (n=23): time 2.465e-06/0.4059, allocations: 0 / 493.3 MB, free: 6.277 MB / 414.1 MB Notification: Performance of matching and sorting (n=33): time 0.007305/0.4132, allocations: 1.597 MB / 494.9 MB, free: 4.625 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.737e-05/0.4132, allocations: 106.8 kB / 495 MB, free: 4.496 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.777e-05/0.4133, allocations: 117.8 kB / 495.1 MB, free: 4.371 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.047e-05/0.4134, allocations: 33.7 kB / 495.1 MB, free: 4.332 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.054e-05/0.4135, allocations: 108.5 kB / 495.2 MB, free: 4.223 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.868e-05/0.4136, allocations: 114.3 kB / 495.4 MB, free: 4.109 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000116/0.4137, allocations: 73.47 kB / 495.4 MB, free: 4.031 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.844e-05/0.4138, allocations: 326.8 kB / 495.7 MB, free: 3.703 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004039/0.4142, allocations: 131.9 kB / 495.9 MB, free: 3.574 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004349/0.4146, allocations: 198.6 kB / 496.1 MB, free: 3.355 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000867/0.4155, allocations: 350.5 kB / 496.4 MB, free: 2.988 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.4155, allocations: 3.938 kB / 496.4 MB, free: 2.984 MB / 414.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.00113/0.4167, allocations: 430.1 kB / 496.8 MB, free: 2.555 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.625e-05/0.4167, allocations: 8 kB / 496.8 MB, free: 2.547 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.544e-06/0.4167, allocations: 4 kB / 496.8 MB, free: 2.543 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002266/0.4169, allocations: 36.83 kB / 496.9 MB, free: 2.504 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004817/0.4174, allocations: 91.88 kB / 497 MB, free: 2.414 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000352/0.4178, allocations: 0.5484 MB / 497.5 MB, free: 1.84 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003033/0.4181, allocations: 19.89 kB / 497.5 MB, free: 1.82 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.739e-05/0.4182, allocations: 19.98 kB / 497.6 MB, free: 1.801 MB / 414.1 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.0001474/0.4183, allocations: 140.7 kB / 497.7 MB, free: 1.656 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001056/0.4184, allocations: 11.91 kB / 497.7 MB, free: 1.645 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002136/0.4206, allocations: 1.457 MB / 499.2 MB, free: 180 kB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.933e-05/0.4206, allocations: 19.97 kB / 499.2 MB, free: 160 kB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/0.4206, allocations: 0 / 499.2 MB, free: 160 kB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.555e-06/0.4206, allocations: 0 / 499.2 MB, free: 160 kB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002954/0.4236, allocations: 1.991 MB / 0.4894 GB, free: 14.09 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.965e-06/0.4236, allocations: 3.984 kB / 0.4894 GB, free: 14.09 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004646/0.4241, allocations: 79.88 kB / 0.4895 GB, free: 14.01 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003071/0.4244, allocations: 68.92 kB / 0.4896 GB, free: 13.94 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.544e-05/0.4245, allocations: 15.98 kB / 0.4896 GB, free: 13.93 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003474/0.4248, allocations: 0.5874 MB / 0.4902 GB, free: 13.31 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.061e-06/0.4248, allocations: 7.969 kB / 0.4902 GB, free: 13.3 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002206/0.427, allocations: 1.682 MB / 0.4918 GB, free: 11.59 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.248e-05/0.4272, allocations: 132.4 kB / 0.4919 GB, free: 11.44 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.334e-05/0.4272, allocations: 12.03 kB / 0.492 GB, free: 11.43 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00039/0.4276, allocations: 23.92 kB / 0.492 GB, free: 11.41 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.979e-05/0.4277, allocations: 35.89 kB / 0.492 GB, free: 11.37 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.274e-05/0.4277, allocations: 16.38 kB / 0.492 GB, free: 11.36 MB / 430.1 MB Notification: Performance of sorting global known variables: time 5.731e-05/0.4278, allocations: 95.2 kB / 0.4921 GB, free: 11.26 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4278, allocations: 0 / 0.4921 GB, free: 11.26 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002448/0.4303, allocations: 0.9566 MB / 0.4931 GB, free: 10.3 MB / 430.1 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.004261/0.4345, allocations: 1.134 MB / 0.4942 GB, free: 9.16 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001435/0.436, allocations: 0.6163 MB / 0.4948 GB, free: 8.543 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.436, allocations: 0 / 0.4948 GB, free: 8.543 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008357/0.4368, allocations: 0.5132 MB / 0.4953 GB, free: 8.031 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008885/0.4377, allocations: 75.8 kB / 0.4953 GB, free: 7.961 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002365/0.4401, allocations: 1.311 MB / 0.4966 GB, free: 6.609 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003386/0.4405, allocations: 0.8216 MB / 0.4974 GB, free: 5.762 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003785/0.4409, allocations: 141.7 kB / 0.4976 GB, free: 5.625 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000135/0.441, allocations: 31.42 kB / 0.4976 GB, free: 5.594 MB / 430.1 MB Notification: Performance of SimCode: time 3.31e-07/0.441, allocations: 0 / 0.4976 GB, free: 5.594 MB / 430.1 MB Notification: Performance of Templates: time 0.05038/0.4914, allocations: 36.25 MB / 0.533 GB, free: 1.324 MB / 462.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches