Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.IdealSteam.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.Tests.MediaTestModels.Water.IdealSteam,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Media_Examples_Tests_MediaTestModels_Water_IdealSteam",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.Tests.MediaTestModels.Water.IdealSteam,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Media_Examples_Tests_MediaTestModels_Water_IdealSteam",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.002273/0.002273, allocations: 186.2 kB / 16.4 MB, free: 5.746 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.983/1.983, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.00115/0.00115, allocations: 99.95 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003803/0.0003803, allocations: 8 kB / 327.1 MB, free: 100 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3264/0.3269, allocations: 47.57 MB / 374.6 MB, free: 45.3 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.111/1.437, allocations: 438.9 MB / 0.7945 GB, free: 9.684 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003713/1.438, allocations: 102.3 kB / 0.7946 GB, free: 9.621 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7471/2.185, allocations: 154.1 MB / 0.945 GB, free: 31.15 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.756e-06/2.185, allocations: 0 / 0.945 GB, free: 31.15 MB / 426.7 MB Notification: Performance of Transformations before backend: time 2.464e-05/2.185, allocations: 4 kB / 0.945 GB, free: 31.14 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001275/2.186, allocations: 0.6284 MB / 0.9457 GB, free: 30.47 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.916e-05/2.186, allocations: 11.97 kB / 0.9457 GB, free: 30.46 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001095/2.187, allocations: 62.53 kB / 0.9457 GB, free: 30.39 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003919/2.187, allocations: 43.58 kB / 0.9458 GB, free: 30.34 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004598/2.187, allocations: 282.8 kB / 0.946 GB, free: 30.03 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.439e-05/2.187, allocations: 24.5 kB / 0.9461 GB, free: 30 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.051e-05/2.188, allocations: 24 kB / 0.9461 GB, free: 29.98 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006548/2.188, allocations: 311.7 kB / 0.9464 GB, free: 29.65 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.335e-05/2.188, allocations: 3.938 kB / 0.9464 GB, free: 29.64 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.576e-05/2.188, allocations: 12 kB / 0.9464 GB, free: 29.63 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.358e-05/2.188, allocations: 4 kB / 0.9464 GB, free: 29.63 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004607/2.189, allocations: 201.6 kB / 0.9466 GB, free: 29.43 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.0023/2.191, allocations: 1.581 MB / 0.9481 GB, free: 27.7 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003978/2.192, allocations: 171.1 kB / 0.9483 GB, free: 27.52 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.636e-05/2.192, allocations: 4.188 kB / 0.9483 GB, free: 27.52 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.166e-05/2.192, allocations: 38.75 kB / 0.9483 GB, free: 27.47 MB / 426.7 MB Notification: Performance of pre-optimization done (n=22): time 3.045e-06/2.192, allocations: 0 / 0.9483 GB, free: 27.47 MB / 426.7 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: volume.medium.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=27): time 0.009373/2.201, allocations: 1.605 MB / 0.9499 GB, free: 25.74 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.42e-05/2.201, allocations: 63.33 kB / 0.95 GB, free: 25.66 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000322/2.201, allocations: 236 kB / 0.9502 GB, free: 25.43 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 6.58e-05/2.202, allocations: 33.69 kB / 0.9502 GB, free: 25.39 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001044/2.202, allocations: 234.6 kB / 0.9504 GB, free: 25.16 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.014e-05/2.202, allocations: 94.64 kB / 0.9505 GB, free: 25.06 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.814e-05/2.202, allocations: 4 kB / 0.9505 GB, free: 25.06 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 7.486e-05/2.202, allocations: 334.8 kB / 0.9509 GB, free: 24.72 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002406/2.202, allocations: 83.97 kB / 0.9509 GB, free: 24.64 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000284/2.202, allocations: 183.8 kB / 0.9511 GB, free: 24.42 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003151/2.203, allocations: 120.4 kB / 0.9512 GB, free: 24.3 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.127e-06/2.203, allocations: 0 / 0.9512 GB, free: 24.3 MB / 426.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0009696/2.204, allocations: 382.8 kB / 0.9516 GB, free: 23.91 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.737e-05/2.204, allocations: 4 kB / 0.9516 GB, free: 23.91 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.209e-05/2.204, allocations: 4 kB / 0.9516 GB, free: 23.91 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003187/2.204, allocations: 77.67 kB / 0.9517 GB, free: 23.82 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006086/2.205, allocations: 80.31 kB / 0.9518 GB, free: 23.75 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001594/2.206, allocations: 1.871 MB / 0.9536 GB, free: 21.71 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005406/2.207, allocations: 16 kB / 0.9536 GB, free: 21.7 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.065e-05/2.207, allocations: 39.98 kB / 0.9536 GB, free: 21.66 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 38 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002663/2.207, allocations: 157.7 kB / 0.9538 GB, free: 21.5 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001104/2.207, allocations: 35.77 kB / 0.9538 GB, free: 21.46 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001492/2.209, allocations: 440.6 kB / 0.9542 GB, free: 21.01 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.825e-06/2.209, allocations: 4 kB / 0.9542 GB, free: 21.01 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/2.209, allocations: 0 / 0.9542 GB, free: 21.01 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006563/2.21, allocations: 0.5607 MB / 0.9548 GB, free: 20.36 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00142/2.211, allocations: 0.7173 MB / 0.9555 GB, free: 19.58 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.411e-06/2.211, allocations: 4 kB / 0.9555 GB, free: 19.57 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005495/2.212, allocations: 71.95 kB / 0.9556 GB, free: 19.5 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001247/2.212, allocations: 20.84 kB / 0.9556 GB, free: 19.48 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.77e-05/2.212, allocations: 15.98 kB / 0.9556 GB, free: 19.46 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000901/2.213, allocations: 1.288 MB / 0.9569 GB, free: 18.04 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/2.213, allocations: 0 / 0.9569 GB, free: 18.04 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009943/2.214, allocations: 0.494 MB / 0.9573 GB, free: 17.51 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00012/2.214, allocations: 104.8 kB / 0.9574 GB, free: 17.39 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.064e-05/2.214, allocations: 4 kB / 0.9574 GB, free: 17.39 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004438/2.215, allocations: 19.89 kB / 0.9575 GB, free: 17.37 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.076e-05/2.215, allocations: 23.97 kB / 0.9575 GB, free: 17.34 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.435e-05/2.215, allocations: 32.05 kB / 0.9575 GB, free: 17.31 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0002772/2.215, allocations: 190 kB / 0.9577 GB, free: 17.12 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.8e-07/2.215, allocations: 0 / 0.9577 GB, free: 17.12 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001072/2.216, allocations: 191.8 kB / 0.9579 GB, free: 16.94 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (volume.medium.p,volume.medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 25 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002785/2.219, allocations: 1.853 MB / 0.9597 GB, free: 15.05 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001072/2.22, allocations: 371 kB / 0.96 GB, free: 14.67 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.641e-06/2.22, allocations: 0 / 0.96 GB, free: 14.67 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004037/2.221, allocations: 238.4 kB / 0.9603 GB, free: 14.43 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00163/2.222, allocations: 162.8 kB / 0.9604 GB, free: 14.27 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004541/2.227, allocations: 3.857 MB / 0.9642 GB, free: 10.29 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002843/2.227, allocations: 0.7687 MB / 0.9649 GB, free: 9.492 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005541/2.228, allocations: 143.3 kB / 0.9651 GB, free: 9.352 MB / 426.7 MB Notification: Performance of SimCode: time 1.322e-06/2.228, allocations: 0 / 0.9651 GB, free: 9.352 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.332/5.56, allocations: 12.84 MB / 0.9776 GB, free: 97.62 MB / 426.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.IdealSteam.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.IdealSteam.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.IdealSteam.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.IdealSteam.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.IdealSteam_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Media_Examples_Tests_MediaTestModels_Water_IdealSteam_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Media_Examples_Tests_MediaTestModels_Water_IdealSteam.fmu > Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.IdealSteam.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.IdealSteam_res.mat does not exist to compare? outputFormat=mat