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: "" <> buildModelFMU(Modelica.Media.Examples.WaterIF97,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_WaterIF97",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.WaterIF97,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_WaterIF97",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009614/0.0009614, allocations: 97.61 kB / 17.01 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001246/0.001247, allocations: 199 kB / 17.91 MB, free: 5.902 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.319/1.319, allocations: 227.4 MB / 246 MB, free: 12 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000237/0.0002371, allocations: 8 kB / 306.8 MB, free: 1.48 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08726/0.08751, allocations: 51.49 MB / 358.3 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01187/0.09943, allocations: 12.02 MB / 370.3 MB, free: 1.926 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1942/0.2937, allocations: 10.71 MB / 381 MB, free: 8.859 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001299/0.2939, allocations: 0 / 381 MB, free: 8.859 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002811/0.2942, allocations: 66 kB / 381.1 MB, free: 8.844 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002488/0.2944, allocations: 75.47 kB / 381.2 MB, free: 8.816 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01202/0.3065, allocations: 3.867 MB / 385 MB, free: 8.285 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003736/0.3069, allocations: 240.6 kB / 385.3 MB, free: 8.227 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.561e-05/0.3069, allocations: 12.78 kB / 385.3 MB, free: 8.219 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003959/0.3073, allocations: 178.6 kB / 385.5 MB, free: 8.184 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001425/0.3075, allocations: 69.52 kB / 385.5 MB, free: 8.172 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.861e-05/0.3075, allocations: 5.75 kB / 385.5 MB, free: 8.172 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01521/0.3227, allocations: 6.664 MB / 392.2 MB, free: 5.691 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001022/0.3229, allocations: 29.19 kB / 392.2 MB, free: 5.672 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.865e-05/0.323, allocations: 51.05 kB / 392.3 MB, free: 5.633 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005323/0.3283, allocations: 2.577 MB / 394.8 MB, free: 4.309 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.3283, allocations: 0 / 394.8 MB, free: 4.309 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.535e-06/0.3283, allocations: 3.938 kB / 394.8 MB, free: 4.305 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.861e-06/0.3284, allocations: 0 / 394.8 MB, free: 4.305 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.004624/0.333, allocations: 1.109 MB / 396 MB, free: 3.523 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.799e-05/0.333, allocations: 9.531 kB / 396 MB, free: 3.523 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.434e-05/0.3331, allocations: 47.62 kB / 396 MB, free: 3.473 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004215/0.3335, allocations: 65.56 kB / 396.1 MB, free: 3.441 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001887/0.3337, allocations: 219.3 kB / 396.3 MB, free: 3.199 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.654e-05/0.3337, allocations: 10.03 kB / 396.3 MB, free: 3.195 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.189e-05/0.3338, allocations: 14.06 kB / 396.3 MB, free: 3.191 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001056/0.3349, allocations: 391.4 kB / 396.7 MB, free: 2.922 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.47e-05/0.3349, allocations: 5.234 kB / 396.7 MB, free: 2.918 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.931e-05/0.3349, allocations: 5.281 kB / 396.7 MB, free: 2.914 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.184e-06/0.3349, allocations: 4.875 kB / 396.7 MB, free: 2.914 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001223/0.3362, allocations: 373.9 kB / 397.1 MB, free: 2.738 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.001053/0.3372, allocations: 1.189 MB / 398.3 MB, free: 1.566 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007388/0.338, allocations: 301.4 kB / 398.6 MB, free: 1.379 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002458/0.3382, allocations: 113.6 kB / 398.7 MB, free: 1.312 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08938/0.4276, allocations: 53.02 MB / 451.7 MB, free: 7.711 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.064e-05/0.4277, allocations: 34.75 kB / 451.7 MB, free: 7.668 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 1.974e-06/0.4277, allocations: 0 / 451.7 MB, free: 7.668 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.006271/0.434, allocations: 1.614 MB / 453.3 MB, free: 6.004 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.888e-05/0.4341, allocations: 106.8 kB / 453.4 MB, free: 5.875 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.523e-05/0.4342, allocations: 121.7 kB / 453.6 MB, free: 5.746 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.845e-05/0.4342, allocations: 29.7 kB / 453.6 MB, free: 5.711 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.968e-05/0.4343, allocations: 104.5 kB / 453.7 MB, free: 5.605 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.522e-05/0.4344, allocations: 129.8 kB / 453.8 MB, free: 5.48 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.212e-05/0.4344, allocations: 4 kB / 453.8 MB, free: 5.477 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.713e-05/0.4345, allocations: 326.8 kB / 454.1 MB, free: 5.148 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003447/0.4348, allocations: 135.9 kB / 454.3 MB, free: 5.016 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003749/0.4352, allocations: 202.8 kB / 454.5 MB, free: 4.793 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003787/0.4356, allocations: 160.3 kB / 454.6 MB, free: 4.637 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.432e-06/0.4356, allocations: 0 / 454.6 MB, free: 4.637 MB / 366.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0009971/0.4366, allocations: 438 kB / 455.1 MB, free: 4.199 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.882e-05/0.4367, allocations: 4 kB / 455.1 MB, free: 4.195 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.903e-05/0.4367, allocations: 7.984 kB / 455.1 MB, free: 4.188 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002434/0.4369, allocations: 32.84 kB / 455.1 MB, free: 4.152 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004376/0.4374, allocations: 92.03 kB / 455.2 MB, free: 4.062 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003398/0.4377, allocations: 0.5484 MB / 455.7 MB, free: 3.488 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002755/0.438, allocations: 25.27 kB / 455.8 MB, free: 3.465 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.897e-05/0.4381, allocations: 19.98 kB / 455.8 MB, free: 3.445 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.0001456/0.4382, allocations: 138.5 kB / 455.9 MB, free: 3.301 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.27e-05/0.4383, allocations: 15.81 kB / 455.9 MB, free: 3.285 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0022/0.4405, allocations: 1.458 MB / 457.4 MB, free: 1.824 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.548e-05/0.4406, allocations: 23.97 kB / 457.4 MB, free: 1.801 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.578e-06/0.4406, allocations: 4 kB / 457.4 MB, free: 1.797 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.154e-06/0.4406, allocations: 4.031 kB / 457.4 MB, free: 1.793 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003164/0.4438, allocations: 1.978 MB / 459.4 MB, free: 15.75 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.969e-06/0.4438, allocations: 7.938 kB / 459.4 MB, free: 15.74 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004501/0.4443, allocations: 79.88 kB / 459.5 MB, free: 15.66 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003495/0.4446, allocations: 80.75 kB / 459.6 MB, free: 15.58 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.905e-05/0.4447, allocations: 19.98 kB / 459.6 MB, free: 15.56 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003879/0.4451, allocations: 0.5796 MB / 460.2 MB, free: 14.96 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.868e-06/0.4451, allocations: 4.031 kB / 460.2 MB, free: 14.95 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002334/0.4474, allocations: 1.703 MB / 461.9 MB, free: 13.23 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001104/0.4475, allocations: 132.4 kB / 462 MB, free: 13.08 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.511e-05/0.4476, allocations: 8 kB / 462 MB, free: 13.07 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003429/0.4479, allocations: 24.03 kB / 462 MB, free: 13.05 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.085e-05/0.448, allocations: 39.97 kB / 462.1 MB, free: 13.01 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.559e-05/0.4481, allocations: 16.31 kB / 462.1 MB, free: 12.99 MB / 382.1 MB Notification: Performance of sorting global known variables: time 7.999e-05/0.4482, allocations: 95.2 kB / 462.2 MB, free: 12.9 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4482, allocations: 4 kB / 462.2 MB, free: 12.89 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003804/0.452, allocations: 0.9682 MB / 463.2 MB, free: 11.93 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.008052/0.4601, allocations: 3.278 MB / 466.4 MB, free: 8.641 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001254/0.4613, allocations: 0.604 MB / 467 MB, free: 8.035 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.409e-06/0.4614, allocations: 0 / 467 MB, free: 8.035 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007874/0.4621, allocations: 0.517 MB / 467.6 MB, free: 7.52 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007627/0.4629, allocations: 76.58 kB / 467.6 MB, free: 7.445 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006848/0.4698, allocations: 2.708 MB / 470.3 MB, free: 4.656 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004796/0.4703, allocations: 0.8178 MB / 471.2 MB, free: 3.812 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000535/0.4708, allocations: 133.8 kB / 471.3 MB, free: 3.676 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002172/0.4711, allocations: 127.4 kB / 471.4 MB, free: 3.551 MB / 382.1 MB Notification: Performance of SimCode: time 2.364e-06/0.4711, allocations: 0 / 471.4 MB, free: 3.551 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09789/0.569, allocations: 40.49 MB / 0.4999 GB, free: 11.17 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001963/0.5692, allocations: 193.1 kB / 0.5001 GB, free: 10.93 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.971/4.54, allocations: 0 / 0.5001 GB, free: 10.93 MB / 430.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Media.Examples.WaterIF97_res.mat --tempDir=temp_Modelica_trunk_Modelica_Media_Examples_WaterIF97_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Media_Examples_WaterIF97.fmu > Modelica_trunk_Modelica.Media.Examples.WaterIF97.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Media.Examples.WaterIF97_res.mat does not exist to compare? outputFormat=mat