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.0009141/0.0009142, allocations: 98.27 kB / 16.3 MB, free: 5.57 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.0008732/0.0008732, allocations: 180.5 kB / 17.19 MB, free: 5.504 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.241/1.241, allocations: 223.2 MB / 241.1 MB, free: 284 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002385/0.0002387, allocations: 11.94 kB / 300.7 MB, free: 6.473 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08044/0.08069, allocations: 50.41 MB / 351.1 MB, free: 4.047 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01108/0.09181, allocations: 11.07 MB / 362.2 MB, free: 8.93 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.188/0.2798, allocations: 9.815 MB / 372 MB, free: 9.148 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001093/0.28, allocations: 0.7812 kB / 372 MB, free: 9.148 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002607/0.2803, allocations: 64.22 kB / 372.1 MB, free: 9.148 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002008/0.2805, allocations: 79.05 kB / 372.2 MB, free: 9.148 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009479/0.29, allocations: 3.925 MB / 376.1 MB, free: 9.121 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002962/0.2903, allocations: 154.6 kB / 376.2 MB, free: 9.121 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.314e-05/0.2903, allocations: 11.89 kB / 376.2 MB, free: 9.117 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004096/0.2908, allocations: 204.5 kB / 376.4 MB, free: 9.117 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.939e-05/0.2909, allocations: 61.84 kB / 376.5 MB, free: 9.117 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.63e-05/0.2909, allocations: 9.844 kB / 376.5 MB, free: 9.113 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01188/0.3028, allocations: 6.808 MB / 383.3 MB, free: 8.785 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.752e-05/0.3029, allocations: 30.39 kB / 383.4 MB, free: 8.777 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.782e-05/0.303, allocations: 52.86 kB / 383.4 MB, free: 8.746 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00441/0.3074, allocations: 2.567 MB / 386 MB, free: 7.645 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.725e-06/0.3074, allocations: 0 / 386 MB, free: 7.645 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.3074, allocations: 1.031 kB / 386 MB, free: 7.645 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.508e-06/0.3074, allocations: 0 / 386 MB, free: 7.645 MB / 302.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.004373/0.3118, allocations: 1.106 MB / 387.1 MB, free: 6.902 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.246e-05/0.3119, allocations: 8.406 kB / 387.1 MB, free: 6.902 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004533/0.3123, allocations: 60.73 kB / 387.1 MB, free: 6.879 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001879/0.3125, allocations: 222.4 kB / 387.4 MB, free: 6.656 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.711e-05/0.3125, allocations: 15.98 kB / 387.4 MB, free: 6.652 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.272e-05/0.3126, allocations: 14.12 kB / 387.4 MB, free: 6.652 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001137/0.3137, allocations: 389.2 kB / 387.8 MB, free: 6.449 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.482e-05/0.3138, allocations: 1.188 kB / 387.8 MB, free: 6.449 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.511e-05/0.3138, allocations: 5.406 kB / 387.8 MB, free: 6.449 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.583e-06/0.3138, allocations: 3.906 kB / 387.8 MB, free: 6.449 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001335/0.3152, allocations: 373.7 kB / 388.1 MB, free: 6.359 MB / 302.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.001042/0.3162, allocations: 1.188 MB / 389.3 MB, free: 5.289 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007709/0.317, allocations: 284.9 kB / 389.6 MB, free: 5.164 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0945/0.4115, allocations: 47.9 MB / 437.5 MB, free: 4.281 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.856e-05/0.4116, allocations: 44.95 kB / 437.6 MB, free: 4.234 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.854e-06/0.4116, allocations: 0 / 437.6 MB, free: 4.234 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.006677/0.4183, allocations: 1.611 MB / 439.2 MB, free: 2.875 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.667e-05/0.4183, allocations: 114.6 kB / 439.3 MB, free: 2.742 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.233e-05/0.4184, allocations: 123.5 kB / 439.4 MB, free: 2.621 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.341e-05/0.4185, allocations: 27.95 kB / 439.4 MB, free: 2.59 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.629e-05/0.4185, allocations: 105.3 kB / 439.5 MB, free: 2.492 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.969e-05/0.4186, allocations: 123.1 kB / 439.6 MB, free: 2.391 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.059e-05/0.4187, allocations: 3.188 kB / 439.6 MB, free: 2.391 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.582e-05/0.4188, allocations: 329.3 kB / 440 MB, free: 2.066 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003834/0.4192, allocations: 139.6 kB / 440.1 MB, free: 1.973 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003947/0.4196, allocations: 196.4 kB / 440.3 MB, free: 1.805 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003916/0.42, allocations: 151.6 kB / 440.4 MB, free: 1.711 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.42, allocations: 0 / 440.4 MB, free: 1.711 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001015/0.421, allocations: 429.8 kB / 440.9 MB, free: 1.402 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.903e-05/0.421, allocations: 8.219 kB / 440.9 MB, free: 1.395 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.161e-06/0.421, allocations: 4 kB / 440.9 MB, free: 1.391 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002384/0.4213, allocations: 41.67 kB / 440.9 MB, free: 1.355 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004763/0.4218, allocations: 89.66 kB / 441 MB, free: 1.273 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003471/0.4221, allocations: 0.5529 MB / 441.6 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002971/0.4224, allocations: 27.3 kB / 441.6 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.505e-05/0.4225, allocations: 14.5 kB / 441.6 MB, free: 0.6836 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001319/0.4226, allocations: 142 kB / 441.7 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.335e-05/0.4227, allocations: 22.61 kB / 441.8 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001967/0.4247, allocations: 1.455 MB / 443.2 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.057e-05/0.4247, allocations: 19.78 kB / 443.2 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.4247, allocations: 0 / 443.2 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.035e-06/0.4247, allocations: 3.984 kB / 443.2 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002629/0.4274, allocations: 2.003 MB / 445.2 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.424e-06/0.4274, allocations: 4 kB / 445.2 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004377/0.4278, allocations: 90.58 kB / 445.3 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003534/0.4282, allocations: 74.47 kB / 445.4 MB, free: 13.97 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.055e-05/0.4283, allocations: 11.31 kB / 445.4 MB, free: 13.97 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003076/0.4286, allocations: 0.5978 MB / 446 MB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.4286, allocations: 3.984 kB / 446 MB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002049/0.4306, allocations: 1.764 MB / 447.8 MB, free: 11.98 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.425e-05/0.4307, allocations: 128.8 kB / 447.9 MB, free: 11.84 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.841e-05/0.4308, allocations: 11.95 kB / 447.9 MB, free: 11.82 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003687/0.4312, allocations: 31.08 kB / 448 MB, free: 11.8 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.767e-05/0.4312, allocations: 27.95 kB / 448 MB, free: 11.77 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.341e-05/0.4313, allocations: 23.92 kB / 448 MB, free: 11.75 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.019e-05/0.4313, allocations: 91.27 kB / 448.1 MB, free: 11.66 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4313, allocations: 0 / 448.1 MB, free: 11.66 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.003015/0.4343, allocations: 0.9566 MB / 449 MB, free: 10.7 MB / 366.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.003698/0.4381, allocations: 1.135 MB / 450.2 MB, free: 9.664 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001199/0.4393, allocations: 0.6059 MB / 450.8 MB, free: 9.066 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.045e-06/0.4393, allocations: 0 / 450.8 MB, free: 9.066 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007633/0.44, allocations: 0.5092 MB / 451.3 MB, free: 8.57 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005913/0.4406, allocations: 79.88 kB / 451.4 MB, free: 8.492 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002206/0.4429, allocations: 1.57 MB / 452.9 MB, free: 6.891 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000315/0.4432, allocations: 0.8217 MB / 453.8 MB, free: 6.039 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003746/0.4436, allocations: 136.9 kB / 453.9 MB, free: 5.906 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000117/0.4437, allocations: 31.42 kB / 453.9 MB, free: 5.875 MB / 366.1 MB Notification: Performance of SimCode: time 4.61e-07/0.4437, allocations: 0 / 453.9 MB, free: 5.875 MB / 366.1 MB Notification: Performance of Templates: time 0.04617/0.4899, allocations: 36.31 MB / 490.2 MB, free: 1.602 MB / 398.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","../files/Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches