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.001122/0.001122, allocations: 118.8 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001281/0.001281, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.314/1.314, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00197/0.00197, allocations: 59.91 kB / 358.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.245/0.247, allocations: 50.55 MB / 409.2 MB, free: 1.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.0153/0.2623, allocations: 13 MB / 422.2 MB, free: 4.516 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01271/0.2751, allocations: 11.53 MB / 433.8 MB, free: 8.941 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.6e-05/0.2752, allocations: 0 / 433.8 MB, free: 8.941 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003234/0.2755, allocations: 71.55 kB / 433.8 MB, free: 8.871 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003033/0.2759, allocations: 95.42 kB / 433.9 MB, free: 8.777 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01302/0.2889, allocations: 5.075 MB / 439 MB, free: 3.707 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003545/0.2893, allocations: 238.9 kB / 439.2 MB, free: 3.473 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.76e-05/0.2893, allocations: 13.44 kB / 439.2 MB, free: 3.457 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000417/0.2898, allocations: 199.3 kB / 439.4 MB, free: 3.262 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001218/0.2899, allocations: 71.64 kB / 439.5 MB, free: 3.191 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.228e-05/0.2899, allocations: 8 kB / 439.5 MB, free: 3.184 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01188/0.3018, allocations: 6.989 MB / 446.5 MB, free: 12.19 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.219e-05/0.3019, allocations: 35.89 kB / 446.5 MB, free: 12.15 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000106/0.302, allocations: 63.73 kB / 446.6 MB, free: 12.09 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007259/0.3093, allocations: 3.876 MB / 450.5 MB, free: 8.207 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.3093, allocations: 0 / 450.5 MB, free: 8.207 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3093, allocations: 4 kB / 450.5 MB, free: 8.203 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.235e-05/0.3093, allocations: 0 / 450.5 MB, free: 8.203 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.005091/0.3144, allocations: 1.147 MB / 451.6 MB, free: 7.008 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.706e-05/0.3145, allocations: 8.031 kB / 451.6 MB, free: 7 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005362/0.315, allocations: 56.7 kB / 451.7 MB, free: 6.945 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004308/0.3155, allocations: 220.2 kB / 451.9 MB, free: 6.691 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.549e-05/0.3155, allocations: 12.66 kB / 451.9 MB, free: 6.68 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.31e-05/0.3156, allocations: 20.28 kB / 451.9 MB, free: 6.66 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001314/0.3169, allocations: 384.8 kB / 452.3 MB, free: 6.254 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.152e-05/0.317, allocations: 7.969 kB / 452.3 MB, free: 6.246 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.102e-05/0.317, allocations: 12 kB / 452.3 MB, free: 6.234 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.146e-05/0.317, allocations: 4 kB / 452.3 MB, free: 6.23 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001439/0.3185, allocations: 351.5 kB / 452.7 MB, free: 5.887 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.001465/0.3199, allocations: 1.184 MB / 453.9 MB, free: 4.602 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000851/0.3208, allocations: 283.8 kB / 454.1 MB, free: 4.297 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002807/0.3211, allocations: 120 kB / 454.3 MB, free: 4.172 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09802/0.4191, allocations: 52.79 MB / 0.4952 GB, free: 8.723 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.386e-05/0.4192, allocations: 30.56 kB / 0.4952 GB, free: 8.684 MB / 430.1 MB Notification: Performance of pre-optimization done (n=23): time 1.914e-06/0.4192, allocations: 0 / 0.4952 GB, free: 8.684 MB / 430.1 MB Notification: Performance of matching and sorting (n=33): time 0.006685/0.4259, allocations: 1.583 MB / 0.4967 GB, free: 7.047 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.146e-05/0.426, allocations: 110.8 kB / 0.4969 GB, free: 6.914 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.682e-05/0.4261, allocations: 125.7 kB / 0.497 GB, free: 6.781 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 4.192e-05/0.4261, allocations: 37.75 kB / 0.497 GB, free: 6.738 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.297e-05/0.4262, allocations: 104.5 kB / 0.4971 GB, free: 6.633 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001017/0.4263, allocations: 114.4 kB / 0.4972 GB, free: 6.52 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001151/0.4264, allocations: 69.59 kB / 0.4973 GB, free: 6.445 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001017/0.4265, allocations: 326.8 kB / 0.4976 GB, free: 6.117 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000396/0.4269, allocations: 135.7 kB / 0.4977 GB, free: 5.984 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004257/0.4274, allocations: 198.8 kB / 0.4979 GB, free: 5.766 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008206/0.4282, allocations: 354.5 kB / 0.4983 GB, free: 5.395 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.4282, allocations: 0 / 0.4983 GB, free: 5.395 MB / 430.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001109/0.4293, allocations: 422 kB / 0.4987 GB, free: 4.973 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.918e-05/0.4294, allocations: 11.94 kB / 0.4987 GB, free: 4.961 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.253e-06/0.4294, allocations: 0 / 0.4987 GB, free: 4.961 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002412/0.4296, allocations: 36.83 kB / 0.4987 GB, free: 4.922 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004756/0.4301, allocations: 92.03 kB / 0.4988 GB, free: 4.832 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003461/0.4305, allocations: 0.5561 MB / 0.4993 GB, free: 4.25 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002952/0.4308, allocations: 19.98 kB / 0.4994 GB, free: 4.23 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.306e-05/0.4308, allocations: 12 kB / 0.4994 GB, free: 4.219 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.0001461/0.431, allocations: 153.7 kB / 0.4995 GB, free: 4.059 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.822e-05/0.4311, allocations: 11.91 kB / 0.4995 GB, free: 4.047 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002072/0.4331, allocations: 1.439 MB / 0.5009 GB, free: 2.594 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.341e-05/0.4332, allocations: 23.97 kB / 0.5009 GB, free: 2.57 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.4332, allocations: 4.031 kB / 0.501 GB, free: 2.566 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.668e-06/0.4332, allocations: 3.984 kB / 0.501 GB, free: 2.562 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002787/0.436, allocations: 1.975 MB / 0.5029 GB, free: 0.5156 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.084e-06/0.436, allocations: 0 / 0.5029 GB, free: 0.5156 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004379/0.4365, allocations: 83.98 kB / 0.503 GB, free: 444 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003214/0.4368, allocations: 72.7 kB / 0.503 GB, free: 368 kB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.972e-05/0.4369, allocations: 16.36 kB / 0.503 GB, free: 352 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003545/0.4372, allocations: 0.5836 MB / 0.5036 GB, free: 15.73 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.4372, allocations: 8.047 kB / 0.5036 GB, free: 15.73 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002256/0.4395, allocations: 1.694 MB / 0.5053 GB, free: 14 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.022e-05/0.4396, allocations: 132.3 kB / 0.5054 GB, free: 13.86 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.586e-05/0.4396, allocations: 12 kB / 0.5054 GB, free: 13.84 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003765/0.44, allocations: 23.92 kB / 0.5054 GB, free: 13.82 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.667e-05/0.4401, allocations: 35.89 kB / 0.5055 GB, free: 13.79 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.296e-05/0.4401, allocations: 11.98 kB / 0.5055 GB, free: 13.77 MB / 446.1 MB Notification: Performance of sorting global known variables: time 5.337e-05/0.4402, allocations: 91.27 kB / 0.5056 GB, free: 13.68 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4402, allocations: 0 / 0.5056 GB, free: 13.68 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003091/0.4433, allocations: 0.9683 MB / 0.5065 GB, free: 12.71 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.005239/0.4486, allocations: 1.131 MB / 0.5076 GB, free: 11.57 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001569/0.4502, allocations: 0.6166 MB / 0.5082 GB, free: 10.95 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.291e-06/0.4502, allocations: 4 kB / 0.5082 GB, free: 10.95 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008581/0.4511, allocations: 0.5085 MB / 0.5087 GB, free: 10.44 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008069/0.4519, allocations: 84.58 kB / 0.5088 GB, free: 10.36 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002575/0.4545, allocations: 1.294 MB / 0.5101 GB, free: 9.023 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003745/0.4549, allocations: 0.8293 MB / 0.5109 GB, free: 8.168 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0003708/0.4552, allocations: 129.3 kB / 0.511 GB, free: 8.047 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001338/0.4554, allocations: 39.41 kB / 0.511 GB, free: 8.008 MB / 446.1 MB Notification: Performance of SimCode: time 8.72e-07/0.4554, allocations: 0 / 0.511 GB, free: 8.008 MB / 446.1 MB Notification: Performance of Templates: time 0.2315/0.6869, allocations: 36.33 MB / 0.5465 GB, free: 129.4 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/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_trunk_Modelica.Media.Examples.WaterIF97.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches