Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.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.LinearFluid.LinearWater_pT,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_LinearFluid_LinearWater_pT",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_LinearFluid_LinearWater_pT",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.0008633/0.0008633, allocations: 98.3 kB / 17 MB, free: 6.418 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.000826/0.000826, allocations: 188.6 kB / 17.89 MB, free: 5.945 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.399/1.399, allocations: 223.2 MB / 241.9 MB, free: 256 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2046/0.2046, allocations: 44.23 MB / 337.2 MB, free: 2.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003208/0.0003208, allocations: 15.98 kB / 409.7 MB, free: 27.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09689/0.09723, allocations: 61.91 MB / 471.7 MB, free: 13.6 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT): time 0.03997/0.1372, allocations: 41.22 MB / 0.5009 GB, free: 4.266 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005491/0.1427, allocations: 4.228 MB / 0.505 GB, free: 28 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008043/0.1436, allocations: 27.75 kB / 0.505 GB, free: 0 / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2306/0.3741, allocations: 251.7 kB / 0.5053 GB, free: 12.53 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Fluid/Sources.mo:784:36-785:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Fluid/Sources.mo:782:36-783:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Fluid/Sources.mo:730:36-731:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Fluid/Sources.mo:728:36-729:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.002523/0.3767, allocations: 0.7857 MB / 0.506 GB, free: 12.53 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002337/0.3791, allocations: 0.6969 MB / 0.5067 GB, free: 12.52 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00313/0.3822, allocations: 2.201 MB / 0.5088 GB, free: 12.52 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007905/0.383, allocations: 376.3 kB / 0.5092 GB, free: 12.49 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1147/0.4977, allocations: 73.5 MB / 0.581 GB, free: 10.36 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02393/0.5217, allocations: 13.72 MB / 0.5944 GB, free: 13.91 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000189/0.5219, allocations: 32 kB / 0.5944 GB, free: 13.88 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02629/0.5482, allocations: 18.72 MB / 0.6127 GB, free: 12.68 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004285/0.5487, allocations: 233.9 kB / 0.6129 GB, free: 12.52 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002986/0.549, allocations: 158.1 kB / 0.6131 GB, free: 12.39 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008306/0.5498, allocations: 0.7733 MB / 0.6138 GB, free: 11.72 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.097e-06/0.5498, allocations: 0 / 0.6138 GB, free: 11.72 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.5498, allocations: 0 / 0.6138 GB, free: 11.72 MB / 462.1 MB Notification: Performance of Transformations before backend: time 7.414e-06/0.5499, allocations: 1.422 kB / 0.6138 GB, free: 11.72 MB / 462.1 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.001634/0.5515, allocations: 0.9252 MB / 0.6147 GB, free: 10.81 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.342e-05/0.5515, allocations: 13.34 kB / 0.6147 GB, free: 10.8 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001019/0.5517, allocations: 95.36 kB / 0.6148 GB, free: 10.73 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002726/0.5519, allocations: 90.95 kB / 0.6149 GB, free: 10.64 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006072/0.5525, allocations: 488.1 kB / 0.6154 GB, free: 10.2 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.86e-05/0.5526, allocations: 114.6 kB / 0.6155 GB, free: 10.1 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.857e-05/0.5527, allocations: 48.81 kB / 0.6155 GB, free: 10.07 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001017/0.5537, allocations: 0.8143 MB / 0.6163 GB, free: 9.402 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.649e-05/0.5538, allocations: 0.75 kB / 0.6163 GB, free: 9.402 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.652e-05/0.5538, allocations: 23.25 kB / 0.6164 GB, free: 9.395 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.876e-05/0.5539, allocations: 44.17 kB / 0.6164 GB, free: 9.355 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008731/0.5548, allocations: 0.6389 MB / 0.617 GB, free: 8.922 MB / 462.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.003673/0.5584, allocations: 4.222 MB / 0.6212 GB, free: 5.008 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006825/0.5591, allocations: 402.9 kB / 0.6215 GB, free: 4.742 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002728/0.5594, allocations: 211.3 kB / 0.6217 GB, free: 4.609 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003771/0.5598, allocations: 0.5045 MB / 0.6222 GB, free: 4.008 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.529e-05/0.5598, allocations: 42.41 kB / 0.6223 GB, free: 3.961 MB / 462.1 MB Notification: Performance of pre-optimization done (n=40): time 1.483e-06/0.5599, allocations: 0 / 0.6223 GB, free: 3.961 MB / 462.1 MB Notification: Performance of matching and sorting (n=45): time 0.002691/0.5625, allocations: 1.528 MB / 0.6238 GB, free: 2.648 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.271e-05/0.5626, allocations: 136.5 kB / 0.6239 GB, free: 2.484 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006161/0.5632, allocations: 0.5653 MB / 0.6244 GB, free: 1.91 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 3.832e-05/0.5633, allocations: 33.7 kB / 0.6245 GB, free: 1.871 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002168/0.5635, allocations: 354.6 kB / 0.6248 GB, free: 1.523 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001641/0.5637, allocations: 165.2 kB / 0.625 GB, free: 1.363 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.315e-05/0.5637, allocations: 16 kB / 0.625 GB, free: 1.348 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001385/0.5639, allocations: 378.7 kB / 0.6253 GB, free: 0.9688 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003336/0.5642, allocations: 223.5 kB / 0.6256 GB, free: 0.7539 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004964/0.5647, allocations: 0.5162 MB / 0.6261 GB, free: 104 kB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004489/0.5652, allocations: 314.5 kB / 0.6264 GB, free: 15.8 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.5652, allocations: 4 kB / 0.6264 GB, free: 15.8 MB / 478.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001692/0.5669, allocations: 0.9563 MB / 0.6273 GB, free: 14.83 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.415e-05/0.5669, allocations: 11.95 kB / 0.6273 GB, free: 14.82 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.515e-05/0.5669, allocations: 15.98 kB / 0.6273 GB, free: 14.8 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001014/0.568, allocations: 274.3 kB / 0.6276 GB, free: 14.53 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003852/0.5684, allocations: 123.8 kB / 0.6277 GB, free: 14.41 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008786/0.5693, allocations: 0.8653 MB / 0.6286 GB, free: 13.52 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004562/0.5697, allocations: 44.8 kB / 0.6286 GB, free: 13.48 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.877e-05/0.5698, allocations: 39.98 kB / 0.6286 GB, free: 13.44 MB / 478.1 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.0002843/0.5701, allocations: 246 kB / 0.6289 GB, free: 13.19 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.779e-05/0.5702, allocations: 67.16 kB / 0.6289 GB, free: 13.12 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001222/0.5714, allocations: 0.7131 MB / 0.6296 GB, free: 12.4 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.458e-06/0.5714, allocations: 6.297 kB / 0.6296 GB, free: 12.4 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.5714, allocations: 4 kB / 0.6296 GB, free: 12.39 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.525e-06/0.5715, allocations: 3.984 kB / 0.6296 GB, free: 12.39 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001907/0.5734, allocations: 1.402 MB / 0.631 GB, free: 10.91 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.39e-06/0.5734, allocations: 4 kB / 0.631 GB, free: 10.91 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001171/0.5746, allocations: 187.8 kB / 0.6312 GB, free: 10.73 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002581/0.5748, allocations: 68.94 kB / 0.6313 GB, free: 10.66 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.64e-05/0.5749, allocations: 15.98 kB / 0.6313 GB, free: 10.64 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002055/0.5769, allocations: 2.791 MB / 0.634 GB, free: 7.594 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/0.577, allocations: 0 / 0.634 GB, free: 7.594 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001453/0.5784, allocations: 0.9993 MB / 0.635 GB, free: 6.559 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002798/0.5787, allocations: 200.2 kB / 0.6352 GB, free: 6.344 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.748e-05/0.5788, allocations: 12 kB / 0.6352 GB, free: 6.332 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003738/0.5792, allocations: 39.75 kB / 0.6352 GB, free: 6.297 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.23e-05/0.5793, allocations: 31.95 kB / 0.6352 GB, free: 6.266 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.27e-05/0.5793, allocations: 19.98 kB / 0.6353 GB, free: 6.246 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0004532/0.5798, allocations: 390.8 kB / 0.6356 GB, free: 5.867 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.152e-06/0.5798, allocations: 0 / 0.6356 GB, free: 5.867 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0008029/0.5806, allocations: 222.5 kB / 0.6359 GB, free: 5.652 MB / 478.1 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.002183/0.5828, allocations: 1.662 MB / 0.6375 GB, free: 3.957 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.001176/0.584, allocations: 0.5979 MB / 0.6381 GB, free: 3.359 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.584, allocations: 4 kB / 0.6381 GB, free: 3.355 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001061/0.5851, allocations: 492.8 kB / 0.6385 GB, free: 2.863 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001548/0.5866, allocations: 324.5 kB / 0.6388 GB, free: 2.559 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006134/0.5928, allocations: 4.333 MB / 0.6431 GB, free: 14.04 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004817/0.5933, allocations: 0.9387 MB / 0.644 GB, free: 13.07 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0007451/0.594, allocations: 211.5 kB / 0.6442 GB, free: 12.88 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003065/0.5944, allocations: 235.4 kB / 0.6444 GB, free: 12.65 MB / 494.1 MB Notification: Performance of SimCode: time 5.61e-07/0.5944, allocations: 0 / 0.6444 GB, free: 12.65 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06728/0.6617, allocations: 20.02 MB / 0.664 GB, free: 9.066 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00025/0.6619, allocations: 303.3 kB / 0.6643 GB, free: 8.703 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.367/3.029, allocations: 6.984 kB / 0.6643 GB, free: 8.699 MB / 0.4981 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_LinearFluid_LinearWater_pT_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_LinearFluid_LinearWater_pT.fmu > ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT_res.mat does not exist to compare? outputFormat=mat