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.00121/0.00121, allocations: 94.75 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.001409/0.001409, allocations: 204 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.349/1.349, allocations: 227.3 MB / 245.9 MB, free: 12.02 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002256/0.0002256, allocations: 4 kB / 306.7 MB, free: 1.492 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08993/0.09017, allocations: 51.49 MB / 358.2 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01234/0.1026, allocations: 11.15 MB / 369.3 MB, free: 2.816 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1707/0.2733, allocations: 9.81 MB / 379.1 MB, free: 9.008 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001202/0.2735, allocations: 0.5625 kB / 379.1 MB, free: 9.008 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002828/0.2738, allocations: 66.3 kB / 379.2 MB, free: 9.004 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000235/0.274, allocations: 79.3 kB / 379.3 MB, free: 9 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01218/0.2862, allocations: 3.927 MB / 383.2 MB, free: 8.785 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000333/0.2866, allocations: 151.2 kB / 383.4 MB, free: 8.781 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.734e-05/0.2866, allocations: 14.33 kB / 383.4 MB, free: 8.773 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004649/0.2871, allocations: 208.3 kB / 383.6 MB, free: 8.746 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001249/0.2872, allocations: 62.78 kB / 383.6 MB, free: 8.734 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.009e-05/0.2873, allocations: 5.094 kB / 383.6 MB, free: 8.734 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01453/0.3018, allocations: 6.82 MB / 390.5 MB, free: 6.957 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001075/0.302, allocations: 30.08 kB / 390.5 MB, free: 6.938 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001228/0.3021, allocations: 49.48 kB / 390.5 MB, free: 6.898 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006046/0.3081, allocations: 2.572 MB / 393.1 MB, free: 5.461 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.3082, allocations: 1.375 kB / 393.1 MB, free: 5.461 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.675e-06/0.3082, allocations: 0 / 393.1 MB, free: 5.461 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.189e-06/0.3082, allocations: 0 / 393.1 MB, free: 5.461 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.005441/0.3136, allocations: 1.116 MB / 394.2 MB, free: 4.672 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.717e-05/0.3137, allocations: 9.812 kB / 394.2 MB, free: 4.672 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.672e-05/0.3138, allocations: 46.42 kB / 394.3 MB, free: 4.621 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004543/0.3142, allocations: 61.84 kB / 394.3 MB, free: 4.594 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002057/0.3144, allocations: 222.7 kB / 394.6 MB, free: 4.352 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.348e-05/0.3145, allocations: 11.95 kB / 394.6 MB, free: 4.348 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.2e-05/0.3145, allocations: 16.25 kB / 394.6 MB, free: 4.34 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001137/0.3157, allocations: 386.4 kB / 395 MB, free: 4.074 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.407e-05/0.3157, allocations: 5.375 kB / 395 MB, free: 4.07 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.308e-05/0.3157, allocations: 6.75 kB / 395 MB, free: 4.066 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.793e-06/0.3157, allocations: 2.75 kB / 395 MB, free: 4.066 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001315/0.3171, allocations: 370.9 kB / 395.3 MB, free: 3.895 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.00111/0.3182, allocations: 1.195 MB / 396.5 MB, free: 2.711 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007755/0.319, allocations: 294 kB / 396.8 MB, free: 2.527 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09888/0.4178, allocations: 53.01 MB / 449.8 MB, free: 9.18 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.931e-05/0.4179, allocations: 34.75 kB / 449.9 MB, free: 9.137 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 1.954e-06/0.4179, allocations: 4 kB / 449.9 MB, free: 9.133 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.006605/0.4246, allocations: 1.62 MB / 451.5 MB, free: 7.461 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.122e-05/0.4246, allocations: 110.8 kB / 451.6 MB, free: 7.328 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.595e-05/0.4247, allocations: 125.8 kB / 451.7 MB, free: 7.195 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.502e-05/0.4248, allocations: 33.7 kB / 451.8 MB, free: 7.156 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.716e-05/0.4249, allocations: 108.5 kB / 451.9 MB, free: 7.047 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.663e-05/0.4249, allocations: 114.3 kB / 452 MB, free: 6.934 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.143e-05/0.425, allocations: 8 kB / 452 MB, free: 6.926 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001154/0.4251, allocations: 326.8 kB / 452.3 MB, free: 6.598 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003615/0.4255, allocations: 131.9 kB / 452.4 MB, free: 6.469 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004077/0.4259, allocations: 202.8 kB / 452.6 MB, free: 6.246 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000387/0.4263, allocations: 160.3 kB / 452.8 MB, free: 6.09 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.392e-06/0.4263, allocations: 0 / 452.8 MB, free: 6.09 MB / 366.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001027/0.4273, allocations: 437.9 kB / 453.2 MB, free: 5.652 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.783e-05/0.4273, allocations: 6.812 kB / 453.2 MB, free: 5.648 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.135e-06/0.4274, allocations: 4 kB / 453.2 MB, free: 5.645 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002301/0.4276, allocations: 44.98 kB / 453.3 MB, free: 5.598 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000452/0.4281, allocations: 83.88 kB / 453.3 MB, free: 5.516 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000345/0.4284, allocations: 0.5449 MB / 453.9 MB, free: 4.945 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002847/0.4287, allocations: 32.09 kB / 453.9 MB, free: 4.914 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.499e-05/0.4287, allocations: 16 kB / 453.9 MB, free: 4.898 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.0001505/0.4289, allocations: 142.4 kB / 454.1 MB, free: 4.75 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.082e-05/0.429, allocations: 22.19 kB / 454.1 MB, free: 4.73 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002085/0.4311, allocations: 1.458 MB / 455.6 MB, free: 3.266 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.917e-05/0.4311, allocations: 15.97 kB / 455.6 MB, free: 3.25 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.4311, allocations: 4 kB / 455.6 MB, free: 3.246 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.174e-06/0.4311, allocations: 3.984 kB / 455.6 MB, free: 3.242 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002805/0.4339, allocations: 1.983 MB / 457.6 MB, free: 1.184 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.743e-06/0.434, allocations: 3.938 kB / 457.6 MB, free: 1.18 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004323/0.4344, allocations: 87.88 kB / 457.7 MB, free: 1.094 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003488/0.4348, allocations: 76.86 kB / 457.7 MB, free: 1.016 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.6e-05/0.4348, allocations: 16.73 kB / 457.7 MB, free: 1 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003691/0.4352, allocations: 0.5796 MB / 458.3 MB, free: 404 kB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.4352, allocations: 8.125 kB / 458.3 MB, free: 396 kB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002175/0.4374, allocations: 1.769 MB / 460.1 MB, free: 14.55 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.041e-05/0.4375, allocations: 124.5 kB / 460.2 MB, free: 14.41 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.745e-05/0.4375, allocations: 12.03 kB / 460.2 MB, free: 14.4 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003676/0.4379, allocations: 27.98 kB / 460.3 MB, free: 14.38 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.15e-05/0.438, allocations: 35.89 kB / 460.3 MB, free: 14.34 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.525e-05/0.4381, allocations: 23.94 kB / 460.3 MB, free: 14.32 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.047e-05/0.4381, allocations: 83.28 kB / 460.4 MB, free: 14.23 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4381, allocations: 0 / 460.4 MB, free: 14.23 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003736/0.4419, allocations: 0.9721 MB / 461.4 MB, free: 13.26 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.008938/0.4508, allocations: 3.756 MB / 465.1 MB, free: 9.438 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001258/0.4521, allocations: 0.6044 MB / 465.7 MB, free: 8.832 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.4521, allocations: 0 / 465.7 MB, free: 8.832 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007777/0.4529, allocations: 0.5045 MB / 466.2 MB, free: 8.328 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006224/0.4536, allocations: 80.59 kB / 466.3 MB, free: 8.25 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006715/0.4603, allocations: 3.751 MB / 470.1 MB, free: 4.41 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003789/0.4607, allocations: 0.8256 MB / 470.9 MB, free: 3.559 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003983/0.4611, allocations: 137.8 kB / 471 MB, free: 3.418 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002083/0.4613, allocations: 135.4 kB / 471.2 MB, free: 3.285 MB / 382.1 MB Notification: Performance of SimCode: time 6.41e-07/0.4613, allocations: 0 / 471.2 MB, free: 3.285 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08991/0.5512, allocations: 40.45 MB / 0.4996 GB, free: 10.94 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001621/0.5514, allocations: 194.3 kB / 0.4998 GB, free: 10.69 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.311/4.863, allocations: 0 / 0.4998 GB, free: 10.69 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