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.001307/0.001307, allocations: 176.4 kB / 8.346 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.634/1.634, allocations: 221.5 MB / 230.3 MB, free: 7.551 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.001374/0.001374, allocations: 91.61 kB / 281.2 MB, free: 5.301 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.511e-05/2.515e-05, allocations: 0 / 337.1 MB, free: 9.918 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1295/0.1295, allocations: 50.42 MB / 387.5 MB, free: 7.461 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.543/8.673, allocations: 2.786 GB / 3.165 GB, free: 49.79 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000312/8.673, allocations: 66.39 kB / 3.165 GB, free: 49.76 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7129/9.386, allocations: 106.3 MB / 3.269 GB, free: 96.43 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.253e-06/9.386, allocations: 0 / 3.269 GB, free: 96.43 MB / 442.7 MB Notification: Performance of Transformations before backend: time 2.195e-05/9.386, allocations: 3.969 kB / 3.269 GB, free: 96.43 MB / 442.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.008545/9.395, allocations: 1.151 MB / 3.27 GB, free: 95.76 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.465e-05/9.395, allocations: 11.72 kB / 3.27 GB, free: 95.76 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005212/9.396, allocations: 49.86 kB / 3.27 GB, free: 95.76 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003647/9.396, allocations: 222.9 kB / 3.27 GB, free: 95.54 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.949e-05/9.396, allocations: 7.469 kB / 3.27 GB, free: 95.53 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.421e-05/9.396, allocations: 18.17 kB / 3.27 GB, free: 95.52 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004526/9.396, allocations: 204.7 kB / 3.27 GB, free: 95.45 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003116/9.397, allocations: 201 kB / 3.27 GB, free: 95.32 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.237e-05/9.397, allocations: 7.641 kB / 3.27 GB, free: 95.31 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.683e-05/9.397, allocations: 4 kB / 3.27 GB, free: 95.31 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.347e-06/9.397, allocations: 3.312 kB / 3.27 GB, free: 95.31 MB / 442.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.001354/9.398, allocations: 1.146 MB / 3.272 GB, free: 94.26 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002655/9.399, allocations: 175.6 kB / 3.272 GB, free: 94.14 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001281/9.399, allocations: 84.94 kB / 3.272 GB, free: 94.09 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08537/9.484, allocations: 47.35 MB / 3.318 GB, free: 60.06 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.364e-05/9.484, allocations: 38.7 kB / 3.318 GB, free: 60.02 MB / 442.7 MB Notification: Performance of pre-optimization done (n=23): time 2.375e-06/9.484, allocations: 4 kB / 3.318 GB, free: 60.01 MB / 442.7 MB Notification: Performance of matching and sorting (n=33): time 0.004621/9.489, allocations: 1.218 MB / 3.319 GB, free: 58.92 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.728e-05/9.489, allocations: 110.9 kB / 3.319 GB, free: 58.79 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.546e-05/9.489, allocations: 119.8 kB / 3.32 GB, free: 58.67 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 2.908e-05/9.489, allocations: 25.7 kB / 3.32 GB, free: 58.64 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.199e-05/9.489, allocations: 104.3 kB / 3.32 GB, free: 58.54 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.67e-05/9.489, allocations: 108.5 kB / 3.32 GB, free: 58.44 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.078e-05/9.489, allocations: 0 / 3.32 GB, free: 58.44 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 8.788e-05/9.489, allocations: 328.2 kB / 3.32 GB, free: 58.11 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001407/9.489, allocations: 102.9 kB / 3.32 GB, free: 58.02 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001842/9.49, allocations: 162 kB / 3.32 GB, free: 57.84 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006685/9.49, allocations: 177.5 kB / 3.321 GB, free: 57.69 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/9.49, allocations: 0 / 3.321 GB, free: 57.69 MB / 442.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001026/9.491, allocations: 388.4 kB / 3.321 GB, free: 57.34 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.683e-05/9.491, allocations: 9.406 kB / 3.321 GB, free: 57.33 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.139e-05/9.491, allocations: 0 / 3.321 GB, free: 57.33 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001877/9.492, allocations: 36.44 kB / 3.321 GB, free: 57.3 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004443/9.492, allocations: 91.78 kB / 3.321 GB, free: 57.22 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003977/9.492, allocations: 0.5619 MB / 3.322 GB, free: 56.64 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002793/9.493, allocations: 23.78 kB / 3.322 GB, free: 56.62 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.237e-05/9.493, allocations: 12 kB / 3.322 GB, free: 56.61 MB / 442.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.0001264/9.493, allocations: 120 kB / 3.322 GB, free: 56.49 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001047/9.494, allocations: 356.5 kB / 3.322 GB, free: 56.18 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.752e-05/9.494, allocations: 19.77 kB / 3.322 GB, free: 56.16 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001977/9.496, allocations: 1.413 MB / 3.323 GB, free: 54.88 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.597e-05/9.496, allocations: 19.55 kB / 3.323 GB, free: 54.86 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.768e-06/9.496, allocations: 7.938 kB / 3.323 GB, free: 54.86 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.929e-06/9.496, allocations: 3.844 kB / 3.323 GB, free: 54.86 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002738/9.499, allocations: 1.881 MB / 3.325 GB, free: 53.13 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.175e-06/9.499, allocations: 4 kB / 3.325 GB, free: 53.13 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004163/9.499, allocations: 86.72 kB / 3.325 GB, free: 53.06 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002215/9.5, allocations: 67.05 kB / 3.325 GB, free: 53.01 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.298e-05/9.5, allocations: 15.7 kB / 3.325 GB, free: 53 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003291/9.5, allocations: 0.6208 MB / 3.326 GB, free: 52.37 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.678e-06/9.5, allocations: 0 / 3.326 GB, free: 52.37 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001596/9.502, allocations: 1.652 MB / 3.328 GB, free: 50.76 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.935e-05/9.502, allocations: 132.4 kB / 3.328 GB, free: 50.62 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.693e-05/9.502, allocations: 7.953 kB / 3.328 GB, free: 50.61 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003332/9.502, allocations: 23.61 kB / 3.328 GB, free: 50.59 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.373e-05/9.502, allocations: 27.06 kB / 3.328 GB, free: 50.57 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.01e-05/9.502, allocations: 15.8 kB / 3.328 GB, free: 50.56 MB / 442.7 MB Notification: Performance of sorting global known variables: time 4.772e-05/9.502, allocations: 90.84 kB / 3.328 GB, free: 50.48 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.7e-07/9.502, allocations: 3.938 kB / 3.328 GB, free: 50.47 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005418/9.508, allocations: 0.9538 MB / 3.329 GB, free: 49.54 MB / 442.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.01042/9.518, allocations: 3.766 MB / 3.333 GB, free: 45.98 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001131/9.519, allocations: 0.5425 MB / 3.333 GB, free: 45.47 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.631e-06/9.519, allocations: 0 / 3.333 GB, free: 45.47 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005455/9.52, allocations: 479.2 kB / 3.334 GB, free: 45.04 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000728/9.521, allocations: 65.03 kB / 3.334 GB, free: 44.99 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005743/9.526, allocations: 1.442 MB / 3.335 GB, free: 43.63 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003067/9.527, allocations: 0.8246 MB / 3.336 GB, free: 42.83 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0004087/9.527, allocations: 137.2 kB / 3.336 GB, free: 42.74 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002109/9.527, allocations: 130.2 kB / 3.336 GB, free: 42.63 MB / 442.7 MB Notification: Performance of SimCode: time 1.543e-06/9.527, allocations: 0 / 3.336 GB, free: 42.63 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06894/9.596, allocations: 29.42 MB / 3.365 GB, free: 19.01 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002168/9.597, allocations: 117 kB / 3.365 GB, free: 18.82 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.068/12.66, allocations: 0.75 kB / 3.365 GB, free: 18.82 MB / 442.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