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.001605/0.001604, allocations: 186 kB / 16.41 MB, free: 5.723 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.983/1.983, allocations: 205.4 MB / 222.5 MB, free: 9.129 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.00115/0.00115, allocations: 88.42 kB / 270.9 MB, free: 8.395 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003828/0.0003827, allocations: 8 kB / 327.1 MB, free: 140 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3412/0.3416, allocations: 47.57 MB / 374.6 MB, free: 45.29 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.442/1.783, allocations: 451.5 MB / 0.8067 GB, free: 119 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002642/1.784, allocations: 73.92 kB / 0.8068 GB, free: 119 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09887/1.882, allocations: 29.91 MB / 0.836 GB, free: 115.8 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.843e-06/1.882, allocations: 0 / 0.836 GB, free: 115.8 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.484e-05/1.883, allocations: 1.438 kB / 0.836 GB, free: 115.8 MB / 426.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.0006025/1.883, allocations: 409.3 kB / 0.8364 GB, free: 115.4 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.813e-05/1.883, allocations: 9.312 kB / 0.8364 GB, free: 115.4 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.763e-05/1.883, allocations: 44.78 kB / 0.8364 GB, free: 115.4 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002903/1.886, allocations: 183.6 kB / 0.8366 GB, free: 115.4 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003418/1.887, allocations: 203.8 kB / 0.8368 GB, free: 115.2 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.287e-05/1.887, allocations: 7.094 kB / 0.8368 GB, free: 115.2 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.105e-05/1.887, allocations: 13.08 kB / 0.8368 GB, free: 115.2 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008177/1.888, allocations: 225.5 kB / 0.837 GB, free: 115.1 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.61e-05/1.888, allocations: 0.5 kB / 0.837 GB, free: 115.1 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.166e-05/1.888, allocations: 4.906 kB / 0.837 GB, free: 115.1 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.967e-06/1.888, allocations: 2.531 kB / 0.8371 GB, free: 115.1 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008151/1.888, allocations: 168.2 kB / 0.8372 GB, free: 115.1 MB / 426.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.001383/1.89, allocations: 0.5718 MB / 0.8378 GB, free: 114.6 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005703/1.89, allocations: 139.1 kB / 0.8379 GB, free: 114.6 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.251e-05/1.89, allocations: 1.969 kB / 0.8379 GB, free: 114.6 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.319e-05/1.891, allocations: 32.28 kB / 0.8379 GB, free: 114.6 MB / 426.7 MB Notification: Performance of pre-optimization done (n=14): time 2.314e-06/1.891, allocations: 0.5312 kB / 0.8379 GB, free: 114.6 MB / 426.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.009126/1.9, allocations: 1.315 MB / 0.8392 GB, free: 114.1 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.147e-05/1.9, allocations: 59.23 kB / 0.8393 GB, free: 114 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.659e-05/1.9, allocations: 103.8 kB / 0.8394 GB, free: 113.9 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.651e-05/1.9, allocations: 25.7 kB / 0.8394 GB, free: 113.9 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.316e-05/1.9, allocations: 170.1 kB / 0.8396 GB, free: 113.7 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.769e-05/1.9, allocations: 65.44 kB / 0.8396 GB, free: 113.7 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.383e-05/1.9, allocations: 3.938 kB / 0.8396 GB, free: 113.7 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 6.166e-05/1.9, allocations: 326.1 kB / 0.8399 GB, free: 113.4 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002367/1.9, allocations: 68.62 kB / 0.84 GB, free: 113.4 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002488/1.901, allocations: 104 kB / 0.8401 GB, free: 113.3 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002782/1.901, allocations: 84.59 kB / 0.8402 GB, free: 113.3 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/1.901, allocations: 0 / 0.8402 GB, free: 113.3 MB / 426.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0007574/1.902, allocations: 256 kB / 0.8404 GB, free: 113.3 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.344e-05/1.902, allocations: 5.406 kB / 0.8404 GB, free: 113.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.527e-06/1.902, allocations: 1.25 kB / 0.8404 GB, free: 113.3 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002736/1.902, allocations: 57.84 kB / 0.8405 GB, free: 113.2 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005331/1.903, allocations: 54.53 kB / 0.8405 GB, free: 113.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004278/1.903, allocations: 0.5726 MB / 0.8411 GB, free: 112.7 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002879/1.903, allocations: 7.812 kB / 0.8411 GB, free: 112.7 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.708e-05/1.903, allocations: 27.16 kB / 0.8411 GB, free: 112.7 MB / 426.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.0001491/1.904, allocations: 121.3 kB / 0.8413 GB, free: 112.6 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.931e-05/1.904, allocations: 7.812 kB / 0.8413 GB, free: 112.6 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001265/1.905, allocations: 344.8 kB / 0.8416 GB, free: 112.5 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.334e-06/1.905, allocations: 3.969 kB / 0.8416 GB, free: 112.5 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.414e-06/1.905, allocations: 4 kB / 0.8416 GB, free: 112.5 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.262e-06/1.905, allocations: 3.703 kB / 0.8416 GB, free: 112.5 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001297/1.906, allocations: 0.6178 MB / 0.8422 GB, free: 112.2 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.759e-06/1.906, allocations: 0 / 0.8422 GB, free: 112.2 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000574/1.907, allocations: 63.89 kB / 0.8423 GB, free: 112.2 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001095/1.907, allocations: 22.94 kB / 0.8423 GB, free: 112.1 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.077e-05/1.907, allocations: 13.5 kB / 0.8423 GB, free: 112.1 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008844/1.908, allocations: 1.282 MB / 0.8435 GB, free: 110.9 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/1.908, allocations: 0 / 0.8435 GB, free: 110.9 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001042/1.909, allocations: 476.4 kB / 0.844 GB, free: 110.6 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.906e-05/1.909, allocations: 84.92 kB / 0.8441 GB, free: 110.5 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.775e-05/1.909, allocations: 3.906 kB / 0.8441 GB, free: 110.5 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003448/1.91, allocations: 11.27 kB / 0.8441 GB, free: 110.5 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.889e-05/1.91, allocations: 22.66 kB / 0.8441 GB, free: 110.5 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.968e-05/1.91, allocations: 30.44 kB / 0.8441 GB, free: 110.5 MB / 426.7 MB Notification: Performance of sorting global known variables: time 5.159e-05/1.91, allocations: 87.16 kB / 0.8442 GB, free: 110.5 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.91e-07/1.91, allocations: 0 / 0.8442 GB, free: 110.5 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0007159/1.911, allocations: 113.5 kB / 0.8443 GB, free: 110.5 MB / 426.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.002301/1.913, allocations: 1.641 MB / 0.8459 GB, free: 109.3 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.000764/1.914, allocations: 204.8 kB / 0.8461 GB, free: 109.3 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/1.914, allocations: 0 / 0.8461 GB, free: 109.3 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004495/1.914, allocations: 220.5 kB / 0.8463 GB, free: 109.2 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005658/1.915, allocations: 48.33 kB / 0.8464 GB, free: 109.2 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002532/1.917, allocations: 1.574 MB / 0.8479 GB, free: 108.1 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001721/1.917, allocations: 0.7079 MB / 0.8486 GB, free: 107.4 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004063/1.918, allocations: 79.22 kB / 0.8487 GB, free: 107.4 MB / 426.7 MB Notification: Performance of SimCode: time 1.263e-06/1.918, allocations: 0 / 0.8487 GB, free: 107.4 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.943/4.86, allocations: 6.921 MB / 0.8555 GB, free: 104.7 MB / 426.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