Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_LinearFluid_LinearWater_pT",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT,fileNamePrefix="ModelicaTest_trunk_cpp_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/Complex trunk/package.mo): time 0.001017/0.00102, allocations: 191.1 kB / 16.09 MB, free: 5.68 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.279/1.279, allocations: 226.5 MB / 243.4 MB, free: 6.477 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007756/0.0007755, allocations: 99.36 kB / 295.5 MB, free: 6.691 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3498/0.3498, allocations: 44.82 MB / 392.3 MB, free: 35.68 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000324/0.0003244, allocations: 11.94 kB / 465.4 MB, free: 12.55 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3304/0.3307, allocations: 62.97 MB / 0.516 GB, free: 37.34 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT): time 0.03161/0.3624, allocations: 41.36 MB / 0.5564 GB, free: 7.996 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.005554/0.368, allocations: 4.227 MB / 0.5605 GB, free: 4.98 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007986/0.3688, allocations: 26.56 kB / 0.5605 GB, free: 4.965 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008099/0.3697, allocations: 257.7 kB / 0.5608 GB, free: 4.828 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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 trunk/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 trunk/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 trunk/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.002036/0.3717, allocations: 0.8369 MB / 0.5616 GB, free: 4.355 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002209/0.3739, allocations: 0.7125 MB / 0.5623 GB, free: 4.012 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.003149/0.3771, allocations: 2.214 MB / 0.5644 GB, free: 3.195 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009769/0.3781, allocations: 405.2 kB / 0.5648 GB, free: 2.992 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1151/0.4932, allocations: 73.56 MB / 0.6367 GB, free: 13.75 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02066/0.5139, allocations: 13.73 MB / 0.6501 GB, free: 12 kB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002349/0.5142, allocations: 32.05 kB / 0.6501 GB, free: 15.98 MB / 474.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03012/0.5443, allocations: 18.78 MB / 0.6684 GB, free: 13.2 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006158/0.545, allocations: 231.2 kB / 0.6687 GB, free: 12.97 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007108/0.5457, allocations: 376.1 kB / 0.669 GB, free: 12.59 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001137/0.5469, allocations: 0.7871 MB / 0.6698 GB, free: 11.8 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.5469, allocations: 0 / 0.6698 GB, free: 11.8 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.645e-06/0.5469, allocations: 0 / 0.6698 GB, free: 11.8 MB / 490.7 MB Notification: Performance of Transformations before backend: time 9.668e-06/0.5469, allocations: 0 / 0.6698 GB, free: 11.8 MB / 490.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.002045/0.549, allocations: 0.9194 MB / 0.6707 GB, free: 10.84 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.629e-05/0.549, allocations: 12.03 kB / 0.6707 GB, free: 10.82 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001314/0.5492, allocations: 98.69 kB / 0.6708 GB, free: 10.72 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002956/0.5495, allocations: 91.98 kB / 0.6709 GB, free: 10.63 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000766/0.5502, allocations: 0.4938 MB / 0.6714 GB, free: 10.09 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001046/0.5504, allocations: 105 kB / 0.6715 GB, free: 9.98 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.997e-05/0.5505, allocations: 59.84 kB / 0.6715 GB, free: 9.922 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001265/0.5517, allocations: 0.8136 MB / 0.6723 GB, free: 9.031 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.318e-05/0.5518, allocations: 3.938 kB / 0.6723 GB, free: 9.027 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.981e-05/0.5519, allocations: 31.91 kB / 0.6723 GB, free: 8.996 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.926e-05/0.5519, allocations: 40.98 kB / 0.6724 GB, free: 8.957 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00103/0.553, allocations: 0.64 MB / 0.673 GB, free: 8.316 MB / 490.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.004985/0.5579, allocations: 4.205 MB / 0.6771 GB, free: 3.82 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008575/0.5588, allocations: 416 kB / 0.6775 GB, free: 3.406 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003204/0.5592, allocations: 213.4 kB / 0.6777 GB, free: 3.195 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005198/0.5597, allocations: 0.495 MB / 0.6782 GB, free: 2.59 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.402e-05/0.5597, allocations: 42.89 kB / 0.6782 GB, free: 2.539 MB / 490.7 MB Notification: Performance of pre-optimization done (n=40): time 2.925e-06/0.5597, allocations: 0 / 0.6782 GB, free: 2.539 MB / 490.7 MB Notification: Performance of matching and sorting (n=45): time 0.003247/0.563, allocations: 1.539 MB / 0.6797 GB, free: 0.9453 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.473e-05/0.5631, allocations: 136.5 kB / 0.6799 GB, free: 0.7812 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006443/0.5637, allocations: 0.5616 MB / 0.6804 GB, free: 216 kB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 4.241e-05/0.5638, allocations: 37.7 kB / 0.6805 GB, free: 172 kB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.2011/0.7649, allocations: 348.2 kB / 0.6808 GB, free: 145.9 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001923/0.7651, allocations: 165.1 kB / 0.6809 GB, free: 145.8 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.284e-05/0.7651, allocations: 14.19 kB / 0.681 GB, free: 145.8 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001149/0.7653, allocations: 378.1 kB / 0.6813 GB, free: 145.5 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004338/0.7657, allocations: 221.9 kB / 0.6815 GB, free: 145.5 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005038/0.7662, allocations: 0.5254 MB / 0.682 GB, free: 145.1 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008728/0.7671, allocations: 0.769 MB / 0.6828 GB, free: 144.6 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.49e-06/0.7671, allocations: 6.688 kB / 0.6828 GB, free: 144.6 MB / 490.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001853/0.769, allocations: 0.9655 MB / 0.6837 GB, free: 144.2 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.165e-05/0.769, allocations: 9.188 kB / 0.6838 GB, free: 144.2 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.402e-05/0.769, allocations: 9.5 kB / 0.6838 GB, free: 144.2 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001014/0.77, allocations: 270 kB / 0.684 GB, free: 144.2 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003577/0.7704, allocations: 122.4 kB / 0.6841 GB, free: 144.2 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006855/0.7711, allocations: 0.8724 MB / 0.685 GB, free: 143.5 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004902/0.7716, allocations: 47.89 kB / 0.685 GB, free: 143.5 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.099e-05/0.7717, allocations: 30.19 kB / 0.6851 GB, free: 143.5 MB / 490.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.0002466/0.7719, allocations: 248 kB / 0.6853 GB, free: 143.3 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.255e-05/0.772, allocations: 68.09 kB / 0.6854 GB, free: 143.3 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001079/0.7731, allocations: 0.7097 MB / 0.6861 GB, free: 143 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.689e-06/0.7731, allocations: 13.45 kB / 0.6861 GB, free: 143 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.7731, allocations: 0 / 0.6861 GB, free: 143 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.412e-06/0.7731, allocations: 6.297 kB / 0.6861 GB, free: 143 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00167/0.7748, allocations: 1.392 MB / 0.6874 GB, free: 142.2 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.569e-06/0.7748, allocations: 7.812 kB / 0.6874 GB, free: 142.2 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008818/0.7757, allocations: 199.2 kB / 0.6876 GB, free: 142.2 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002526/0.776, allocations: 59.97 kB / 0.6877 GB, free: 142.2 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.383e-05/0.776, allocations: 13.78 kB / 0.6877 GB, free: 142.1 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00148/0.7775, allocations: 2.784 MB / 0.6904 GB, free: 139.4 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.7775, allocations: 10.78 kB / 0.6904 GB, free: 139.4 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001151/0.7787, allocations: 1 MB / 0.6914 GB, free: 138.9 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001921/0.7789, allocations: 200.3 kB / 0.6916 GB, free: 138.7 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.612e-05/0.779, allocations: 16.34 kB / 0.6916 GB, free: 138.7 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003891/0.7794, allocations: 25.14 kB / 0.6916 GB, free: 138.7 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.991e-05/0.7795, allocations: 34.41 kB / 0.6917 GB, free: 138.7 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.991e-05/0.7795, allocations: 22.59 kB / 0.6917 GB, free: 138.7 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0003432/0.7799, allocations: 393.2 kB / 0.6921 GB, free: 138.5 MB / 490.7 MB Notification: Performance of sort global known variables: time 6.71e-07/0.7799, allocations: 6.719 kB / 0.6921 GB, free: 138.5 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0006492/0.7805, allocations: 208.9 kB / 0.6923 GB, free: 138.5 MB / 490.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.001615/0.7821, allocations: 1.658 MB / 0.6939 GB, free: 137.4 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0009299/0.7831, allocations: 0.6047 MB / 0.6945 GB, free: 137.2 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.7831, allocations: 0.5469 kB / 0.6945 GB, free: 137.2 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009394/0.784, allocations: 477.4 kB / 0.6949 GB, free: 137 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001558/0.7856, allocations: 340.1 kB / 0.6953 GB, free: 136.9 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005038/0.7907, allocations: 4.385 MB / 0.6995 GB, free: 134.5 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002871/0.791, allocations: 0.9344 MB / 0.7005 GB, free: 133.8 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002803/0.7913, allocations: 237.7 kB / 0.7007 GB, free: 133.6 MB / 490.7 MB Notification: Performance of SimCode: time 5.52e-07/0.7913, allocations: 0 / 0.7007 GB, free: 133.6 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.251/5.042, allocations: 16.14 MB / 0.7165 GB, free: 128.8 MB / 490.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_LinearFluid_LinearWater_pT_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_LinearFluid_LinearWater_pT.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT_res.mat does not exist to compare? outputFormat=mat