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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Media.Examples.WaterIF97,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_WaterIF97",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.WaterIF97,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_WaterIF97",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001165/0.001165, allocations: 175.5 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.588/1.588, allocations: 221.3 MB / 235.5 MB, free: 2.91 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008839/0.0008838, allocations: 98.08 kB / 286.5 MB, free: 184 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.891e-05/2.902e-05, allocations: 0 / 343.9 MB, free: 4.227 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.119/0.1191, allocations: 50.42 MB / 394.3 MB, free: 1.766 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.278/8.397, allocations: 2.787 GB / 3.172 GB, free: 44.7 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002848/8.397, allocations: 67.22 kB / 3.172 GB, free: 44.66 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6625/9.06, allocations: 108.2 MB / 3.278 GB, free: 110.2 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.134e-06/9.06, allocations: 0 / 3.278 GB, free: 110.2 MB / 458.7 MB Notification: Performance of Transformations before backend: time 1.811e-05/9.06, allocations: 0 / 3.278 GB, free: 110.2 MB / 458.7 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.007161/9.067, allocations: 1.147 MB / 3.279 GB, free: 109.5 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.211e-05/9.067, allocations: 11.88 kB / 3.279 GB, free: 109.5 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000117/9.067, allocations: 48.61 kB / 3.279 GB, free: 109.5 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005403/9.068, allocations: 48.95 kB / 3.279 GB, free: 109.5 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003379/9.068, allocations: 223.5 kB / 3.279 GB, free: 109.3 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.854e-05/9.068, allocations: 12.05 kB / 3.279 GB, free: 109.3 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.206e-05/9.068, allocations: 14.84 kB / 3.279 GB, free: 109.3 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001065/9.069, allocations: 366.7 kB / 3.28 GB, free: 109.2 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.303e-05/9.069, allocations: 3.938 kB / 3.28 GB, free: 109.2 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.032e-05/9.069, allocations: 6.75 kB / 3.28 GB, free: 109.2 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.097e-06/9.069, allocations: 7.969 kB / 3.28 GB, free: 109.2 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009513/9.07, allocations: 308.3 kB / 3.28 GB, free: 109.2 MB / 458.7 MB Warning: The model contains alias variables with conflicting start and/or 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.00141/9.072, allocations: 1.198 MB / 3.281 GB, free: 108.1 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000637/9.072, allocations: 268.1 kB / 3.281 GB, free: 108.1 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001454/9.072, allocations: 94.47 kB / 3.281 GB, free: 108 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09191/9.164, allocations: 47.36 MB / 3.328 GB, free: 70.83 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.903e-05/9.164, allocations: 34.19 kB / 3.328 GB, free: 70.79 MB / 458.7 MB Notification: Performance of pre-optimization done (n=23): time 3.326e-06/9.164, allocations: 0 / 3.328 GB, free: 70.79 MB / 458.7 MB Notification: Performance of matching and sorting (n=33): time 0.006191/9.171, allocations: 1.427 MB / 3.329 GB, free: 69.72 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.812e-05/9.171, allocations: 114.7 kB / 3.329 GB, free: 69.59 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001284/9.171, allocations: 112.7 kB / 3.329 GB, free: 69.47 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 4.169e-05/9.171, allocations: 33.7 kB / 3.329 GB, free: 69.43 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.98e-05/9.171, allocations: 108.4 kB / 3.329 GB, free: 69.32 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001048/9.171, allocations: 110 kB / 3.33 GB, free: 69.23 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.32e-05/9.171, allocations: 8 kB / 3.33 GB, free: 69.22 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001059/9.171, allocations: 326.6 kB / 3.33 GB, free: 68.89 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001874/9.171, allocations: 107.7 kB / 3.33 GB, free: 68.79 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002144/9.172, allocations: 159 kB / 3.33 GB, free: 68.62 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002233/9.172, allocations: 131.6 kB / 3.33 GB, free: 68.5 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.458e-06/9.172, allocations: 0 / 3.33 GB, free: 68.5 MB / 458.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0006737/9.173, allocations: 368.3 kB / 3.331 GB, free: 68.16 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.359e-05/9.173, allocations: 9.469 kB / 3.331 GB, free: 68.15 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.241e-05/9.173, allocations: 4 kB / 3.331 GB, free: 68.15 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000268/9.173, allocations: 44.48 kB / 3.331 GB, free: 68.11 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004599/9.173, allocations: 83.12 kB / 3.331 GB, free: 68.04 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003975/9.174, allocations: 0.5594 MB / 3.331 GB, free: 67.46 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003309/9.174, allocations: 19.75 kB / 3.331 GB, free: 67.45 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.169e-05/9.174, allocations: 19.66 kB / 3.331 GB, free: 67.43 MB / 458.7 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 () * 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.000137/9.174, allocations: 121.5 kB / 3.331 GB, free: 67.31 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001235/9.175, allocations: 23.77 kB / 3.331 GB, free: 67.29 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001819/9.176, allocations: 1.432 MB / 3.333 GB, free: 65.98 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.779e-05/9.176, allocations: 23.5 kB / 3.333 GB, free: 65.96 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.018e-05/9.176, allocations: 0 / 3.333 GB, free: 65.96 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.203e-05/9.176, allocations: 11.78 kB / 3.333 GB, free: 65.95 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002621/9.179, allocations: 1.959 MB / 3.335 GB, free: 64.15 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.184e-05/9.179, allocations: 4 kB / 3.335 GB, free: 64.14 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004355/9.18, allocations: 83 kB / 3.335 GB, free: 64.08 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003089/9.18, allocations: 71.95 kB / 3.335 GB, free: 64.02 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.04e-05/9.18, allocations: 19.8 kB / 3.335 GB, free: 64.01 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003189/9.18, allocations: 0.583 MB / 3.336 GB, free: 63.41 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.749e-06/9.18, allocations: 8.125 kB / 3.336 GB, free: 63.4 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001862/9.182, allocations: 1.674 MB / 3.337 GB, free: 61.76 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001302/9.182, allocations: 132.5 kB / 3.337 GB, free: 61.62 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.34e-05/9.182, allocations: 11.95 kB / 3.337 GB, free: 61.61 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003991/9.183, allocations: 27.75 kB / 3.337 GB, free: 61.58 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.087e-05/9.183, allocations: 31.25 kB / 3.337 GB, free: 61.56 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.988e-05/9.183, allocations: 23.64 kB / 3.337 GB, free: 61.54 MB / 458.7 MB Notification: Performance of sorting global known variables: time 5.611e-05/9.183, allocations: 90.98 kB / 3.337 GB, free: 61.46 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.282e-06/9.183, allocations: 0 / 3.337 GB, free: 61.46 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.007227/9.19, allocations: 0.9623 MB / 3.338 GB, free: 60.52 MB / 458.7 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 () * 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.01488/9.205, allocations: 3.784 MB / 3.342 GB, free: 56.88 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.001793/9.207, allocations: 0.5572 MB / 3.343 GB, free: 56.36 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.313e-05/9.207, allocations: 0 / 3.343 GB, free: 56.36 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009246/9.208, allocations: 495.3 kB / 3.343 GB, free: 55.9 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009196/9.209, allocations: 76.89 kB / 3.343 GB, free: 55.85 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008521/9.218, allocations: 1.477 MB / 3.345 GB, free: 54.46 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000485/9.218, allocations: 0.8233 MB / 3.345 GB, free: 53.66 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0005341/9.219, allocations: 132.8 kB / 3.346 GB, free: 53.57 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002629/9.219, allocations: 126.8 kB / 3.346 GB, free: 53.46 MB / 458.7 MB Notification: Performance of SimCode: time 1.292e-06/9.219, allocations: 0 / 3.346 GB, free: 53.46 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08035/9.299, allocations: 32.13 MB / 3.377 GB, free: 25.08 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003504/9.3, allocations: 161.1 kB / 3.377 GB, free: 24.86 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.444/12.74, allocations: 7.938 kB / 3.377 GB, free: 24.85 MB / 458.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Media.Examples.WaterIF97_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Media_Examples_WaterIF97_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Media_Examples_WaterIF97.fmu > Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Media.Examples.WaterIF97_res.mat does not exist to compare? outputFormat=mat