Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.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.IdealGases.SimpleNaturalGasFixedComposition,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGasFixedComposition",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGasFixedComposition",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.0008913/0.0008914, allocations: 175.2 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.414/1.414, allocations: 205.4 MB / 222.9 MB, free: 8.934 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.0007331/0.0007327, allocations: 94.34 kB / 271.2 MB, free: 8.234 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.3461/0.3461, allocations: 43.57 MB / 363.1 MB, free: 52.1 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003709/0.0003709, allocations: 11.98 kB / 432.1 MB, free: 5.715 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1285/0.1289, allocations: 58.84 MB / 490.9 MB, free: 10.79 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition): time 0.4189/0.5479, allocations: 167.2 MB / 0.6427 GB, free: 15.55 MB / 474.7 MB Notification: Performance of NFInst.instExpressions: time 0.0093/0.5572, allocations: 6.631 MB / 0.6492 GB, free: 8.902 MB / 474.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00112/0.5584, allocations: 23.81 kB / 0.6492 GB, free: 8.879 MB / 474.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001338/0.5598, allocations: 354.1 kB / 0.6495 GB, free: 8.531 MB / 474.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.004775/0.5646, allocations: 1.801 MB / 0.6513 GB, free: 6.73 MB / 474.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003836/0.5684, allocations: 1.39 MB / 0.6527 GB, free: 5.352 MB / 474.7 MB Notification: Performance of NFFlatten.flatten: time 0.002842/0.5713, allocations: 2.559 MB / 0.6552 GB, free: 2.789 MB / 474.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009115/0.5722, allocations: 479.9 kB / 0.6556 GB, free: 2.324 MB / 474.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004034/0.5762, allocations: 1.787 MB / 0.6574 GB, free: 0.5352 MB / 474.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002949/0.5792, allocations: 1.554 MB / 0.6589 GB, free: 14.97 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002023/0.5794, allocations: 36 kB / 0.6589 GB, free: 14.94 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00376/0.5832, allocations: 2.117 MB / 0.661 GB, free: 12.82 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004754/0.5837, allocations: 422.9 kB / 0.6614 GB, free: 12.4 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006727/0.5844, allocations: 0.5152 MB / 0.6619 GB, free: 11.88 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001983/0.5864, allocations: 1.66 MB / 0.6635 GB, free: 10.21 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.026e-06/0.5864, allocations: 4 kB / 0.6635 GB, free: 10.21 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.462e-06/0.5864, allocations: 0 / 0.6635 GB, free: 10.21 MB / 490.7 MB Notification: Performance of Transformations before backend: time 1.44e-05/0.5864, allocations: 0 / 0.6635 GB, free: 10.21 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: 192 * Number of variables: 192 Notification: Performance of Generate backend data structure: time 0.00229/0.5887, allocations: 1.211 MB / 0.6647 GB, free: 8.949 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.804e-05/0.5888, allocations: 12.03 kB / 0.6647 GB, free: 8.938 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001645/0.5889, allocations: 134.7 kB / 0.6648 GB, free: 8.797 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00117/0.5901, allocations: 282.6 kB / 0.6651 GB, free: 8.52 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008489/0.591, allocations: 0.6057 MB / 0.6657 GB, free: 7.875 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001025/0.5911, allocations: 124.6 kB / 0.6658 GB, free: 7.742 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001058/0.5912, allocations: 67.98 kB / 0.6659 GB, free: 7.676 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001692/0.5929, allocations: 1.256 MB / 0.6671 GB, free: 6.352 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.023e-05/0.5929, allocations: 0 / 0.6671 GB, free: 6.352 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001022/0.593, allocations: 35.98 kB / 0.6671 GB, free: 6.316 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.234e-05/0.5931, allocations: 77.27 kB / 0.6672 GB, free: 6.242 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001463/0.5946, allocations: 1.068 MB / 0.6683 GB, free: 5.172 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.196/0.7906, allocations: 4.89 MB / 0.673 GB, free: 150.7 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007056/0.7913, allocations: 294.7 kB / 0.6733 GB, free: 150.7 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002461/0.7916, allocations: 146.1 kB / 0.6735 GB, free: 150.7 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002057/0.7918, allocations: 133.6 kB / 0.6736 GB, free: 150.6 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.985e-05/0.7919, allocations: 38.98 kB / 0.6736 GB, free: 150.5 MB / 490.7 MB Notification: Performance of pre-optimization done (n=28): time 2.605e-06/0.7919, allocations: 4 kB / 0.6736 GB, free: 150.5 MB / 490.7 MB Notification: Performance of matching and sorting (n=33): time 0.005585/0.7975, allocations: 1.739 MB / 0.6753 GB, free: 150 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.3e-05/0.7975, allocations: 134.2 kB / 0.6754 GB, free: 149.8 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001136/0.7987, allocations: 0.9321 MB / 0.6764 GB, free: 149.7 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 3.368e-05/0.7987, allocations: 37.67 kB / 0.6764 GB, free: 149.6 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003056/0.799, allocations: 0.5636 MB / 0.6769 GB, free: 149.3 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.516e-05/0.7991, allocations: 132.6 kB / 0.6771 GB, free: 149.2 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.021e-05/0.7992, allocations: 21.31 kB / 0.6771 GB, free: 149.2 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001245/0.7993, allocations: 401.4 kB / 0.6775 GB, free: 148.9 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004319/0.7997, allocations: 272.9 kB / 0.6777 GB, free: 148.9 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006715/0.8004, allocations: 0.8596 MB / 0.6786 GB, free: 148.2 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001118/0.8015, allocations: 1.172 MB / 0.6797 GB, free: 147.4 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.518e-06/0.8016, allocations: 5.406 kB / 0.6797 GB, free: 147.4 MB / 490.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.001848/0.8034, allocations: 1.223 MB / 0.6809 GB, free: 147.2 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.603e-05/0.8034, allocations: 13.75 kB / 0.6809 GB, free: 147.2 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.399e-05/0.8035, allocations: 22.94 kB / 0.681 GB, free: 147.2 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001252/0.8047, allocations: 284.8 kB / 0.6812 GB, free: 147.2 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005242/0.8053, allocations: 205.5 kB / 0.6814 GB, free: 147.2 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009296/0.8062, allocations: 0.9167 MB / 0.6823 GB, free: 146.7 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007646/0.807, allocations: 60.05 kB / 0.6824 GB, free: 146.7 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.42e-05/0.8071, allocations: 70.53 kB / 0.6824 GB, free: 146.7 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 90 * 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 (112): * Single equations (assignments): 111 * 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 17} Notification: Performance of prepare postOptimizeDAE: time 0.0004154/0.8075, allocations: 346.2 kB / 0.6828 GB, free: 146.5 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001115/0.8076, allocations: 92.91 kB / 0.6829 GB, free: 146.5 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008253/0.8084, allocations: 487.2 kB / 0.6833 GB, free: 146.4 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.8085, allocations: 3.062 kB / 0.6833 GB, free: 146.4 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.71e-06/0.8085, allocations: 3.031 kB / 0.6833 GB, free: 146.4 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.999e-06/0.8085, allocations: 3.281 kB / 0.6833 GB, free: 146.4 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00137/0.8099, allocations: 1.117 MB / 0.6844 GB, free: 145.8 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.8099, allocations: 2.938 kB / 0.6844 GB, free: 145.8 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008921/0.8108, allocations: 186.5 kB / 0.6846 GB, free: 145.8 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001012/0.8109, allocations: 21.38 kB / 0.6846 GB, free: 145.8 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.727e-05/0.8109, allocations: 12.52 kB / 0.6846 GB, free: 145.8 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001424/0.8124, allocations: 2.69 MB / 0.6873 GB, free: 143.1 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.8124, allocations: 3.375 kB / 0.6873 GB, free: 143.1 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008083/0.8132, allocations: 0.6877 MB / 0.6879 GB, free: 142.7 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002504/0.8134, allocations: 207 kB / 0.6881 GB, free: 142.5 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.557e-05/0.8135, allocations: 13.11 kB / 0.6881 GB, free: 142.5 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004115/0.814, allocations: 26.06 kB / 0.6882 GB, free: 142.5 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.363e-05/0.814, allocations: 25.17 kB / 0.6882 GB, free: 142.5 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.467e-05/0.8141, allocations: 21.89 kB / 0.6882 GB, free: 142.5 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0006186/0.8147, allocations: 0.6137 MB / 0.6888 GB, free: 142.3 MB / 490.7 MB Notification: Performance of sort global known variables: time 2e-07/0.8147, allocations: 2.781 kB / 0.6888 GB, free: 142.3 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.001485/0.8162, allocations: 433.6 kB / 0.6892 GB, free: 142.2 MB / 490.7 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.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 (33): * Single equations (assignments): 31 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00315/0.8194, allocations: 1.891 MB / 0.6911 GB, free: 141.3 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.001242/0.8206, allocations: 0.6637 MB / 0.6917 GB, free: 141.1 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.8206, allocations: 4.125 kB / 0.6917 GB, free: 141.1 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007468/0.8214, allocations: 356.3 kB / 0.6921 GB, free: 140.9 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001912/0.8233, allocations: 406.3 kB / 0.6925 GB, free: 140.8 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007051/0.8304, allocations: 5.7 MB / 0.698 GB, free: 137.5 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004345/0.8309, allocations: 1.03 MB / 0.699 GB, free: 136.7 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004119/0.8313, allocations: 324.8 kB / 0.6993 GB, free: 136.5 MB / 490.7 MB Notification: Performance of SimCode: time 7.91e-07/0.8313, allocations: 0 / 0.6993 GB, free: 136.5 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.446/6.277, allocations: 24.88 MB / 0.7236 GB, free: 129.8 MB / 490.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGasFixedComposition_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGasFixedComposition.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition_res.mat does not exist to compare? outputFormat=mat