Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_pT",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_pT",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.002389/0.002395, allocations: 181.8 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.296/2.296, allocations: 205.2 MB / 219.4 MB, free: 14.22 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.001626/0.001625, allocations: 90.7 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2923/0.2923, allocations: 43.48 MB / 359.1 MB, free: 12.26 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 4.025e-05/4.056e-05, allocations: 8 kB / 425.4 MB, free: 23.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1273/0.1274, allocations: 58.85 MB / 484.3 MB, free: 12.37 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.632/8.759, allocations: 2.794 GB / 3.267 GB, free: 50.91 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003327/8.76, allocations: 94.23 kB / 3.267 GB, free: 50.86 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 2.936/11.7, allocations: 0.4911 GB / 3.758 GB, free: 56.31 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.134e-06/11.7, allocations: 0 / 3.758 GB, free: 56.31 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 8.089e-05/11.7, allocations: 21.38 kB / 3.758 GB, free: 56.31 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 160 * Number of variables: 160 Notification: Performance of Generate backend data structure: time 0.007921/11.7, allocations: 1.704 MB / 3.76 GB, free: 55.66 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.89e-05/11.7, allocations: 7.156 kB / 3.76 GB, free: 55.66 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000273/11.7, allocations: 111.4 kB / 3.76 GB, free: 55.62 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002312/11.71, allocations: 225.1 kB / 3.76 GB, free: 55.59 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001967/11.71, allocations: 0.591 MB / 3.761 GB, free: 55.35 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001319/11.71, allocations: 106.7 kB / 3.761 GB, free: 55.29 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000146/11.71, allocations: 58.62 kB / 3.761 GB, free: 55.29 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003069/11.71, allocations: 1.085 MB / 3.762 GB, free: 54.96 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.352e-05/11.71, allocations: 13.5 kB / 3.762 GB, free: 54.96 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001466/11.71, allocations: 33.28 kB / 3.762 GB, free: 54.96 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.136e-05/11.71, allocations: 40.73 kB / 3.762 GB, free: 54.96 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002475/11.71, allocations: 0.8229 MB / 3.763 GB, free: 54.95 MB / 0.5105 GB 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.008292/11.72, allocations: 5.536 MB / 3.768 GB, free: 51.11 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001677/11.73, allocations: 0.554 MB / 3.769 GB, free: 51.04 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000453/11.73, allocations: 209.4 kB / 3.769 GB, free: 51.01 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1507/11.88, allocations: 47.36 MB / 3.815 GB, free: 22.27 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.728e-05/11.88, allocations: 37.81 kB / 3.815 GB, free: 22.23 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=39): time 3.316e-06/11.88, allocations: 0 / 3.815 GB, free: 22.23 MB / 0.5105 GB Notification: Performance of matching and sorting (n=44): time 0.008848/11.89, allocations: 2.013 MB / 3.817 GB, free: 21.66 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.733e-05/11.89, allocations: 191.4 kB / 3.817 GB, free: 21.44 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00107/11.89, allocations: 0.5538 MB / 3.818 GB, free: 21.3 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 9.632e-05/11.89, allocations: 36.42 kB / 3.818 GB, free: 21.27 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.000284/11.89, allocations: 429.7 kB / 3.818 GB, free: 20.99 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001822/11.89, allocations: 164.1 kB / 3.818 GB, free: 20.89 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.183e-05/11.89, allocations: 13.72 kB / 3.818 GB, free: 20.89 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 9.436e-05/11.89, allocations: 344.4 kB / 3.819 GB, free: 20.58 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005601/11.89, allocations: 226.1 kB / 3.819 GB, free: 20.57 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007924/11.89, allocations: 0.5714 MB / 3.819 GB, free: 20.12 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007257/11.89, allocations: 341 kB / 3.82 GB, free: 20.09 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.186e-06/11.89, allocations: 3.969 kB / 3.82 GB, free: 20.09 MB / 0.5105 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001958/11.89, allocations: 0.8393 MB / 3.821 GB, free: 20.02 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.998e-05/11.89, allocations: 7.562 kB / 3.821 GB, free: 20.02 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.967e-05/11.89, allocations: 12.41 kB / 3.821 GB, free: 20.02 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006625/11.9, allocations: 276 kB / 3.821 GB, free: 20.01 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002384/11.9, allocations: 282.5 kB / 3.821 GB, free: 20.01 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003098/11.9, allocations: 2.013 MB / 3.823 GB, free: 34.16 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001305/11.9, allocations: 63.47 kB / 3.823 GB, free: 34.15 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001188/11.91, allocations: 44.89 kB / 3.823 GB, free: 34.15 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 10 (volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1],shortPipe.flowModel.states[2].phase,shortPipe.flowModel.states[1].phase,ambient.state.phase,ambient.medium.phase,fixedMassFlowRate.medium.phase,volume.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (94): * Single equations (assignments): 92 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 1} Notification: Performance of prepare postOptimizeDAE: time 0.0003213/11.91, allocations: 166.3 kB / 3.823 GB, free: 34.04 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002379/11.91, allocations: 76.98 kB / 3.823 GB, free: 34 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003191/11.91, allocations: 2.016 MB / 3.825 GB, free: 33.74 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.8e-05/11.91, allocations: 21.92 kB / 3.825 GB, free: 33.74 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/11.91, allocations: 0 / 3.825 GB, free: 33.74 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.26e-05/11.91, allocations: 3.844 kB / 3.825 GB, free: 33.74 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005405/11.91, allocations: 2.989 MB / 3.828 GB, free: 33.28 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.491e-05/11.91, allocations: 8.312 kB / 3.828 GB, free: 33.27 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001852/11.92, allocations: 185.2 kB / 3.829 GB, free: 33.27 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003134/11.92, allocations: 295.2 kB / 3.829 GB, free: 33.26 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001312/11.92, allocations: 11.69 kB / 3.829 GB, free: 33.26 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002336/11.92, allocations: 2.079 MB / 3.831 GB, free: 31.42 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/11.92, allocations: 0 / 3.831 GB, free: 31.42 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003081/11.93, allocations: 1.943 MB / 3.833 GB, free: 30.99 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007466/11.93, allocations: 291 kB / 3.833 GB, free: 30.82 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00018/11.93, allocations: 10.38 kB / 3.833 GB, free: 30.82 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009208/11.93, allocations: 37.38 kB / 3.833 GB, free: 30.81 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001442/11.93, allocations: 31.5 kB / 3.833 GB, free: 30.81 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.243e-05/11.93, allocations: 16.92 kB / 3.833 GB, free: 30.81 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.001132/11.93, allocations: 0.5606 MB / 3.834 GB, free: 30.72 MB / 0.5261 GB Notification: Performance of sort global known variables: time 6.41e-07/11.93, allocations: 2.438 kB / 3.834 GB, free: 30.72 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.006379/11.94, allocations: 1.138 MB / 3.835 GB, free: 30.57 MB / 0.5261 GB 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: 12 ($cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01407/11.95, allocations: 4.088 MB / 3.839 GB, free: 29.22 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.00301/11.95, allocations: 0.8901 MB / 3.84 GB, free: 29.2 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 7.254e-06/11.95, allocations: 3.094 kB / 3.84 GB, free: 29.2 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001846/11.95, allocations: 0.6078 MB / 3.84 GB, free: 29.2 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003535/11.96, allocations: 372 kB / 3.841 GB, free: 29.17 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008365/11.97, allocations: 2.201 MB / 3.843 GB, free: 28.51 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008452/11.97, allocations: 1.117 MB / 3.844 GB, free: 27.8 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007321/11.97, allocations: 383.8 kB / 3.844 GB, free: 27.79 MB / 0.5261 GB Notification: Performance of SimCode: time 1.623e-06/11.97, allocations: 0 / 3.844 GB, free: 27.79 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.122/16.09, allocations: 44.43 MB / 3.888 GB, free: 24.27 MB / 0.5261 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_pT_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_pT.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT_res.mat does not exist to compare? outputFormat=mat