Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.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.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",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.001569/0.001569, allocations: 188.3 kB / 16.41 MB, free: 5.723 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.949/1.949, 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.001617/0.001617, allocations: 90.91 kB / 270.9 MB, free: 8.383 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004084/0.0004084, allocations: 8 kB / 327.1 MB, free: 120 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3379/0.3384, allocations: 47.57 MB / 374.6 MB, free: 45.28 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.006/9.345, allocations: 3.021 GB / 3.386 GB, free: 88.82 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.03302/9.378, allocations: 11.07 MB / 3.397 GB, free: 80.29 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7932/10.17, allocations: 113 MB / 3.508 GB, free: 75.39 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.953e-06/10.17, allocations: 0 / 3.508 GB, free: 75.39 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.446e-05/10.17, allocations: 3.969 kB / 3.508 GB, free: 75.39 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.005731/10.18, allocations: 1.148 MB / 3.509 GB, free: 74.71 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.235e-05/10.18, allocations: 7.938 kB / 3.509 GB, free: 74.71 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.49e-05/10.18, allocations: 61.11 kB / 3.509 GB, free: 74.67 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002006/10.18, allocations: 179.6 kB / 3.509 GB, free: 74.66 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003602/10.18, allocations: 260.5 kB / 3.509 GB, free: 74.45 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.294e-05/10.18, allocations: 18.25 kB / 3.509 GB, free: 74.45 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.45e-05/10.18, allocations: 23.38 kB / 3.509 GB, free: 74.45 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00477/10.18, allocations: 0.8826 MB / 3.51 GB, free: 74.38 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.591e-05/10.18, allocations: 0 / 3.51 GB, free: 74.38 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.844e-05/10.18, allocations: 9.969 kB / 3.51 GB, free: 74.38 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.04e-05/10.18, allocations: 7 kB / 3.51 GB, free: 74.38 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005048/10.19, allocations: 0.9597 MB / 3.511 GB, free: 74.38 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.002055/10.19, allocations: 1.355 MB / 3.512 GB, free: 73.44 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004019/10.2, allocations: 0.707 MB / 3.513 GB, free: 73.42 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1546/10.35, allocations: 37.23 MB / 3.549 GB, free: 49.89 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.684e-05/10.35, allocations: 40.28 kB / 3.55 GB, free: 49.86 MB / 426.7 MB Notification: Performance of pre-optimization done (n=33): time 2.384e-06/10.35, allocations: 2.625 kB / 3.55 GB, free: 49.86 MB / 426.7 MB Notification: Performance of matching and sorting (n=33): time 0.008191/10.36, allocations: 1.322 MB / 3.551 GB, free: 49.81 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.529e-05/10.36, allocations: 59.11 kB / 3.551 GB, free: 49.75 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000116/10.36, allocations: 113.5 kB / 3.551 GB, free: 49.65 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000102/10.36, allocations: 32.83 kB / 3.551 GB, free: 49.62 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.078e-05/10.36, allocations: 181.3 kB / 3.551 GB, free: 49.45 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001687/10.36, allocations: 115 kB / 3.551 GB, free: 49.38 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001151/10.36, allocations: 5.875 kB / 3.551 GB, free: 49.38 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 6.907e-05/10.36, allocations: 327.5 kB / 3.552 GB, free: 49.06 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001008/10.36, allocations: 338 kB / 3.552 GB, free: 49.06 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001023/10.36, allocations: 402.3 kB / 3.552 GB, free: 48.98 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001072/10.36, allocations: 335.7 kB / 3.553 GB, free: 48.98 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.688e-06/10.36, allocations: 5.781 kB / 3.553 GB, free: 48.97 MB / 426.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.003349/10.37, allocations: 0.8561 MB / 3.553 GB, free: 48.93 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.586e-05/10.37, allocations: 9.031 kB / 3.553 GB, free: 48.93 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.989e-06/10.37, allocations: 3.594 kB / 3.553 GB, free: 48.93 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.424e-05/10.37, allocations: 3.031 kB / 3.553 GB, free: 48.93 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001286/10.37, allocations: 188.7 kB / 3.554 GB, free: 48.93 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.424e-05/10.37, allocations: 4.656 kB / 3.554 GB, free: 48.93 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000802/10.37, allocations: 40.92 kB / 3.554 GB, free: 48.91 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001641/10.37, allocations: 68.06 kB / 3.554 GB, free: 48.91 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 4 (medium.phase,medium.bubble2.phase,medium.bubble.phase,medium.dew.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 41 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003065/10.37, allocations: 137.6 kB / 3.554 GB, free: 48.79 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001437/10.37, allocations: 14.56 kB / 3.554 GB, free: 48.79 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009832/10.38, allocations: 7.811 MB / 3.562 GB, free: 46.31 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.221e-05/10.38, allocations: 26.11 kB / 3.562 GB, free: 46.3 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.636e-06/10.38, allocations: 0 / 3.562 GB, free: 46.3 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.334e-05/10.38, allocations: 7.312 kB / 3.562 GB, free: 46.3 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003641/10.38, allocations: 3.506 MB / 3.565 GB, free: 44.04 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.798e-06/10.38, allocations: 3.797 kB / 3.565 GB, free: 44.04 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001286/10.38, allocations: 112.7 kB / 3.565 GB, free: 44.02 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.829e-06/10.38, allocations: 7.938 kB / 3.565 GB, free: 44.02 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.117e-05/10.38, allocations: 7.938 kB / 3.565 GB, free: 44.02 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.232e-06/10.38, allocations: 3.938 kB / 3.565 GB, free: 44.01 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.265e-06/10.38, allocations: 0 / 3.565 GB, free: 44.01 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003521/10.39, allocations: 1.85 MB / 3.567 GB, free: 43.07 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001174/10.39, allocations: 147.9 kB / 3.567 GB, free: 42.93 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.376e-05/10.39, allocations: 4 kB / 3.567 GB, free: 42.93 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006316/10.39, allocations: 26.59 kB / 3.567 GB, free: 42.92 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001367/10.39, allocations: 26.61 kB / 3.567 GB, free: 42.91 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.266e-05/10.39, allocations: 19.64 kB / 3.567 GB, free: 42.91 MB / 426.7 MB Notification: Performance of sorting global known variables: time 6.404e-05/10.39, allocations: 94.5 kB / 3.567 GB, free: 42.83 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.61e-07/10.39, allocations: 0 / 3.567 GB, free: 42.83 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004883/10.39, allocations: 0.9941 MB / 3.568 GB, free: 42.62 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (medium.p,medium.h) * Number of discrete variables: 15 ($cse1.phase,$cse1.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse9.region3boundary,$cse10.region3boundary,medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01265/10.41, allocations: 3.541 MB / 3.572 GB, free: 40.93 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002427/10.41, allocations: 0.898 MB / 3.573 GB, free: 40.57 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.149e-06/10.41, allocations: 0 / 3.573 GB, free: 40.57 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001118/10.41, allocations: 0.5906 MB / 3.573 GB, free: 40.29 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008913/10.41, allocations: 79.25 kB / 3.573 GB, free: 40.27 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0095/10.42, allocations: 4.582 MB / 3.578 GB, free: 37.17 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003327/10.42, allocations: 0.8626 MB / 3.579 GB, free: 36.46 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007314/10.42, allocations: 221.3 kB / 3.579 GB, free: 36.33 MB / 426.7 MB Notification: Performance of SimCode: time 1.453e-06/10.42, allocations: 0 / 3.579 GB, free: 36.33 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.364/13.79, allocations: 26.86 MB / 3.605 GB, free: 22.86 MB / 426.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates_fmu --startTime=0 --stopTime=22 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates.fmu > Modelica_3.2.3_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat does not exist to compare? outputFormat=mat