Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_Modelica_Media_Examples_WaterIF97",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.WaterIF97,fileNamePrefix="Modelica_3_2_3_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.001016/0.001016, allocations: 172.9 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.434/1.434, allocations: 205.2 MB / 219.8 MB, free: 14.27 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.0008005/0.0008005, allocations: 82.66 kB / 268 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.263e-05/3.265e-05, allocations: 4 kB / 322.5 MB, free: 17.27 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08728/0.08733, allocations: 47.57 MB / 370.1 MB, free: 1.637 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.848/5.936, allocations: 2.782 GB / 3.143 GB, free: 41.44 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002097/5.936, allocations: 74.55 kB / 3.143 GB, free: 41.37 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5128/6.449, allocations: 107.2 MB / 3.248 GB, free: 96.31 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.954e-06/6.449, allocations: 0 / 3.248 GB, free: 96.31 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.492e-05/6.449, allocations: 0 / 3.248 GB, free: 96.31 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.006368/6.455, allocations: 1.15 MB / 3.249 GB, free: 95.67 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.691e-05/6.455, allocations: 7.594 kB / 3.249 GB, free: 95.67 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.944e-05/6.455, allocations: 49.16 kB / 3.249 GB, free: 95.63 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004987/6.456, allocations: 58.08 kB / 3.249 GB, free: 95.62 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002735/6.456, allocations: 225.4 kB / 3.249 GB, free: 95.42 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.319e-05/6.456, allocations: 14.69 kB / 3.249 GB, free: 95.42 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.201e-05/6.456, allocations: 14.59 kB / 3.249 GB, free: 95.41 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009894/6.457, allocations: 368 kB / 3.25 GB, free: 95.31 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.953e-05/6.457, allocations: 3.938 kB / 3.25 GB, free: 95.3 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.711e-05/6.457, allocations: 10.47 kB / 3.25 GB, free: 95.3 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.143e-06/6.457, allocations: 3.969 kB / 3.25 GB, free: 95.3 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008734/6.458, allocations: 304.5 kB / 3.25 GB, free: 95.3 MB / 426.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.001308/6.46, allocations: 1.208 MB / 3.251 GB, free: 94.21 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006352/6.46, allocations: 270.3 kB / 3.252 GB, free: 94.08 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001451/6.46, allocations: 95.48 kB / 3.252 GB, free: 94.02 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08205/6.542, allocations: 47.34 MB / 3.298 GB, free: 48.16 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.43e-05/6.542, allocations: 31.09 kB / 3.298 GB, free: 48.12 MB / 426.7 MB Notification: Performance of pre-optimization done (n=23): time 2.465e-06/6.542, allocations: 0 / 3.298 GB, free: 48.12 MB / 426.7 MB Notification: Performance of matching and sorting (n=33): time 0.005421/6.548, allocations: 1.43 MB / 3.299 GB, free: 46.88 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.211e-05/6.548, allocations: 110.8 kB / 3.299 GB, free: 46.75 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001084/6.548, allocations: 108.8 kB / 3.3 GB, free: 46.64 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.78e-05/6.548, allocations: 33.7 kB / 3.3 GB, free: 46.6 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.29e-05/6.548, allocations: 109.2 kB / 3.3 GB, free: 46.5 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.404e-05/6.548, allocations: 125.8 kB / 3.3 GB, free: 46.38 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.153e-05/6.548, allocations: 8 kB / 3.3 GB, free: 46.38 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 8.864e-05/6.548, allocations: 330.7 kB / 3.3 GB, free: 46.05 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001786/6.549, allocations: 107.8 kB / 3.3 GB, free: 45.94 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002003/6.549, allocations: 170.5 kB / 3.3 GB, free: 45.76 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002021/6.549, allocations: 119.8 kB / 3.3 GB, free: 45.65 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/6.549, allocations: 4 kB / 3.3 GB, free: 45.65 MB / 426.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0006255/6.55, allocations: 368.8 kB / 3.301 GB, free: 45.31 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.418e-05/6.55, allocations: 8.375 kB / 3.301 GB, free: 45.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.817e-06/6.55, allocations: 0 / 3.301 GB, free: 45.3 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002298/6.55, allocations: 36.56 kB / 3.301 GB, free: 45.27 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004523/6.55, allocations: 102.9 kB / 3.301 GB, free: 45.18 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002971/6.551, allocations: 0.5484 MB / 3.301 GB, free: 44.61 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003003/6.551, allocations: 27.55 kB / 3.302 GB, free: 44.59 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.478e-05/6.551, allocations: 12 kB / 3.302 GB, free: 44.58 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 () * 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.0001153/6.551, allocations: 125.9 kB / 3.302 GB, free: 44.45 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.016e-05/6.551, allocations: 19.77 kB / 3.302 GB, free: 44.43 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001492/6.553, allocations: 1.431 MB / 3.303 GB, free: 43.12 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-05/6.553, allocations: 19.55 kB / 3.303 GB, free: 43.11 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.336e-06/6.553, allocations: 3.938 kB / 3.303 GB, free: 43.11 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.065e-05/6.553, allocations: 7.844 kB / 3.303 GB, free: 43.11 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002107/6.555, allocations: 1.954 MB / 3.305 GB, free: 41.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.891e-06/6.555, allocations: 4 kB / 3.305 GB, free: 41.3 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003964/6.555, allocations: 90.95 kB / 3.305 GB, free: 41.23 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002705/6.556, allocations: 67.95 kB / 3.305 GB, free: 41.18 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.831e-05/6.556, allocations: 15.8 kB / 3.305 GB, free: 41.16 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002531/6.556, allocations: 0.5868 MB / 3.306 GB, free: 40.56 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.215e-06/6.556, allocations: 4.031 kB / 3.306 GB, free: 40.56 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001342/6.557, allocations: 1.67 MB / 3.307 GB, free: 38.93 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.605e-05/6.557, allocations: 128.4 kB / 3.308 GB, free: 38.78 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.139e-05/6.558, allocations: 15.84 kB / 3.308 GB, free: 38.77 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003473/6.558, allocations: 27.8 kB / 3.308 GB, free: 38.75 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.82e-05/6.558, allocations: 32.38 kB / 3.308 GB, free: 38.73 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.419e-05/6.558, allocations: 15.56 kB / 3.308 GB, free: 38.71 MB / 426.7 MB Notification: Performance of sorting global known variables: time 4.297e-05/6.558, allocations: 87.28 kB / 3.308 GB, free: 38.63 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.71e-07/6.558, allocations: 4.281 kB / 3.308 GB, free: 38.62 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005093/6.563, allocations: 0.9656 MB / 3.309 GB, free: 37.68 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 () * 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.01015/6.573, allocations: 3.792 MB / 3.312 GB, free: 34.04 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001146/6.575, allocations: 0.5552 MB / 3.313 GB, free: 33.51 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.415e-06/6.575, allocations: 0 / 3.313 GB, free: 33.51 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000623/6.575, allocations: 495.9 kB / 3.313 GB, free: 33.05 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006565/6.576, allocations: 79.09 kB / 3.313 GB, free: 33 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005165/6.581, allocations: 1.46 MB / 3.315 GB, free: 31.63 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002572/6.581, allocations: 0.8298 MB / 3.316 GB, free: 30.82 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0004242/6.582, allocations: 135.3 kB / 3.316 GB, free: 30.73 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002165/6.582, allocations: 139.4 kB / 3.316 GB, free: 30.61 MB / 426.7 MB Notification: Performance of SimCode: time 9.52e-07/6.582, allocations: 3.938 kB / 3.316 GB, free: 30.61 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2977/6.88, allocations: 32.09 MB / 3.347 GB, free: 93.07 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001713/6.88, allocations: 165 kB / 3.347 GB, free: 92.85 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.886/9.766, allocations: 0 / 3.347 GB, free: 92.85 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Media.Examples.WaterIF97_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Media_Examples_WaterIF97_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Media_Examples_WaterIF97.fmu > Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Media.Examples.WaterIF97_res.mat does not exist to compare? outputFormat=mat