Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2.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) 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(Modelica.Media.Examples.TestOnly.IdealGasN2,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Media_Examples_TestOnly_IdealGasN2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.TestOnly.IdealGasN2,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Media_Examples_TestOnly_IdealGasN2",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.001631/0.001638, allocations: 182 kB / 16.4 MB, free: 5.746 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.092/2.092, allocations: 205.4 MB / 222.5 MB, free: 9.113 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.001119/0.001119, allocations: 77.38 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003925/0.0003927, allocations: 8 kB / 327 MB, free: 112 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3541/0.3545, allocations: 47.57 MB / 374.6 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TestOnly.IdealGasN2): time 0.1946/0.5492, allocations: 125.6 MB / 0.4885 GB, free: 2.965 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001907/0.5512, allocations: 0.8185 MB / 0.4893 GB, free: 2.145 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.467e-05/0.5513, allocations: 3.938 kB / 0.4893 GB, free: 2.141 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002834/0.5516, allocations: 27.88 kB / 0.4893 GB, free: 2.113 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009215/0.5526, allocations: 207.4 kB / 0.4895 GB, free: 1.91 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005562/0.5532, allocations: 103.1 kB / 0.4896 GB, free: 1.812 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003023/0.5535, allocations: 103.8 kB / 0.4897 GB, free: 1.711 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.49e-05/0.5536, allocations: 4 kB / 0.4897 GB, free: 1.707 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003371/0.5539, allocations: 91.73 kB / 0.4898 GB, free: 1.617 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001268/0.5541, allocations: 39.86 kB / 0.4898 GB, free: 1.578 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.558e-05/0.5541, allocations: 4 kB / 0.4898 GB, free: 1.574 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001046/0.5551, allocations: 287.6 kB / 0.4901 GB, free: 1.293 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 8.139e-05/0.5553, allocations: 19.98 kB / 0.4901 GB, free: 1.273 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 7.76e-05/0.5554, allocations: 41.64 kB / 0.4901 GB, free: 1.227 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006179/0.556, allocations: 200.9 kB / 0.4903 GB, free: 1.031 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.556, allocations: 0 / 0.4903 GB, free: 1.031 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.595e-06/0.556, allocations: 0 / 0.4903 GB, free: 1.031 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.147e-05/0.5561, allocations: 4 kB / 0.4903 GB, free: 1.027 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: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0006255/0.5567, allocations: 383.2 kB / 0.4907 GB, free: 0.6055 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.086e-05/0.5568, allocations: 8.031 kB / 0.4907 GB, free: 0.5977 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.108e-05/0.5568, allocations: 42.55 kB / 0.4908 GB, free: 0.5469 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003528/0.5604, allocations: 188.1 kB / 0.4909 GB, free: 372 kB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000384/0.5608, allocations: 218.8 kB / 0.4911 GB, free: 112 kB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.282e-05/0.5609, allocations: 8 kB / 0.4911 GB, free: 104 kB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.372e-05/0.561, allocations: 15.91 kB / 0.4912 GB, free: 88 kB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2549/0.8158, allocations: 210.1 kB / 0.4914 GB, free: 124.3 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.038e-05/0.8159, allocations: 1.5 kB / 0.4914 GB, free: 124.3 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.394e-05/0.816, allocations: 2.656 kB / 0.4914 GB, free: 124.3 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.878e-06/0.816, allocations: 4.516 kB / 0.4914 GB, free: 124.3 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007973/0.8168, allocations: 171.1 kB / 0.4915 GB, free: 124.3 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.001475/0.8183, allocations: 0.5803 MB / 0.4921 GB, free: 123.9 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005669/0.8189, allocations: 135.8 kB / 0.4922 GB, free: 123.9 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.784e-05/0.8189, allocations: 1.719 kB / 0.4922 GB, free: 123.9 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.638e-05/0.819, allocations: 39.5 kB / 0.4923 GB, free: 123.8 MB / 378.7 MB Notification: Performance of pre-optimization done (n=14): time 3.296e-06/0.819, allocations: 0 / 0.4923 GB, free: 123.8 MB / 378.7 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: medium.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=19): time 0.009096/0.8281, allocations: 1.305 MB / 0.4935 GB, free: 123 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.918e-05/0.8282, allocations: 53.41 kB / 0.4936 GB, free: 123 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.437e-05/0.8283, allocations: 108 kB / 0.4937 GB, free: 122.9 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.607e-05/0.8283, allocations: 30.77 kB / 0.4937 GB, free: 122.8 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.257e-05/0.8284, allocations: 174.5 kB / 0.4939 GB, free: 122.7 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.137e-05/0.8285, allocations: 64.94 kB / 0.494 GB, free: 122.6 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.666e-05/0.8285, allocations: 4 kB / 0.494 GB, free: 122.6 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.321e-05/0.8286, allocations: 325.2 kB / 0.4943 GB, free: 122.3 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002503/0.8288, allocations: 67.91 kB / 0.4943 GB, free: 122.2 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000283/0.8291, allocations: 102.9 kB / 0.4944 GB, free: 122.2 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000289/0.8294, allocations: 81.14 kB / 0.4945 GB, free: 122.1 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.8294, allocations: 1.375 kB / 0.4945 GB, free: 122.1 MB / 378.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0007872/0.8302, allocations: 258.3 kB / 0.4948 GB, free: 122 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.097e-05/0.8303, allocations: 6.594 kB / 0.4948 GB, free: 122 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.8303, allocations: 4.562 kB / 0.4948 GB, free: 122 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002731/0.8306, allocations: 52.42 kB / 0.4948 GB, free: 122 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000574/0.8312, allocations: 58.09 kB / 0.4949 GB, free: 122 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004549/0.8316, allocations: 0.558 MB / 0.4954 GB, free: 121.4 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003114/0.832, allocations: 19.53 kB / 0.4954 GB, free: 121.4 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.068e-05/0.8321, allocations: 26.31 kB / 0.4955 GB, free: 121.4 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 22 * 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 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001504/0.8322, allocations: 123.4 kB / 0.4956 GB, free: 121.3 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.505e-05/0.8323, allocations: 13.66 kB / 0.4956 GB, free: 121.3 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001347/0.8336, allocations: 340.2 kB / 0.4959 GB, free: 121.1 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.276e-06/0.8337, allocations: 5.703 kB / 0.4959 GB, free: 121.1 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.186e-06/0.8337, allocations: 5.016 kB / 0.4959 GB, free: 121.1 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.73e-06/0.8337, allocations: 0 / 0.4959 GB, free: 121.1 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001422/0.8351, allocations: 0.6259 MB / 0.4965 GB, free: 120.6 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.482e-06/0.8352, allocations: 5.172 kB / 0.4965 GB, free: 120.5 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006356/0.8358, allocations: 61.48 kB / 0.4966 GB, free: 120.5 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001203/0.836, allocations: 21.5 kB / 0.4966 GB, free: 120.5 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.738e-05/0.836, allocations: 15.33 kB / 0.4966 GB, free: 120.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009103/0.837, allocations: 1.268 MB / 0.4979 GB, free: 119.2 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/0.837, allocations: 1.438 kB / 0.4979 GB, free: 119.2 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001085/0.8381, allocations: 476.6 kB / 0.4983 GB, free: 118.8 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.369e-05/0.8382, allocations: 84.05 kB / 0.4984 GB, free: 118.7 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.897e-05/0.8382, allocations: 10.92 kB / 0.4984 GB, free: 118.7 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003733/0.8386, allocations: 4.219 kB / 0.4984 GB, free: 118.7 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.88e-05/0.8387, allocations: 28.31 kB / 0.4985 GB, free: 118.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.067e-05/0.8388, allocations: 25.8 kB / 0.4985 GB, free: 118.7 MB / 378.7 MB Notification: Performance of sorting global known variables: time 5.33e-05/0.8389, allocations: 90.08 kB / 0.4986 GB, free: 118.6 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.242e-06/0.8389, allocations: 0 / 0.4986 GB, free: 118.6 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005974/0.8395, allocations: 87.84 kB / 0.4986 GB, free: 118.6 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (medium.p,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 (21): * Single equations (assignments): 20 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001799/0.8413, allocations: 1.259 MB / 0.4999 GB, free: 117.5 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008409/0.8422, allocations: 193.3 kB / 0.5001 GB, free: 117.4 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.27e-06/0.8422, allocations: 0 / 0.5001 GB, free: 117.4 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000519/0.8427, allocations: 229.2 kB / 0.5003 GB, free: 117.2 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006166/0.8434, allocations: 44.42 kB / 0.5003 GB, free: 117.2 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002801/0.8462, allocations: 1.572 MB / 0.5019 GB, free: 115.9 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001948/0.8465, allocations: 0.7133 MB / 0.5026 GB, free: 115.2 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004399/0.8469, allocations: 75.12 kB / 0.5026 GB, free: 115.1 MB / 378.7 MB Notification: Performance of SimCode: time 1.343e-06/0.8469, allocations: 0 / 0.5026 GB, free: 115.1 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.353/4.2, allocations: 4.411 MB / 0.5069 GB, free: 112.4 MB / 378.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Media_Examples_TestOnly_IdealGasN2_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Media_Examples_TestOnly_IdealGasN2.fmu > Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2_res.mat does not exist to compare? outputFormat=mat