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.001309/0.001309, allocations: 180.8 kB / 17.01 MB, free: 5.125 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.474/1.474, allocations: 205.4 MB / 223.1 MB, free: 9.129 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.001007/0.001007, allocations: 89.08 kB / 271.5 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002952/0.0002953, allocations: 11.98 kB / 328.3 MB, free: 15.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2349/0.2352, allocations: 47.57 MB / 375.9 MB, free: 45.53 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.988/5.224, allocations: 2.782 GB / 3.149 GB, free: 102.2 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000228/5.224, allocations: 70.84 kB / 3.149 GB, free: 102.2 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4516/5.676, allocations: 107.4 MB / 3.254 GB, free: 75.46 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.874e-06/5.676, allocations: 3.641 kB / 3.254 GB, free: 75.46 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.142e-05/5.676, allocations: 3.938 kB / 3.254 GB, free: 75.46 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.0058/5.681, allocations: 1.158 MB / 3.255 GB, free: 74.94 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.074e-05/5.682, allocations: 7.844 kB / 3.255 GB, free: 74.94 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.925e-05/5.682, allocations: 49.3 kB / 3.255 GB, free: 74.9 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004303/5.682, allocations: 55.69 kB / 3.255 GB, free: 74.89 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002175/5.682, allocations: 220 kB / 3.255 GB, free: 74.7 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.539e-05/5.682, allocations: 18 kB / 3.255 GB, free: 74.7 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.418e-05/5.682, allocations: 21.28 kB / 3.255 GB, free: 74.7 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001103/5.683, allocations: 392.4 kB / 3.256 GB, free: 74.6 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.487e-05/5.683, allocations: 0 / 3.256 GB, free: 74.6 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.209e-05/5.684, allocations: 7.062 kB / 3.256 GB, free: 74.6 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.664e-06/5.684, allocations: 7.281 kB / 3.256 GB, free: 74.6 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001205/5.685, allocations: 370.6 kB / 3.256 GB, free: 74.6 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.00107/5.686, allocations: 1.196 MB / 3.257 GB, free: 73.61 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007524/5.687, allocations: 291.1 kB / 3.258 GB, free: 73.54 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07456/5.761, allocations: 47.17 MB / 3.304 GB, free: 44.65 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.436e-05/5.761, allocations: 42.12 kB / 3.304 GB, free: 44.61 MB / 426.7 MB Notification: Performance of pre-optimization done (n=23): time 1.964e-06/5.761, allocations: 4 kB / 3.304 GB, free: 44.61 MB / 426.7 MB Notification: Performance of matching and sorting (n=33): time 0.006104/5.767, allocations: 1.623 MB / 3.305 GB, free: 44.28 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.936e-05/5.767, allocations: 110.8 kB / 3.305 GB, free: 44.15 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.2e-05/5.767, allocations: 114.3 kB / 3.305 GB, free: 44.06 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.744e-05/5.768, allocations: 29.33 kB / 3.306 GB, free: 44.03 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.392e-05/5.768, allocations: 104.9 kB / 3.306 GB, free: 43.94 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.915e-05/5.768, allocations: 123.4 kB / 3.306 GB, free: 43.88 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.024e-05/5.768, allocations: 9.812 kB / 3.306 GB, free: 43.88 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 5.179e-05/5.768, allocations: 322.4 kB / 3.306 GB, free: 43.57 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003291/5.768, allocations: 145.4 kB / 3.306 GB, free: 43.56 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003414/5.768, allocations: 205.5 kB / 3.306 GB, free: 43.49 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003286/5.769, allocations: 162.8 kB / 3.307 GB, free: 43.48 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/5.769, allocations: 3.656 kB / 3.307 GB, free: 43.48 MB / 426.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0008778/5.77, allocations: 425.7 kB / 3.307 GB, free: 43.42 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.823e-05/5.77, allocations: 8.062 kB / 3.307 GB, free: 43.42 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/5.77, allocations: 0 / 3.307 GB, free: 43.42 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000212/5.77, allocations: 48.05 kB / 3.307 GB, free: 43.41 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004275/5.77, allocations: 91.88 kB / 3.307 GB, free: 43.41 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002821/5.771, allocations: 0.5415 MB / 3.308 GB, free: 42.89 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000277/5.771, allocations: 36.17 kB / 3.308 GB, free: 42.88 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.318e-05/5.771, allocations: 18.12 kB / 3.308 GB, free: 42.88 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.0001211/5.771, allocations: 129 kB / 3.308 GB, free: 42.77 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.13e-05/5.771, allocations: 23.55 kB / 3.308 GB, free: 42.76 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001764/5.773, allocations: 1.469 MB / 3.309 GB, free: 42.59 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.617e-05/5.773, allocations: 19.06 kB / 3.309 GB, free: 42.59 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/5.773, allocations: 3.812 kB / 3.309 GB, free: 42.59 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.263e-06/5.773, allocations: 3.703 kB / 3.309 GB, free: 42.59 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002299/5.775, allocations: 1.987 MB / 3.311 GB, free: 42.2 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/5.775, allocations: 3.406 kB / 3.311 GB, free: 42.2 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000403/5.776, allocations: 90.33 kB / 3.311 GB, free: 42.19 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003088/5.776, allocations: 73.34 kB / 3.311 GB, free: 42.18 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.281e-05/5.776, allocations: 14.66 kB / 3.311 GB, free: 42.18 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002285/5.776, allocations: 0.5956 MB / 3.312 GB, free: 41.66 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/5.776, allocations: 3.781 kB / 3.312 GB, free: 41.66 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0018/5.778, allocations: 1.774 MB / 3.314 GB, free: 41.17 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.456e-05/5.778, allocations: 126.2 kB / 3.314 GB, free: 41.05 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.077e-05/5.778, allocations: 9.312 kB / 3.314 GB, free: 41.05 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003497/5.779, allocations: 25.03 kB / 3.314 GB, free: 41.05 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.235e-05/5.779, allocations: 29.97 kB / 3.314 GB, free: 41.05 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.891e-05/5.779, allocations: 18.89 kB / 3.314 GB, free: 41.05 MB / 426.7 MB Notification: Performance of sorting global known variables: time 3.166e-05/5.779, allocations: 93.12 kB / 3.314 GB, free: 40.98 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.21e-07/5.779, allocations: 3.656 kB / 3.314 GB, free: 40.98 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004028/5.783, allocations: 0.9698 MB / 3.315 GB, free: 40.82 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.006742/5.79, allocations: 3.873 MB / 3.319 GB, free: 39.21 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001025/5.791, allocations: 0.5961 MB / 3.319 GB, free: 39.2 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/5.791, allocations: 0 / 3.319 GB, free: 39.2 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006547/5.791, allocations: 0.5193 MB / 3.32 GB, free: 39.2 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005186/5.792, allocations: 73.44 kB / 3.32 GB, free: 39.19 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004497/5.796, allocations: 3.823 MB / 3.324 GB, free: 36.86 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002004/5.797, allocations: 0.8259 MB / 3.324 GB, free: 36.16 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.000351/5.797, allocations: 133.5 kB / 3.325 GB, free: 36.14 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001829/5.797, allocations: 134.5 kB / 3.325 GB, free: 36.04 MB / 426.7 MB Notification: Performance of SimCode: time 3.41e-07/5.797, allocations: 3.938 kB / 3.325 GB, free: 36.04 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05013/5.847, allocations: 30.79 MB / 3.355 GB, free: 34.11 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001503/5.847, allocations: 201.4 kB / 3.355 GB, free: 33.86 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.989/8.837, allocations: 0 / 3.355 GB, free: 33.86 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