Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.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.LinearFluid.LinearColdWater,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_LinearFluid_LinearColdWater",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_LinearFluid_LinearColdWater",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.0008749/0.0008749, allocations: 174.7 kB / 16.72 MB, free: 5.082 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.278/1.278, allocations: 205.4 MB / 222.9 MB, free: 9.023 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.0007991/0.0007989, allocations: 96.95 kB / 271.2 MB, free: 8.23 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3372/0.3372, allocations: 43.58 MB / 363.1 MB, free: 51.93 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003935/0.0003936, allocations: 8 kB / 432.1 MB, free: 5.469 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1241/0.1245, allocations: 58.85 MB / 490.9 MB, free: 10.53 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater): time 0.2466/0.3712, allocations: 19.19 MB / 0.4982 GB, free: 35.48 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.006511/0.3777, allocations: 4.145 MB / 0.5022 GB, free: 34.48 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001122/0.3789, allocations: 22.81 kB / 0.5022 GB, free: 34.47 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008665/0.3798, allocations: 256 kB / 0.5025 GB, free: 34.33 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:788:36-789:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:786:36-787:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:734:36-735:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:732:36-733:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.002214/0.382, allocations: 0.8389 MB / 0.5033 GB, free: 33.86 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002571/0.3846, allocations: 0.7083 MB / 0.504 GB, free: 33.52 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.002724/0.3873, allocations: 2.209 MB / 0.5062 GB, free: 32.71 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007215/0.3881, allocations: 387 kB / 0.5065 GB, free: 32.59 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001774/0.3898, allocations: 0.8067 MB / 0.5073 GB, free: 32.27 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008742/0.3907, allocations: 0.6329 MB / 0.5079 GB, free: 32.05 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 9.609e-05/0.3908, allocations: 31.78 kB / 0.508 GB, free: 32.05 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008218/0.3917, allocations: 248.8 kB / 0.5082 GB, free: 31.99 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002201/0.3919, allocations: 232 kB / 0.5084 GB, free: 31.91 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003713/0.3923, allocations: 378.5 kB / 0.5088 GB, free: 31.71 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000786/0.3931, allocations: 0.7909 MB / 0.5096 GB, free: 31.54 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.3931, allocations: 0 / 0.5096 GB, free: 31.54 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.415e-06/0.3931, allocations: 1.312 kB / 0.5096 GB, free: 31.54 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.018e-05/0.3931, allocations: 0 / 0.5096 GB, free: 31.54 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 130 * Number of variables: 130 Notification: Performance of Generate backend data structure: time 0.002035/0.3952, allocations: 0.9151 MB / 0.5104 GB, free: 30.89 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.474e-05/0.3952, allocations: 16.3 kB / 0.5105 GB, free: 30.89 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001268/0.3954, allocations: 98.05 kB / 0.5106 GB, free: 30.82 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003044/0.3957, allocations: 87.81 kB / 0.5106 GB, free: 30.78 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007624/0.3964, allocations: 0.5044 MB / 0.5111 GB, free: 30.42 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000108/0.3966, allocations: 102.3 kB / 0.5112 GB, free: 30.34 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.666e-05/0.3967, allocations: 51.42 kB / 0.5113 GB, free: 30.32 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001196/0.3979, allocations: 0.8207 MB / 0.5121 GB, free: 29.86 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.1e-05/0.3979, allocations: 6.812 kB / 0.5121 GB, free: 29.86 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.311e-05/0.398, allocations: 18.53 kB / 0.5121 GB, free: 29.84 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.516e-05/0.398, allocations: 41.64 kB / 0.5121 GB, free: 29.84 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009374/0.399, allocations: 0.639 MB / 0.5128 GB, free: 29.62 MB / 378.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.003863/0.4028, allocations: 4.225 MB / 0.5169 GB, free: 26.2 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007993/0.4037, allocations: 412.6 kB / 0.5173 GB, free: 26.03 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002833/0.4039, allocations: 208.6 kB / 0.5175 GB, free: 25.95 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004055/0.4044, allocations: 0.4969 MB / 0.518 GB, free: 25.38 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.736e-05/0.4044, allocations: 42.17 kB / 0.518 GB, free: 25.33 MB / 378.7 MB Notification: Performance of pre-optimization done (n=40): time 2.846e-06/0.4044, allocations: 0 / 0.518 GB, free: 25.33 MB / 378.7 MB Notification: Performance of matching and sorting (n=45): time 0.003113/0.4075, allocations: 1.534 MB / 0.5195 GB, free: 24.5 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.184e-05/0.4076, allocations: 135 kB / 0.5196 GB, free: 24.35 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005853/0.4082, allocations: 0.5613 MB / 0.5202 GB, free: 24.09 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.921e-05/0.4082, allocations: 36.8 kB / 0.5202 GB, free: 24.05 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001728/0.4084, allocations: 358.3 kB / 0.5206 GB, free: 23.77 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.451e-05/0.4085, allocations: 157 kB / 0.5207 GB, free: 23.64 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.315e-05/0.4086, allocations: 15.22 kB / 0.5207 GB, free: 23.63 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.036e-05/0.4087, allocations: 383.5 kB / 0.5211 GB, free: 23.29 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003022/0.409, allocations: 217.7 kB / 0.5213 GB, free: 23.21 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004255/0.4094, allocations: 0.5215 MB / 0.5218 GB, free: 22.74 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007903/0.4102, allocations: 0.7756 MB / 0.5226 GB, free: 22.14 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.469e-06/0.4102, allocations: 3.375 kB / 0.5226 GB, free: 22.14 MB / 378.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001713/0.4119, allocations: 0.9613 MB / 0.5235 GB, free: 21.74 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.314e-05/0.412, allocations: 8.938 kB / 0.5235 GB, free: 21.74 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.256e-05/0.412, allocations: 9.516 kB / 0.5235 GB, free: 21.74 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001124/0.4131, allocations: 278.1 kB / 0.5238 GB, free: 21.67 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004049/0.4135, allocations: 124.5 kB / 0.5239 GB, free: 21.66 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008574/0.4144, allocations: 0.8644 MB / 0.5248 GB, free: 21 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006557/0.4151, allocations: 49.58 kB / 0.5248 GB, free: 20.98 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.366e-05/0.4151, allocations: 32.59 kB / 0.5248 GB, free: 20.97 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * Number of states: 0 () * Number of discrete variables: 4 (volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (73): * Single equations (assignments): 72 * 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 {2 14} Notification: Performance of prepare postOptimizeDAE: time 0.0003472/0.4155, allocations: 250.4 kB / 0.5251 GB, free: 20.79 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.783e-05/0.4156, allocations: 64.19 kB / 0.5251 GB, free: 20.75 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001276/0.4169, allocations: 0.7138 MB / 0.5258 GB, free: 20.43 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.644e-05/0.4169, allocations: 7.125 kB / 0.5258 GB, free: 20.43 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.112e-05/0.4169, allocations: 3.219 kB / 0.5258 GB, free: 20.43 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.846e-06/0.4169, allocations: 3.188 kB / 0.5258 GB, free: 20.43 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002231/0.4192, allocations: 1.393 MB / 0.5272 GB, free: 19.64 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.993e-06/0.4192, allocations: 3.25 kB / 0.5272 GB, free: 19.64 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009605/0.4202, allocations: 198 kB / 0.5274 GB, free: 19.62 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002996/0.4205, allocations: 65.75 kB / 0.5275 GB, free: 19.61 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.051e-05/0.4205, allocations: 10.69 kB / 0.5275 GB, free: 19.6 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001894/0.4224, allocations: 2.793 MB / 0.5302 GB, free: 16.84 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.388e-06/0.4224, allocations: 3.031 kB / 0.5302 GB, free: 16.84 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001391/0.4238, allocations: 0.9956 MB / 0.5312 GB, free: 16.29 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002895/0.4241, allocations: 204.5 kB / 0.5314 GB, free: 16.12 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.43e-05/0.4242, allocations: 21.27 kB / 0.5314 GB, free: 16.11 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003893/0.4246, allocations: 20.16 kB / 0.5314 GB, free: 16.11 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001187/0.4248, allocations: 44.53 kB / 0.5314 GB, free: 16.09 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.368e-05/0.4248, allocations: 24.27 kB / 0.5315 GB, free: 16.09 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004537/0.4253, allocations: 394.7 kB / 0.5318 GB, free: 15.91 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4253, allocations: 0 / 0.5318 GB, free: 15.91 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000843/0.4261, allocations: 202.8 kB / 0.532 GB, free: 15.89 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (47): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001888/0.428, allocations: 1.679 MB / 0.5337 GB, free: 14.75 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001105/0.4291, allocations: 0.5897 MB / 0.5343 GB, free: 14.55 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.5e-06/0.4292, allocations: 0 / 0.5343 GB, free: 14.55 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001042/0.4302, allocations: 480.2 kB / 0.5347 GB, free: 14.34 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001821/0.432, allocations: 324.5 kB / 0.535 GB, free: 14.26 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00661/0.4387, allocations: 4.37 MB / 0.5393 GB, free: 11.81 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004059/0.4391, allocations: 0.935 MB / 0.5402 GB, free: 11.09 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003462/0.4395, allocations: 241.5 kB / 0.5404 GB, free: 10.93 MB / 378.7 MB Notification: Performance of SimCode: time 9.72e-07/0.4395, allocations: 0 / 0.5404 GB, free: 10.93 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.339/4.779, allocations: 16.13 MB / 0.5562 GB, free: 5.027 MB / 378.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_LinearFluid_LinearColdWater_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_LinearFluid_LinearColdWater.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater_res.mat does not exist to compare? outputFormat=mat