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.00234/0.002339, allocations: 186.3 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.023/2.023, allocations: 205.4 MB / 222.5 MB, free: 9.125 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001127/0.001127, allocations: 92.42 kB / 270.9 MB, free: 8.379 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000388/0.0003879, allocations: 8 kB / 327 MB, free: 132 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4032/0.4036, allocations: 47.57 MB / 374.6 MB, free: 45.32 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.835/8.238, allocations: 2.782 GB / 3.148 GB, free: 13.89 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002582/8.239, allocations: 73.97 kB / 3.148 GB, free: 13.86 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7411/8.98, allocations: 107.4 MB / 3.253 GB, free: 80.25 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.004e-06/8.98, allocations: 0 / 3.253 GB, free: 80.25 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.445e-05/8.98, allocations: 0 / 3.253 GB, free: 80.25 MB / 426.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.008702/8.988, allocations: 1.157 MB / 3.254 GB, free: 79.18 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.937e-05/8.988, allocations: 8.031 kB / 3.254 GB, free: 79.17 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.994e-05/8.989, allocations: 50.41 kB / 3.254 GB, free: 79.12 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006866/8.989, allocations: 59.72 kB / 3.254 GB, free: 79.07 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002931/8.99, allocations: 221.7 kB / 3.254 GB, free: 78.84 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.356e-05/8.99, allocations: 12.28 kB / 3.254 GB, free: 78.82 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.57e-05/8.99, allocations: 12 kB / 3.254 GB, free: 78.81 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001919/8.992, allocations: 394.3 kB / 3.255 GB, free: 78.5 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.471e-05/8.992, allocations: 5.031 kB / 3.255 GB, free: 78.5 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.159e-05/8.992, allocations: 8 kB / 3.255 GB, free: 78.49 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.037e-06/8.992, allocations: 7.938 kB / 3.255 GB, free: 78.48 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002284/8.994, allocations: 369.2 kB / 3.255 GB, free: 78.21 MB / 426.7 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.00176/8.996, allocations: 1.201 MB / 3.256 GB, free: 76.98 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001242/8.997, allocations: 282.7 kB / 3.256 GB, free: 76.73 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1462/9.143, allocations: 47.17 MB / 3.302 GB, free: 24.87 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.015e-05/9.143, allocations: 38.73 kB / 3.302 GB, free: 24.82 MB / 426.7 MB Notification: Performance of pre-optimization done (n=23): time 2.255e-06/9.143, allocations: 0 / 3.302 GB, free: 24.82 MB / 426.7 MB Notification: Performance of matching and sorting (n=33): time 0.01099/9.154, allocations: 1.634 MB / 3.304 GB, free: 23.14 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.954e-05/9.154, allocations: 106.8 kB / 3.304 GB, free: 23.01 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.737e-05/9.155, allocations: 112.9 kB / 3.304 GB, free: 22.89 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.115e-05/9.155, allocations: 29.7 kB / 3.304 GB, free: 22.86 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.811e-05/9.155, allocations: 179 kB / 3.304 GB, free: 22.68 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001034/9.155, allocations: 122.3 kB / 3.305 GB, free: 22.56 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.075e-05/9.155, allocations: 4 kB / 3.305 GB, free: 22.56 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 6.18e-05/9.155, allocations: 322.8 kB / 3.305 GB, free: 22.23 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006372/9.156, allocations: 139.7 kB / 3.305 GB, free: 22.1 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006647/9.156, allocations: 202.8 kB / 3.305 GB, free: 21.88 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006735/9.157, allocations: 164.3 kB / 3.305 GB, free: 21.71 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/9.157, allocations: 0 / 3.305 GB, free: 21.71 MB / 426.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001779/9.159, allocations: 434.4 kB / 3.306 GB, free: 21.28 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.297e-05/9.159, allocations: 9.562 kB / 3.306 GB, free: 21.27 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.178e-06/9.159, allocations: 0 / 3.306 GB, free: 21.27 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003645/9.159, allocations: 40.78 kB / 3.306 GB, free: 21.23 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008104/9.16, allocations: 99.97 kB / 3.306 GB, free: 21.13 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003689/9.16, allocations: 0.5484 MB / 3.306 GB, free: 20.56 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004993/9.161, allocations: 24.02 kB / 3.306 GB, free: 20.54 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.102e-05/9.161, allocations: 16.08 kB / 3.306 GB, free: 20.52 MB / 426.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 () * 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.0001872/9.161, allocations: 137.8 kB / 3.307 GB, free: 20.38 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001097/9.161, allocations: 23.7 kB / 3.307 GB, free: 20.35 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003234/9.165, allocations: 1.462 MB / 3.308 GB, free: 18.88 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.895e-05/9.165, allocations: 23.95 kB / 3.308 GB, free: 18.85 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.157e-06/9.165, allocations: 8.031 kB / 3.308 GB, free: 18.84 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.859e-06/9.165, allocations: 0 / 3.308 GB, free: 18.84 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004039/9.169, allocations: 1.991 MB / 3.31 GB, free: 16.79 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.328e-06/9.169, allocations: 4 kB / 3.31 GB, free: 16.78 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007692/9.17, allocations: 83.86 kB / 3.31 GB, free: 16.7 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005273/9.17, allocations: 72.92 kB / 3.31 GB, free: 16.62 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.932e-05/9.17, allocations: 19.92 kB / 3.31 GB, free: 16.61 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003611/9.171, allocations: 0.5874 MB / 3.311 GB, free: 15.99 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/9.171, allocations: 0 / 3.311 GB, free: 15.99 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003083/9.174, allocations: 1.766 MB / 3.313 GB, free: 14.16 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.849e-05/9.174, allocations: 140.3 kB / 3.313 GB, free: 14 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.574e-05/9.174, allocations: 8 kB / 3.313 GB, free: 13.99 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005972/9.174, allocations: 27.98 kB / 3.313 GB, free: 13.96 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.374e-05/9.175, allocations: 39.88 kB / 3.313 GB, free: 13.93 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.659e-05/9.175, allocations: 11.98 kB / 3.313 GB, free: 13.91 MB / 426.7 MB Notification: Performance of sorting global known variables: time 5.821e-05/9.175, allocations: 91.27 kB / 3.313 GB, free: 13.82 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.91e-07/9.175, allocations: 0 / 3.313 GB, free: 13.82 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00499/9.18, allocations: 0.9642 MB / 3.314 GB, free: 12.86 MB / 426.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 () * 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.01292/9.193, allocations: 3.897 MB / 3.318 GB, free: 8.902 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001993/9.195, allocations: 0.6008 MB / 3.318 GB, free: 8.301 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.851e-06/9.195, allocations: 0 / 3.318 GB, free: 8.301 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001127/9.196, allocations: 0.5123 MB / 3.319 GB, free: 7.789 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009204/9.197, allocations: 76.25 kB / 3.319 GB, free: 7.719 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009662/9.206, allocations: 3.834 MB / 3.322 GB, free: 3.785 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003034/9.207, allocations: 0.8256 MB / 3.323 GB, free: 2.93 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003542/9.207, allocations: 131.4 kB / 3.323 GB, free: 2.801 MB / 426.7 MB Notification: Performance of SimCode: time 1.222e-06/9.207, allocations: 0 / 3.323 GB, free: 2.801 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.842/13.05, allocations: 24.78 MB / 3.348 GB, free: 89.12 MB / 426.7 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