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.002348/0.002348, allocations: 178.3 kB / 8.362 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.111/2.111, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001099/0.001099, allocations: 87.84 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 1.955e-05/1.955e-05, allocations: 0 / 314.9 MB, free: 9.07 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3702/0.3702, allocations: 47.56 MB / 362.4 MB, free: 45.74 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.221/1.592, allocations: 450.7 MB / 0.7941 GB, free: 28.16 MB / 427.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002863/1.592, allocations: 75.02 kB / 0.7941 GB, free: 28.12 MB / 427.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.1044/1.696, allocations: 29.28 MB / 0.8227 GB, free: 3.867 MB / 427.1 MB Notification: Performance of FrontEnd: time 2.314e-06/1.696, allocations: 0 / 0.8227 GB, free: 3.867 MB / 427.1 MB Notification: Performance of Transformations before backend: time 1.47e-05/1.697, allocations: 0 / 0.8227 GB, free: 3.867 MB / 427.1 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.0005444/1.697, allocations: 401.6 kB / 0.8231 GB, free: 3.434 MB / 427.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.043e-05/1.697, allocations: 8.031 kB / 0.8231 GB, free: 3.426 MB / 427.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002795/1.7, allocations: 183.6 kB / 0.8233 GB, free: 3.246 MB / 427.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003709/1.7, allocations: 203 kB / 0.8235 GB, free: 3.008 MB / 427.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.783e-05/1.7, allocations: 8.156 kB / 0.8235 GB, free: 3 MB / 427.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.482e-05/1.7, allocations: 4 kB / 0.8235 GB, free: 2.996 MB / 427.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004813/1.701, allocations: 155.8 kB / 0.8237 GB, free: 2.844 MB / 427.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003057/1.701, allocations: 136.1 kB / 0.8238 GB, free: 2.695 MB / 427.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.401e-05/1.701, allocations: 0 / 0.8238 GB, free: 2.695 MB / 427.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.426e-05/1.701, allocations: 0 / 0.8238 GB, free: 2.695 MB / 427.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.657e-06/1.701, allocations: 4 kB / 0.8238 GB, free: 2.691 MB / 427.1 MB Warning: The model contains alias variables with conflicting start and/or 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.001406/1.703, allocations: 0.5336 MB / 0.8243 GB, free: 2.117 MB / 427.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003544/1.703, allocations: 130.5 kB / 0.8244 GB, free: 1.98 MB / 427.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001423/1.703, allocations: 58.34 kB / 0.8245 GB, free: 1.922 MB / 427.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.823e-05/1.703, allocations: 8 kB / 0.8245 GB, free: 1.914 MB / 427.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.435e-05/1.703, allocations: 34.56 kB / 0.8245 GB, free: 1.871 MB / 427.1 MB Notification: Performance of pre-optimization done (n=14): time 2.585e-06/1.703, allocations: 0 / 0.8245 GB, free: 1.871 MB / 427.1 MB Notification: Performance of matching and sorting (n=19): time 0.006521/1.71, allocations: 0.882 MB / 0.8254 GB, free: 0.9102 MB / 427.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.897e-05/1.71, allocations: 51.41 kB / 0.8254 GB, free: 0.8477 MB / 427.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.783e-05/1.71, allocations: 99.03 kB / 0.8255 GB, free: 0.7461 MB / 427.1 MB Notification: Performance of collectPreVariables (initialization): time 3.368e-05/1.71, allocations: 33.64 kB / 0.8256 GB, free: 0.707 MB / 427.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.246e-05/1.71, allocations: 170.3 kB / 0.8257 GB, free: 0.5391 MB / 427.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.438e-05/1.71, allocations: 59.11 kB / 0.8258 GB, free: 492 kB / 427.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.434e-05/1.71, allocations: 0 / 0.8258 GB, free: 492 kB / 427.1 MB Notification: Performance of setup shared object (initialization): time 7.35e-05/1.71, allocations: 326.8 kB / 0.8261 GB, free: 156 kB / 427.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001893/1.711, allocations: 63.98 kB / 0.8262 GB, free: 92 kB / 427.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2852/1.996, allocations: 85.34 kB / 0.8262 GB, free: 144.7 MB / 427.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002983/1.996, allocations: 71.62 kB / 0.8263 GB, free: 144.7 MB / 427.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.917e-06/1.996, allocations: 0 / 0.8263 GB, free: 144.7 MB / 427.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0006208/1.997, allocations: 236.2 kB / 0.8265 GB, free: 144.7 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.191e-05/1.997, allocations: 3.312 kB / 0.8265 GB, free: 144.7 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.787e-06/1.997, allocations: 0 / 0.8265 GB, free: 144.7 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002248/1.997, allocations: 40.61 kB / 0.8266 GB, free: 144.7 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000538/1.998, allocations: 58.38 kB / 0.8266 GB, free: 144.7 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004392/1.998, allocations: 0.5704 MB / 0.8272 GB, free: 144.2 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002859/1.999, allocations: 3.312 kB / 0.8272 GB, free: 144.2 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.284e-05/1.999, allocations: 29 kB / 0.8272 GB, free: 144.2 MB / 427.1 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 () * 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.0001387/1.999, allocations: 111.8 kB / 0.8273 GB, free: 144.1 MB / 427.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005319/1.999, allocations: 216.6 kB / 0.8275 GB, free: 144 MB / 427.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.92e-05/1.999, allocations: 17 kB / 0.8275 GB, free: 144 MB / 427.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001028/2, allocations: 312.7 kB / 0.8278 GB, free: 144 MB / 427.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.25e-06/2, allocations: 0 / 0.8278 GB, free: 144 MB / 427.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.538e-06/2, allocations: 3.75 kB / 0.8278 GB, free: 144 MB / 427.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.593e-06/2, allocations: 0 / 0.8278 GB, free: 144 MB / 427.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001104/2.002, allocations: 0.5658 MB / 0.8284 GB, free: 143.7 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.102e-06/2.002, allocations: 3.938 kB / 0.8284 GB, free: 143.7 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005733/2.002, allocations: 59.3 kB / 0.8285 GB, free: 143.7 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001197/2.002, allocations: 23.75 kB / 0.8285 GB, free: 143.7 MB / 427.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.194e-05/2.002, allocations: 13.09 kB / 0.8285 GB, free: 143.7 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008917/2.003, allocations: 1.219 MB / 0.8297 GB, free: 142.5 MB / 427.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.436e-06/2.003, allocations: 6.078 kB / 0.8297 GB, free: 142.5 MB / 427.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009801/2.004, allocations: 442.2 kB / 0.8301 GB, free: 142.3 MB / 427.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.532e-05/2.004, allocations: 84.7 kB / 0.8302 GB, free: 142.2 MB / 427.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.747e-05/2.004, allocations: 1.969 kB / 0.8302 GB, free: 142.2 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003545/2.005, allocations: 6.531 kB / 0.8302 GB, free: 142.2 MB / 427.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.49e-05/2.005, allocations: 26.56 kB / 0.8302 GB, free: 142.2 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.562e-05/2.005, allocations: 28.34 kB / 0.8303 GB, free: 142.2 MB / 427.1 MB Notification: Performance of sorting global known variables: time 5.115e-05/2.005, allocations: 87.59 kB / 0.8303 GB, free: 142.1 MB / 427.1 MB Notification: Performance of sort global known variables: time 4.41e-07/2.005, allocations: 1.062 kB / 0.8303 GB, free: 142.1 MB / 427.1 MB Notification: Performance of remove unused functions: time 0.0007575/2.006, allocations: 99.55 kB / 0.8304 GB, free: 142.1 MB / 427.1 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 () * 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.002376/2.008, allocations: 1.695 MB / 0.8321 GB, free: 141.1 MB / 427.1 MB Notification: Performance of simCode: created initialization part: time 0.0006761/2.009, allocations: 180 kB / 0.8323 GB, free: 141.1 MB / 427.1 MB Notification: Performance of simCode: created event and clocks part: time 6.041e-06/2.009, allocations: 0 / 0.8323 GB, free: 141.1 MB / 427.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003878/2.009, allocations: 198.7 kB / 0.8325 GB, free: 141 MB / 427.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006153/2.01, allocations: 50.69 kB / 0.8325 GB, free: 141 MB / 427.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001225/2.011, allocations: 395.8 kB / 0.8329 GB, free: 140.8 MB / 427.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00021/2.011, allocations: 0.7114 MB / 0.8336 GB, free: 140.1 MB / 427.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004266/2.012, allocations: 79.03 kB / 0.8336 GB, free: 140.1 MB / 427.1 MB Notification: Performance of SimCode: time 1.232e-06/2.012, allocations: 0 / 0.8336 GB, free: 140.1 MB / 427.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.907/4.919, allocations: 6.867 MB / 0.8404 GB, free: 139.6 MB / 427.1 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