Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Media.Examples.WaterIF97.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.WaterIF97,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Media_Examples_WaterIF97",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.WaterIF97,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Media_Examples_WaterIF97",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001471/0.001472, allocations: 178.4 kB / 8.362 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.074/2.074, allocations: 205.3 MB / 214.1 MB, free: 14.09 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001097/0.001097, allocations: 81.28 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.508e-05/2.52e-05, allocations: 4 kB / 314.9 MB, free: 9.059 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.455/0.4551, allocations: 47.56 MB / 362.4 MB, free: 45.83 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.747/9.203, allocations: 2.781 GB / 3.135 GB, free: 82.41 MB / 427.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002585/9.203, allocations: 65.61 kB / 3.135 GB, free: 82.41 MB / 427.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.4697/9.673, allocations: 105.3 MB / 3.238 GB, free: 8.277 MB / 427.1 MB Notification: Performance of FrontEnd: time 1.913e-06/9.673, allocations: 0 / 3.238 GB, free: 8.277 MB / 427.1 MB Notification: Performance of Transformations before backend: time 1.464e-05/9.673, allocations: 4 kB / 3.238 GB, free: 8.273 MB / 427.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.008784/9.682, allocations: 1.153 MB / 3.239 GB, free: 7.07 MB / 427.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.422e-05/9.682, allocations: 8.031 kB / 3.239 GB, free: 7.062 MB / 427.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007212/9.682, allocations: 59.77 kB / 3.239 GB, free: 7.004 MB / 427.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003243/9.683, allocations: 223.2 kB / 3.239 GB, free: 6.746 MB / 427.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.386e-05/9.683, allocations: 4 kB / 3.239 GB, free: 6.742 MB / 427.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.212e-05/9.683, allocations: 11.98 kB / 3.239 GB, free: 6.73 MB / 427.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005936/9.683, allocations: 204.5 kB / 3.24 GB, free: 6.531 MB / 427.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003871/9.684, allocations: 200.9 kB / 3.24 GB, free: 6.309 MB / 427.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.122e-05/9.684, allocations: 4 kB / 3.24 GB, free: 6.305 MB / 427.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.383e-05/9.684, allocations: 0 / 3.24 GB, free: 6.305 MB / 427.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.015e-05/9.684, allocations: 4 kB / 3.24 GB, free: 6.301 MB / 427.1 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.001727/9.686, allocations: 1.161 MB / 3.241 GB, free: 5.047 MB / 427.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003341/9.686, allocations: 175.7 kB / 3.241 GB, free: 4.852 MB / 427.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002041/9.686, allocations: 78.95 kB / 3.241 GB, free: 4.766 MB / 427.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4756/10.16, allocations: 47.34 MB / 3.287 GB, free: 59.43 MB / 427.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.99e-05/10.16, allocations: 37.22 kB / 3.287 GB, free: 59.39 MB / 427.1 MB Notification: Performance of pre-optimization done (n=23): time 2.795e-06/10.16, allocations: 0 / 3.287 GB, free: 59.39 MB / 427.1 MB Notification: Performance of matching and sorting (n=33): time 0.006961/10.17, allocations: 1.218 MB / 3.289 GB, free: 59.09 MB / 427.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.211e-05/10.17, allocations: 106.7 kB / 3.289 GB, free: 58.97 MB / 427.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001171/10.17, allocations: 112 kB / 3.289 GB, free: 58.87 MB / 427.1 MB Notification: Performance of collectPreVariables (initialization): time 3.944e-05/10.17, allocations: 25.7 kB / 3.289 GB, free: 58.84 MB / 427.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.748e-05/10.17, allocations: 173.8 kB / 3.289 GB, free: 58.68 MB / 427.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00011/10.17, allocations: 114.5 kB / 3.289 GB, free: 58.62 MB / 427.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.993e-05/10.17, allocations: 0 / 3.289 GB, free: 58.62 MB / 427.1 MB Notification: Performance of setup shared object (initialization): time 7.721e-05/10.17, allocations: 330.9 kB / 3.289 GB, free: 58.31 MB / 427.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002429/10.17, allocations: 95.22 kB / 3.29 GB, free: 58.31 MB / 427.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003262/10.17, allocations: 166.5 kB / 3.29 GB, free: 58.24 MB / 427.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001037/10.17, allocations: 169.7 kB / 3.29 GB, free: 58.24 MB / 427.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/10.17, allocations: 0 / 3.29 GB, free: 58.24 MB / 427.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.00167/10.17, allocations: 401.8 kB / 3.29 GB, free: 58.18 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.37e-05/10.17, allocations: 7.25 kB / 3.29 GB, free: 58.18 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.031e-05/10.17, allocations: 0 / 3.29 GB, free: 58.18 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002491/10.17, allocations: 36.2 kB / 3.29 GB, free: 58.17 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008039/10.17, allocations: 90.42 kB / 3.29 GB, free: 58.17 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004407/10.17, allocations: 0.5564 MB / 3.291 GB, free: 57.65 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005007/10.18, allocations: 18.64 kB / 3.291 GB, free: 57.65 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.286e-05/10.18, allocations: 27.14 kB / 3.291 GB, free: 57.64 MB / 427.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 () * 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.000153/10.18, allocations: 116.7 kB / 3.291 GB, free: 57.54 MB / 427.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001647/10.18, allocations: 358 kB / 3.291 GB, free: 57.48 MB / 427.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001112/10.18, allocations: 17.53 kB / 3.291 GB, free: 57.48 MB / 427.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002591/10.18, allocations: 1.423 MB / 3.293 GB, free: 57.3 MB / 427.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.265e-05/10.18, allocations: 23.61 kB / 3.293 GB, free: 57.3 MB / 427.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.346e-06/10.18, allocations: 2.469 kB / 3.293 GB, free: 57.3 MB / 427.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.408e-06/10.18, allocations: 0 / 3.293 GB, free: 57.3 MB / 427.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003567/10.18, allocations: 1.867 MB / 3.295 GB, free: 56.93 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.007e-05/10.18, allocations: 0.9375 kB / 3.295 GB, free: 56.93 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007832/10.18, allocations: 91.61 kB / 3.295 GB, free: 56.93 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003468/10.18, allocations: 71.27 kB / 3.295 GB, free: 56.91 MB / 427.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.156e-05/10.18, allocations: 3.812 kB / 3.295 GB, free: 56.91 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004747/10.19, allocations: 0.6146 MB / 3.295 GB, free: 56.39 MB / 427.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.264e-06/10.19, allocations: 7.297 kB / 3.295 GB, free: 56.39 MB / 427.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002638/10.19, allocations: 1.656 MB / 3.297 GB, free: 55.91 MB / 427.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001471/10.19, allocations: 130.4 kB / 3.297 GB, free: 55.79 MB / 427.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.679e-05/10.19, allocations: 3.938 kB / 3.297 GB, free: 55.79 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000639/10.19, allocations: 23.09 kB / 3.297 GB, free: 55.79 MB / 427.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001096/10.19, allocations: 37.48 kB / 3.297 GB, free: 55.78 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.746e-05/10.19, allocations: 15.58 kB / 3.297 GB, free: 55.78 MB / 427.1 MB Notification: Performance of sorting global known variables: time 6.859e-05/10.19, allocations: 88.98 kB / 3.297 GB, free: 55.71 MB / 427.1 MB Notification: Performance of sort global known variables: time 3.81e-07/10.19, allocations: 0 / 3.297 GB, free: 55.71 MB / 427.1 MB Notification: Performance of remove unused functions: time 0.005388/10.19, allocations: 0.9481 MB / 3.298 GB, free: 55.71 MB / 427.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 () * 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.012/10.21, allocations: 3.782 MB / 3.302 GB, free: 54.21 MB / 427.1 MB Notification: Performance of simCode: created initialization part: time 0.00141/10.21, allocations: 0.5392 MB / 3.303 GB, free: 54.2 MB / 427.1 MB Notification: Performance of simCode: created event and clocks part: time 4.96e-06/10.21, allocations: 3.969 kB / 3.303 GB, free: 54.2 MB / 427.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007909/10.21, allocations: 480 kB / 3.303 GB, free: 54.2 MB / 427.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009422/10.21, allocations: 68.17 kB / 3.303 GB, free: 54.2 MB / 427.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006479/10.22, allocations: 1.466 MB / 3.304 GB, free: 53.69 MB / 427.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003198/10.22, allocations: 0.8258 MB / 3.305 GB, free: 52.99 MB / 427.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003435/10.22, allocations: 136.3 kB / 3.305 GB, free: 52.98 MB / 427.1 MB Notification: Performance of SimCode: time 1.312e-06/10.22, allocations: 1.5 kB / 3.305 GB, free: 52.98 MB / 427.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.539/13.76, allocations: 25.75 MB / 3.331 GB, free: 50.04 MB / 427.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Media.Examples.WaterIF97.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Media.Examples.WaterIF97.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Media.Examples.WaterIF97.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.WaterIF97.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Media.Examples.WaterIF97_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Media_Examples_WaterIF97_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Media_Examples_WaterIF97.fmu > Modelica_3.2.3_cpp_Modelica.Media.Examples.WaterIF97.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Media.Examples.WaterIF97_res.mat does not exist to compare? outputFormat=mat