Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Media.Examples.WaterIF97.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.Media.Examples.WaterIF97,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|V|medium.h|medium.p",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Media.Examples.WaterIF97") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001166/0.001166, allocations: 113.7 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001244/0.001244, allocations: 206.8 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.363/1.363, allocations: 227.4 MB / 247.6 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002149/0.002149, allocations: 55.91 kB / 359.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2713/0.2735, allocations: 50.55 MB / 409.9 MB, free: 1.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01478/0.2883, allocations: 13.01 MB / 422.9 MB, free: 4.516 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01245/0.3008, allocations: 11.54 MB / 434.4 MB, free: 8.938 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001293/0.301, allocations: 3.938 kB / 434.5 MB, free: 8.934 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003331/0.3013, allocations: 71.55 kB / 434.5 MB, free: 8.863 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000301/0.3017, allocations: 87.42 kB / 434.6 MB, free: 8.777 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01317/0.3149, allocations: 5.083 MB / 439.7 MB, free: 3.699 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003781/0.3153, allocations: 226.9 kB / 439.9 MB, free: 3.477 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.849e-05/0.3153, allocations: 17.42 kB / 439.9 MB, free: 3.457 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004381/0.3158, allocations: 199.3 kB / 440.1 MB, free: 3.262 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001169/0.3159, allocations: 75.69 kB / 440.2 MB, free: 3.188 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.737e-05/0.3159, allocations: 8 kB / 440.2 MB, free: 3.18 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01285/0.3288, allocations: 6.989 MB / 447.2 MB, free: 12.18 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001283/0.329, allocations: 23.92 kB / 447.2 MB, free: 12.16 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001538/0.3291, allocations: 71.72 kB / 447.3 MB, free: 12.09 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01443/0.3436, allocations: 3.868 MB / 451.2 MB, free: 8.215 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.075e-05/0.3437, allocations: 0 / 451.2 MB, free: 8.215 MB / 366.1 MB Notification: Performance of FrontEnd: time 5.249e-06/0.3437, allocations: 0 / 451.2 MB, free: 8.215 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.077e-05/0.3437, allocations: 0 / 451.2 MB, free: 8.215 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.008935/0.3527, allocations: 1.151 MB / 452.3 MB, free: 7.016 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.456e-05/0.3528, allocations: 8.031 kB / 452.3 MB, free: 7.008 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009713/0.3538, allocations: 52.7 kB / 452.4 MB, free: 6.957 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000692/0.3545, allocations: 220.2 kB / 452.6 MB, free: 6.703 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.035e-05/0.3546, allocations: 12.59 kB / 452.6 MB, free: 6.691 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001313/0.3548, allocations: 28.27 kB / 452.6 MB, free: 6.664 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003086/0.3579, allocations: 380.9 kB / 453 MB, free: 6.262 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.974e-05/0.3579, allocations: 3.938 kB / 453 MB, free: 6.258 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.726e-05/0.358, allocations: 8 kB / 453 MB, free: 6.25 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.893e-05/0.3581, allocations: 7.984 kB / 453 MB, free: 6.242 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003409/0.3615, allocations: 351.6 kB / 453.4 MB, free: 5.898 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.003212/0.3648, allocations: 1.191 MB / 454.5 MB, free: 4.605 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001471/0.3663, allocations: 279.8 kB / 454.8 MB, free: 4.305 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004324/0.3667, allocations: 106.9 kB / 454.9 MB, free: 4.191 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.18/0.5468, allocations: 52.81 MB / 0.4958 GB, free: 8.73 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.551e-05/0.5469, allocations: 42.55 kB / 0.4959 GB, free: 8.68 MB / 430.1 MB Notification: Performance of pre-optimization done (n=23): time 4.107e-06/0.5469, allocations: 0 / 0.4959 GB, free: 8.68 MB / 430.1 MB Notification: Performance of matching and sorting (n=33): time 0.01236/0.5593, allocations: 1.575 MB / 0.4974 GB, free: 7.051 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.287e-05/0.5595, allocations: 110.8 kB / 0.4975 GB, free: 6.918 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001784/0.5597, allocations: 125.7 kB / 0.4976 GB, free: 6.785 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 5.348e-05/0.5597, allocations: 33.7 kB / 0.4977 GB, free: 6.746 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001011/0.5598, allocations: 100.5 kB / 0.4978 GB, free: 6.645 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001553/0.56, allocations: 114.4 kB / 0.4979 GB, free: 6.531 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002209/0.5603, allocations: 69.59 kB / 0.4979 GB, free: 6.457 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001734/0.5605, allocations: 334.8 kB / 0.4983 GB, free: 6.121 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007303/0.5612, allocations: 131.7 kB / 0.4984 GB, free: 5.992 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000844/0.5621, allocations: 194.8 kB / 0.4986 GB, free: 5.777 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001607/0.5637, allocations: 354.5 kB / 0.4989 GB, free: 5.406 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/0.5637, allocations: 0 / 0.4989 GB, free: 5.406 MB / 430.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.002202/0.5659, allocations: 422 kB / 0.4993 GB, free: 4.984 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.081e-05/0.566, allocations: 16.14 kB / 0.4993 GB, free: 4.969 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.612e-05/0.566, allocations: 4 kB / 0.4993 GB, free: 4.965 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000435/0.5665, allocations: 36.84 kB / 0.4994 GB, free: 4.926 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008621/0.5674, allocations: 87.88 kB / 0.4995 GB, free: 4.84 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000596/0.568, allocations: 0.5561 MB / 0.5 GB, free: 4.258 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004759/0.5685, allocations: 15.98 kB / 0.5 GB, free: 4.242 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.344e-05/0.5686, allocations: 19.98 kB / 0.5 GB, free: 4.223 MB / 430.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.0002552/0.5688, allocations: 141.7 kB / 0.5002 GB, free: 4.074 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001973/0.569, allocations: 15.91 kB / 0.5002 GB, free: 4.059 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004133/0.5732, allocations: 1.449 MB / 0.5016 GB, free: 2.598 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.138e-05/0.5733, allocations: 20.34 kB / 0.5016 GB, free: 2.578 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.077e-05/0.5733, allocations: 0 / 0.5016 GB, free: 2.578 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.592e-05/0.5733, allocations: 3.984 kB / 0.5016 GB, free: 2.574 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005815/0.5792, allocations: 1.975 MB / 0.5035 GB, free: 0.5273 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.005e-05/0.5792, allocations: 3.938 kB / 0.5036 GB, free: 0.5234 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009064/0.5802, allocations: 83.86 kB / 0.5036 GB, free: 452 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006533/0.5809, allocations: 76.83 kB / 0.5037 GB, free: 372 kB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.733e-05/0.5809, allocations: 11.98 kB / 0.5037 GB, free: 360 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006166/0.5816, allocations: 0.5874 MB / 0.5043 GB, free: 15.74 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.448e-06/0.5816, allocations: 0 / 0.5043 GB, free: 15.74 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004295/0.5859, allocations: 1.698 MB / 0.5059 GB, free: 14.01 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000199/0.5862, allocations: 124.5 kB / 0.5061 GB, free: 13.87 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.678e-05/0.5863, allocations: 15.98 kB / 0.5061 GB, free: 13.86 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006933/0.587, allocations: 27.95 kB / 0.5061 GB, free: 13.83 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001216/0.5871, allocations: 27.97 kB / 0.5061 GB, free: 13.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.57e-05/0.5872, allocations: 19.98 kB / 0.5062 GB, free: 13.78 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001061/0.5873, allocations: 95.2 kB / 0.5062 GB, free: 13.69 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.5874, allocations: 0 / 0.5062 GB, free: 13.69 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004886/0.5923, allocations: 0.9644 MB / 0.5072 GB, free: 12.72 MB / 446.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.007933/0.6003, allocations: 1.129 MB / 0.5083 GB, free: 11.59 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002306/0.6026, allocations: 0.6125 MB / 0.5089 GB, free: 10.97 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.142e-06/0.6027, allocations: 0 / 0.5089 GB, free: 10.97 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001289/0.604, allocations: 0.5209 MB / 0.5094 GB, free: 10.45 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001466/0.6055, allocations: 80.02 kB / 0.5095 GB, free: 10.38 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004064/0.6096, allocations: 1.324 MB / 0.5108 GB, free: 9 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005394/0.6102, allocations: 0.8254 MB / 0.5116 GB, free: 8.148 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002615/0.6104, allocations: 39.42 kB / 0.5116 GB, free: 8.109 MB / 446.1 MB Notification: Performance of SimCode: time 8.52e-07/0.6105, allocations: 0 / 0.5116 GB, free: 8.109 MB / 446.1 MB Notification: Performance of Templates: time 0.07882/0.6893, allocations: 21.92 MB / 0.533 GB, free: 2.164 MB / 462.1 MB make -j1 -f Modelica_trunk_Modelica.Media.Examples.WaterIF97.makefile (rm -f Modelica_trunk_Modelica.Media.Examples.WaterIF97.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.WaterIF97.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.WaterIF97.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.WaterIF97.sim & ./Modelica_trunk_Modelica.Media.Examples.WaterIF97 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Media.Examples.WaterIF97.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Media.Examples.WaterIF97_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/WaterIF97/WaterIF97.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Media.Examples.WaterIF97.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches