Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.MoistAir.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.Air.MoistAir,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Air_MoistAir",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.MoistAir,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Air_MoistAir",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.001601/0.001601, allocations: 175.1 kB / 16.72 MB, free: 5.055 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.303/1.303, 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.0007312/0.0007315, allocations: 90.36 kB / 271.2 MB, free: 8.246 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.3626/0.3626, allocations: 43.56 MB / 363.1 MB, free: 51.89 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00036/0.0003603, allocations: 12 kB / 432.1 MB, free: 5.48 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1236/0.124, allocations: 58.85 MB / 490.9 MB, free: 10.54 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.MoistAir): time 0.4126/0.5366, allocations: 179.4 MB / 0.6546 GB, free: 2.934 MB / 474.7 MB Notification: Performance of NFInst.instExpressions: time 0.01324/0.5499, allocations: 9.675 MB / 0.664 GB, free: 9.242 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001229/0.5512, allocations: 27.75 kB / 0.6641 GB, free: 9.215 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001216/0.5524, allocations: 366 kB / 0.6644 GB, free: 8.855 MB / 490.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.007416/0.5598, allocations: 2.245 MB / 0.6666 GB, free: 6.605 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007128/0.567, allocations: 2.173 MB / 0.6687 GB, free: 4.445 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.003744/0.5707, allocations: 2.66 MB / 0.6713 GB, free: 1.781 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001236/0.572, allocations: 0.4991 MB / 0.6718 GB, free: 1.273 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.3364/0.9084, allocations: 1.753 MB / 0.6735 GB, free: 5.98 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002276/0.9107, allocations: 0.8637 MB / 0.6744 GB, free: 5.98 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002733/0.911, allocations: 45.78 kB / 0.6744 GB, free: 5.98 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01264/0.9237, allocations: 5.838 MB / 0.6801 GB, free: 5.98 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000969/0.9247, allocations: 383.2 kB / 0.6805 GB, free: 5.98 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009251/0.9256, allocations: 0.4916 MB / 0.681 GB, free: 5.949 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006866/0.9325, allocations: 2.828 MB / 0.6837 GB, free: 5.879 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.513e-06/0.9325, allocations: 0 / 0.6837 GB, free: 5.879 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.204e-06/0.9326, allocations: 1.812 kB / 0.6837 GB, free: 5.879 MB / 490.7 MB Notification: Performance of Transformations before backend: time 1.646e-05/0.9326, allocations: 2.625 kB / 0.6837 GB, free: 5.879 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: 186 * Number of variables: 186 Notification: Performance of Generate backend data structure: time 0.004986/0.9376, allocations: 1.605 MB / 0.6853 GB, free: 21.01 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.931e-05/0.9376, allocations: 14.89 kB / 0.6853 GB, free: 21.01 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002142/0.9379, allocations: 123.5 kB / 0.6854 GB, free: 20.97 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003944/0.9383, allocations: 115.4 kB / 0.6855 GB, free: 20.93 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000982/0.9393, allocations: 0.5924 MB / 0.6861 GB, free: 20.65 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001251/0.9394, allocations: 121.6 kB / 0.6862 GB, free: 20.59 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001233/0.9395, allocations: 68.69 kB / 0.6863 GB, free: 20.59 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001813/0.9413, allocations: 1.162 MB / 0.6874 GB, free: 20.41 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.779e-05/0.9414, allocations: 6.156 kB / 0.6874 GB, free: 20.41 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.725e-05/0.9415, allocations: 28.03 kB / 0.6875 GB, free: 20.41 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.247e-05/0.9416, allocations: 65.94 kB / 0.6875 GB, free: 20.4 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001703/0.9433, allocations: 1.16 MB / 0.6887 GB, free: 20.4 MB / 0.4948 GB 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.006392/0.9497, allocations: 5.006 MB / 0.6935 GB, free: 17.75 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001565/0.9513, allocations: 0.8359 MB / 0.6944 GB, free: 17.71 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005745/0.9519, allocations: 424.2 kB / 0.6948 GB, free: 17.7 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00159/0.9535, allocations: 1.895 MB / 0.6966 GB, free: 15.73 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.78e-05/0.9535, allocations: 46.88 kB / 0.6967 GB, free: 15.69 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=70): time 2.826e-06/0.9535, allocations: 0 / 0.6967 GB, free: 15.69 MB / 0.4948 GB Notification: Performance of matching and sorting (n=82): time 0.01314/0.9667, allocations: 4.151 MB / 0.7007 GB, free: 15.16 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.404e-05/0.9668, allocations: 120.3 kB / 0.7008 GB, free: 15.04 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007701/0.9676, allocations: 0.6535 MB / 0.7015 GB, free: 14.9 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 9.654e-05/0.9677, allocations: 39.8 kB / 0.7015 GB, free: 14.87 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002155/0.9679, allocations: 387.4 kB / 0.7019 GB, free: 14.67 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002327/0.9681, allocations: 289.7 kB / 0.7021 GB, free: 14.49 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.471e-05/0.9682, allocations: 22.69 kB / 0.7022 GB, free: 14.48 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001914/0.9684, allocations: 392.3 kB / 0.7025 GB, free: 14.17 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009625/0.9694, allocations: 494.4 kB / 0.703 GB, free: 14.17 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001198/0.9706, allocations: 0.761 MB / 0.7038 GB, free: 13.86 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002252/0.9728, allocations: 1.287 MB / 0.705 GB, free: 13.55 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.763e-06/0.9729, allocations: 1.969 kB / 0.705 GB, free: 13.55 MB / 0.4948 GB Notification: Performance of matching and sorting (n=124) (initialization): time 0.003861/0.9767, allocations: 1.692 MB / 0.7067 GB, free: 13.45 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 3.36e-05/0.9768, allocations: 11.84 kB / 0.7067 GB, free: 13.44 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.147e-05/0.9768, allocations: 10.59 kB / 0.7067 GB, free: 13.44 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007804/0.9846, allocations: 1.397 MB / 0.7081 GB, free: 13.38 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001048/0.9857, allocations: 154.8 kB / 0.7082 GB, free: 13.38 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003483/0.9892, allocations: 1.547 MB / 0.7097 GB, free: 12.83 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001354/0.9906, allocations: 92.97 kB / 0.7098 GB, free: 12.82 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000163/0.9908, allocations: 62.42 kB / 0.7099 GB, free: 12.82 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 35 * 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 (89): * Single equations (assignments): 88 * 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 {3 33} Notification: Performance of prepare postOptimizeDAE: time 0.0006825/0.9915, allocations: 301.6 kB / 0.7102 GB, free: 12.69 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001719/0.9916, allocations: 85.62 kB / 0.7102 GB, free: 12.65 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003537/0.9952, allocations: 1.644 MB / 0.7118 GB, free: 12.49 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.612e-05/0.9952, allocations: 9.641 kB / 0.7118 GB, free: 12.49 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.333e-06/0.9952, allocations: 6.656 kB / 0.7119 GB, free: 12.49 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.137e-05/0.9952, allocations: 3.844 kB / 0.7119 GB, free: 12.49 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004195/0.9994, allocations: 2.558 MB / 0.7144 GB, free: 12.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.941e-06/0.9995, allocations: 1.562 kB / 0.7144 GB, free: 12.1 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00118/1.001, allocations: 268.7 kB / 0.7146 GB, free: 12.1 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001772/1.002, allocations: 403.6 kB / 0.715 GB, free: 12.06 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.87e-05/1.003, allocations: 31.89 kB / 0.715 GB, free: 12.06 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002242/1.005, allocations: 2.273 MB / 0.7172 GB, free: 10.2 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.679e-06/1.005, allocations: 6.844 kB / 0.7173 GB, free: 10.19 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003469/1.008, allocations: 2.024 MB / 0.7192 GB, free: 9.922 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006625/1.009, allocations: 302.1 kB / 0.7195 GB, free: 9.781 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001317/1.009, allocations: 19.05 kB / 0.7195 GB, free: 9.781 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000841/1.01, allocations: 77.3 kB / 0.7196 GB, free: 9.773 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002363/1.01, allocations: 73.38 kB / 0.7197 GB, free: 9.766 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001122/1.01, allocations: 52.95 kB / 0.7197 GB, free: 9.766 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0006923/1.011, allocations: 484.7 kB / 0.7202 GB, free: 9.672 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.1e-07/1.011, allocations: 0 / 0.7202 GB, free: 9.672 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.002539/1.014, allocations: 0.7066 MB / 0.7209 GB, free: 9.57 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 3 (volume.medium.p,volume.medium.Xi[1],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 (82): * Single equations (assignments): 78 * 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: 0 * Non-linear torn systems: 1 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.006099/1.02, allocations: 3.368 MB / 0.7242 GB, free: 8.613 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.002569/1.022, allocations: 1.256 MB / 0.7254 GB, free: 8.547 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 7.735e-06/1.022, allocations: 3.953 kB / 0.7254 GB, free: 8.543 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.001596/1.024, allocations: 0.7032 MB / 0.7261 GB, free: 8.426 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002506/1.026, allocations: 476.1 kB / 0.7265 GB, free: 8.273 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01251/1.039, allocations: 6.824 MB / 0.7332 GB, free: 5.344 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006441/1.04, allocations: 1.039 MB / 0.7342 GB, free: 4.512 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000628/1.04, allocations: 354.9 kB / 0.7346 GB, free: 4.465 MB / 0.4948 GB Notification: Performance of SimCode: time 9.62e-07/1.04, allocations: 0 / 0.7346 GB, free: 4.465 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.021/7.061, allocations: 29.42 MB / 0.7633 GB, free: 8.426 MB / 0.5261 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.MoistAir.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.MoistAir.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.MoistAir.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.MoistAir.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.MoistAir_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Air_MoistAir_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Air_MoistAir.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.MoistAir.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.MoistAir_res.mat does not exist to compare? outputFormat=mat