Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_ph",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_ph",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001273/0.001273, allocations: 94.34 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001147/0.001147, allocations: 183 kB / 17.87 MB, free: 5.609 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.41/1.41, allocations: 223.2 MB / 241.8 MB, free: 14.65 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1885/0.1885, allocations: 44.22 MB / 337.1 MB, free: 2.672 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002949/0.000295, allocations: 8 kB / 409.6 MB, free: 27.58 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1081/0.1084, allocations: 61.92 MB / 471.6 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph): time 0.03343/0.1419, allocations: 33.11 MB / 0.4928 GB, free: 12.43 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2674/0.4093, allocations: 17.2 MB / 0.5096 GB, free: 12.45 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001149/0.4105, allocations: 24.81 kB / 0.5097 GB, free: 12.45 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00123/0.4118, allocations: 396.8 kB / 0.51 GB, free: 12.44 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01281/0.4246, allocations: 4.001 MB / 0.5139 GB, free: 12.41 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006719/0.4313, allocations: 2.11 MB / 0.516 GB, free: 12.39 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002239/0.4336, allocations: 1.158 MB / 0.5171 GB, free: 12.39 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006122/0.4342, allocations: 417.6 kB / 0.5175 GB, free: 12.34 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01212/0.4463, allocations: 6.297 MB / 0.5237 GB, free: 12.27 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01375/0.4601, allocations: 8.774 MB / 0.5322 GB, free: 11.78 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002145/0.4604, allocations: 36 kB / 0.5323 GB, free: 11.75 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0174/0.4778, allocations: 7.184 MB / 0.5393 GB, free: 6.164 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006377/0.4785, allocations: 227.8 kB / 0.5395 GB, free: 6.027 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006429/0.4791, allocations: 187.2 kB / 0.5397 GB, free: 5.906 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009301/0.4885, allocations: 3.464 MB / 0.5431 GB, free: 2.969 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.4885, allocations: 0 / 0.5431 GB, free: 2.969 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.314e-06/0.4885, allocations: 0 / 0.5431 GB, free: 2.969 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.18e-05/0.4885, allocations: 0 / 0.5431 GB, free: 2.969 MB / 382.1 MB 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.004676/0.4932, allocations: 1.543 MB / 0.5446 GB, free: 1.48 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.579e-05/0.4933, allocations: 8.031 kB / 0.5446 GB, free: 1.473 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001367/0.4934, allocations: 116.4 kB / 0.5447 GB, free: 1.391 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002036/0.4954, allocations: 312.7 kB / 0.545 GB, free: 1.105 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007958/0.4962, allocations: 0.5404 MB / 0.5455 GB, free: 0.6445 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001055/0.4964, allocations: 114 kB / 0.5456 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.597e-05/0.4965, allocations: 61.86 kB / 0.5457 GB, free: 0.5117 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002358/0.4988, allocations: 1.204 MB / 0.5469 GB, free: 15.5 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.591e-05/0.4989, allocations: 10.7 kB / 0.5469 GB, free: 15.49 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.064e-05/0.4989, allocations: 29.88 kB / 0.5469 GB, free: 15.48 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.991e-05/0.499, allocations: 42.95 kB / 0.5469 GB, free: 15.45 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002433/0.5015, allocations: 1.066 MB / 0.548 GB, free: 14.66 MB / 398.1 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.006108/0.5076, allocations: 5.625 MB / 0.5535 GB, free: 9.449 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00228/0.5099, allocations: 0.7977 MB / 0.5543 GB, free: 8.828 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03202/0.5419, allocations: 15.98 MB / 0.5699 GB, free: 7.273 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.34e-05/0.542, allocations: 43.09 kB / 0.5699 GB, free: 7.23 MB / 414.1 MB Notification: Performance of pre-optimization done (n=45): time 4.358e-06/0.542, allocations: 0 / 0.5699 GB, free: 7.23 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.00676/0.5488, allocations: 2.37 MB / 0.5722 GB, free: 5.301 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.5e-05/0.5489, allocations: 169.3 kB / 0.5724 GB, free: 5.102 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007542/0.5497, allocations: 0.6099 MB / 0.573 GB, free: 4.629 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.758e-05/0.5498, allocations: 34.2 kB / 0.573 GB, free: 4.598 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002417/0.55, allocations: 391.1 kB / 0.5734 GB, free: 4.316 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001351/0.5501, allocations: 178.8 kB / 0.5735 GB, free: 4.172 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.624e-05/0.5502, allocations: 15.56 kB / 0.5736 GB, free: 4.168 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000146/0.5503, allocations: 374.1 kB / 0.5739 GB, free: 3.82 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005752/0.5509, allocations: 289.6 kB / 0.5742 GB, free: 3.625 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00078/0.5517, allocations: 0.6124 MB / 0.5748 GB, free: 2.969 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006851/0.5524, allocations: 380.9 kB / 0.5752 GB, free: 2.727 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.081e-06/0.5524, allocations: 4 kB / 0.5752 GB, free: 2.723 MB / 414.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001757/0.5542, allocations: 0.98 MB / 0.5761 GB, free: 2.027 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.537e-05/0.5542, allocations: 8.219 kB / 0.5761 GB, free: 2.02 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.649e-05/0.5542, allocations: 16 kB / 0.5761 GB, free: 2.004 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000336/0.5546, allocations: 62.39 kB / 0.5762 GB, free: 1.953 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001275/0.5559, allocations: 311 kB / 0.5765 GB, free: 1.672 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001453/0.5573, allocations: 1.997 MB / 0.5784 GB, free: 15.63 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006789/0.558, allocations: 80.64 kB / 0.5785 GB, free: 15.56 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.844e-05/0.5581, allocations: 42.55 kB / 0.5786 GB, free: 15.53 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 10 (volume.heatTransfer.states[1].phase,fixedMassFlowRate.medium.phase,ambient.medium.phase,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) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (95): * Single equations (assignments): 93 * 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 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0004076/0.5585, allocations: 278.7 kB / 0.5788 GB, free: 15.32 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001394/0.5587, allocations: 75.11 kB / 0.5789 GB, free: 15.25 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002947/0.5616, allocations: 2.594 MB / 0.5814 GB, free: 13.5 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.49e-05/0.5617, allocations: 32.95 kB / 0.5815 GB, free: 13.48 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.335e-06/0.5617, allocations: 0 / 0.5815 GB, free: 13.48 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.498e-06/0.5617, allocations: 7.984 kB / 0.5815 GB, free: 13.47 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004178/0.5659, allocations: 3.789 MB / 0.5852 GB, free: 10.78 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.718e-06/0.5659, allocations: 0 / 0.5852 GB, free: 10.78 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001146/0.567, allocations: 246.7 kB / 0.5854 GB, free: 10.54 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004126/0.5675, allocations: 88.78 kB / 0.5855 GB, free: 10.45 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.198e-05/0.5675, allocations: 12 kB / 0.5855 GB, free: 10.44 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001426/0.5689, allocations: 2.007 MB / 0.5875 GB, free: 8.289 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.277e-06/0.569, allocations: 7.891 kB / 0.5875 GB, free: 8.281 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003002/0.572, allocations: 2.39 MB / 0.5898 GB, free: 5.867 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005227/0.5725, allocations: 333.3 kB / 0.5901 GB, free: 5.523 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001107/0.5726, allocations: 12 kB / 0.5901 GB, free: 5.512 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005519/0.5732, allocations: 70.55 kB / 0.5902 GB, free: 5.445 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001231/0.5733, allocations: 48.48 kB / 0.5903 GB, free: 5.395 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.396e-05/0.5734, allocations: 19.98 kB / 0.5903 GB, free: 5.375 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0007547/0.5741, allocations: 0.5537 MB / 0.5908 GB, free: 4.82 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.5741, allocations: 0 / 0.5908 GB, free: 4.82 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.004138/0.5783, allocations: 1.097 MB / 0.5919 GB, free: 3.723 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (volume.medium.p,volume.medium.h) * Number of discrete variables: 21 ($cse2.region3boundary,$cse3.region3boundary,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse11.phase,$cse11.region,$cse13.phase,$cse13.region,$cse14.phase,$cse14.region,volume.heatTransfer.states[1].phase,fixedMassFlowRate.medium.phase,ambient.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * 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 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.007736/0.586, allocations: 4.107 MB / 0.5959 GB, free: 15.7 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002316/0.5884, allocations: 1.119 MB / 0.597 GB, free: 14.62 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.489e-06/0.5884, allocations: 0 / 0.597 GB, free: 14.62 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001434/0.5898, allocations: 0.8181 MB / 0.5978 GB, free: 13.82 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001858/0.5917, allocations: 369.2 kB / 0.5981 GB, free: 13.46 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01262/0.6043, allocations: 13.31 MB / 0.6111 GB, free: 15.93 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006541/0.605, allocations: 1.189 MB / 0.6123 GB, free: 14.71 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001044/0.6061, allocations: 440.8 kB / 0.6127 GB, free: 14.29 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005202/0.6066, allocations: 439.3 kB / 0.6131 GB, free: 13.86 MB / 462.1 MB Notification: Performance of SimCode: time 8.52e-07/0.6066, allocations: 0 / 0.6131 GB, free: 13.86 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09054/0.6972, allocations: 57.12 MB / 0.6689 GB, free: 5.094 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001955/0.6974, allocations: 278 kB / 0.6692 GB, free: 4.734 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.657/5.354, allocations: 4 kB / 0.6692 GB, free: 4.73 MB / 0.4981 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_ph_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_ph.fmu > ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph_res.mat does not exist to compare? outputFormat=mat