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.001268/0.001268, allocations: 92.95 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001453/0.001453, allocations: 204.8 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.323/1.323, allocations: 227.2 MB / 245.9 MB, free: 10.35 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001965/0.0001966, allocations: 8 kB / 306.6 MB, free: 1.434 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.1022, allocations: 51.48 MB / 358 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01454/0.1168, allocations: 11.15 MB / 369.2 MB, free: 2.766 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.172/0.2888, allocations: 9.815 MB / 379 MB, free: 8.922 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001004/0.2889, allocations: 1.375 kB / 379 MB, free: 8.922 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003029/0.2893, allocations: 62.94 kB / 379.1 MB, free: 8.918 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002328/0.2895, allocations: 75.5 kB / 379.1 MB, free: 8.918 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01197/0.3015, allocations: 3.923 MB / 383.1 MB, free: 8.688 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003377/0.3018, allocations: 161.2 kB / 383.2 MB, free: 8.68 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.619e-05/0.3019, allocations: 7.828 kB / 383.2 MB, free: 8.676 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004866/0.3024, allocations: 211.7 kB / 383.4 MB, free: 8.645 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001142/0.3025, allocations: 61.7 kB / 383.5 MB, free: 8.633 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.867e-05/0.3025, allocations: 5.5 kB / 383.5 MB, free: 8.633 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01349/0.316, allocations: 6.819 MB / 390.3 MB, free: 6.895 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001035/0.3162, allocations: 25.94 kB / 390.3 MB, free: 6.879 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001304/0.3163, allocations: 50.67 kB / 390.4 MB, free: 6.84 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006069/0.3224, allocations: 2.576 MB / 393 MB, free: 5.383 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.3224, allocations: 0 / 393 MB, free: 5.383 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.374e-06/0.3225, allocations: 1 kB / 393 MB, free: 5.383 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.03e-06/0.3225, allocations: 0 / 393 MB, free: 5.383 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.004956/0.3274, allocations: 1.116 MB / 394.1 MB, free: 4.594 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.305e-05/0.3275, allocations: 9.594 kB / 394.1 MB, free: 4.594 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004646/0.328, allocations: 53.58 kB / 394.2 MB, free: 4.574 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002029/0.3282, allocations: 218 kB / 394.4 MB, free: 4.332 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.709e-05/0.3282, allocations: 14.41 kB / 394.4 MB, free: 4.324 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.594e-05/0.3283, allocations: 14.5 kB / 394.4 MB, free: 4.32 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001185/0.3294, allocations: 389.6 kB / 394.8 MB, free: 4.051 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.603e-05/0.3295, allocations: 5.406 kB / 394.8 MB, free: 4.047 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.747e-05/0.3295, allocations: 10.58 kB / 394.8 MB, free: 4.039 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.085e-05/0.3295, allocations: 3.688 kB / 394.8 MB, free: 4.039 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00137/0.3309, allocations: 366.5 kB / 395.1 MB, free: 3.871 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.001141/0.3321, allocations: 1.205 MB / 396.4 MB, free: 2.676 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008172/0.3329, allocations: 289.4 kB / 396.6 MB, free: 2.496 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09955/0.4325, allocations: 53.01 MB / 449.6 MB, free: 9.344 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.666e-05/0.4325, allocations: 42.69 kB / 449.7 MB, free: 9.293 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 2.094e-06/0.4326, allocations: 0 / 449.7 MB, free: 9.293 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.006696/0.4393, allocations: 1.629 MB / 451.3 MB, free: 7.613 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.802e-05/0.4394, allocations: 106.8 kB / 451.4 MB, free: 7.484 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.981e-05/0.4395, allocations: 121.8 kB / 451.5 MB, free: 7.355 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.485e-05/0.4395, allocations: 29.7 kB / 451.6 MB, free: 7.32 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.375e-05/0.4396, allocations: 104.5 kB / 451.7 MB, free: 7.215 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.549e-05/0.4397, allocations: 118.3 kB / 451.8 MB, free: 7.098 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.002e-05/0.4397, allocations: 8 kB / 451.8 MB, free: 7.09 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001116/0.4398, allocations: 326.8 kB / 452.1 MB, free: 6.762 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003648/0.4402, allocations: 131.9 kB / 452.2 MB, free: 6.633 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003915/0.4406, allocations: 206.8 kB / 452.4 MB, free: 6.406 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003832/0.441, allocations: 160.4 kB / 452.6 MB, free: 6.25 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.441, allocations: 0 / 452.6 MB, free: 6.25 MB / 366.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001001/0.442, allocations: 434 kB / 453 MB, free: 5.816 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.482e-05/0.442, allocations: 4 kB / 453 MB, free: 5.812 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/0.442, allocations: 7.984 kB / 453 MB, free: 5.805 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002275/0.4423, allocations: 36.84 kB / 453.1 MB, free: 5.766 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004541/0.4427, allocations: 92.75 kB / 453.2 MB, free: 5.676 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003346/0.4431, allocations: 0.5486 MB / 453.7 MB, free: 5.102 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000289/0.4434, allocations: 20.36 kB / 453.7 MB, free: 5.082 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.784e-05/0.4434, allocations: 19.98 kB / 453.7 MB, free: 5.062 MB / 366.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.0001399/0.4436, allocations: 142.5 kB / 453.9 MB, free: 4.914 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.938e-05/0.4436, allocations: 19.75 kB / 453.9 MB, free: 4.895 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002054/0.4457, allocations: 1.471 MB / 455.4 MB, free: 3.418 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.082e-05/0.4457, allocations: 19.97 kB / 455.4 MB, free: 3.398 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.4458, allocations: 0 / 455.4 MB, free: 3.398 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.472e-06/0.4458, allocations: 0 / 455.4 MB, free: 3.398 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002779/0.4485, allocations: 1.979 MB / 457.4 MB, free: 1.344 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.376e-06/0.4486, allocations: 4.125 kB / 457.4 MB, free: 1.34 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004311/0.449, allocations: 91.86 kB / 457.5 MB, free: 1.25 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003351/0.4494, allocations: 76.73 kB / 457.5 MB, free: 1.172 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.029e-05/0.4494, allocations: 15.98 kB / 457.6 MB, free: 1.156 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003343/0.4497, allocations: 0.5875 MB / 458.1 MB, free: 0.543 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.829e-06/0.4498, allocations: 3.938 kB / 458.2 MB, free: 0.5391 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002128/0.4519, allocations: 1.762 MB / 459.9 MB, free: 14.71 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.014e-05/0.452, allocations: 128.4 kB / 460 MB, free: 14.57 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.641e-05/0.452, allocations: 8 kB / 460 MB, free: 14.56 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003671/0.4524, allocations: 28.02 kB / 460.1 MB, free: 14.54 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.211e-05/0.4525, allocations: 31.91 kB / 460.1 MB, free: 14.5 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.184e-05/0.4525, allocations: 19.98 kB / 460.1 MB, free: 14.48 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.222e-05/0.4526, allocations: 91.27 kB / 460.2 MB, free: 14.39 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4526, allocations: 0 / 460.2 MB, free: 14.39 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003274/0.4559, allocations: 0.9643 MB / 461.2 MB, free: 13.43 MB / 382.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.004507/0.4604, allocations: 1.146 MB / 462.3 MB, free: 12.28 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001324/0.4617, allocations: 0.6046 MB / 462.9 MB, free: 11.67 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.489e-06/0.4617, allocations: 448 / 462.9 MB, free: 11.67 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007275/0.4625, allocations: 0.5124 MB / 463.4 MB, free: 11.16 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006032/0.4631, allocations: 72.58 kB / 463.5 MB, free: 11.09 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002266/0.4654, allocations: 1.566 MB / 465.1 MB, free: 9.48 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003227/0.4657, allocations: 0.8256 MB / 465.9 MB, free: 8.625 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003547/0.4661, allocations: 137.7 kB / 466 MB, free: 8.488 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001155/0.4662, allocations: 35.42 kB / 466.1 MB, free: 8.453 MB / 382.1 MB Notification: Performance of SimCode: time 4.2e-07/0.4662, allocations: 4 kB / 466.1 MB, free: 8.449 MB / 382.1 MB Notification: Performance of Templates: time 0.04522/0.5114, allocations: 36.37 MB / 0.4907 GB, free: 4.07 MB / 414.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","../files/Modelica_trunk_Modelica.Media.Examples.WaterIF97.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches