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.002493/0.002492, allocations: 182.4 kB / 13.66 MB, free: 1.664 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.12/2.12, allocations: 205.2 MB / 219.4 MB, free: 14.29 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.001129/0.001128, allocations: 94.58 kB / 267.5 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.373e-05/3.405e-05, allocations: 0 / 321.6 MB, free: 17.76 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1128/0.1128, allocations: 47.57 MB / 369.2 MB, free: 2.125 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.497/1.61, allocations: 451.4 MB / 0.8013 GB, free: 54.29 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003058/1.61, allocations: 76.33 kB / 0.8014 GB, free: 54.25 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1007/1.711, allocations: 29.8 MB / 0.8305 GB, free: 26.88 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.134e-06/1.711, allocations: 0 / 0.8305 GB, free: 26.88 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.649e-05/1.711, allocations: 4 kB / 0.8305 GB, free: 26.88 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.0005448/1.712, allocations: 399.3 kB / 0.8309 GB, free: 26.44 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.795e-05/1.712, allocations: 12.03 kB / 0.8309 GB, free: 26.43 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.946e-05/1.712, allocations: 42.5 kB / 0.8309 GB, free: 26.38 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002777/1.715, allocations: 183.7 kB / 0.8311 GB, free: 26.2 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003243/1.715, allocations: 202.9 kB / 0.8313 GB, free: 25.96 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.031e-05/1.715, allocations: 12.2 kB / 0.8313 GB, free: 25.95 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.653e-05/1.715, allocations: 8 kB / 0.8313 GB, free: 25.94 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005887/1.716, allocations: 216.9 kB / 0.8315 GB, free: 25.71 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.468e-05/1.716, allocations: 0 / 0.8315 GB, free: 25.71 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.699e-05/1.716, allocations: 8 kB / 0.8315 GB, free: 25.71 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.174e-06/1.716, allocations: 0 / 0.8315 GB, free: 25.71 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004802/1.716, allocations: 155.9 kB / 0.8317 GB, free: 25.55 MB / 426.7 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.001354/1.718, allocations: 0.5717 MB / 0.8322 GB, free: 24.93 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003848/1.718, allocations: 126.5 kB / 0.8324 GB, free: 24.79 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001631/1.718, allocations: 68.84 kB / 0.8324 GB, free: 24.72 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.839e-05/1.718, allocations: 4 kB / 0.8324 GB, free: 24.72 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.165e-05/1.718, allocations: 30.56 kB / 0.8325 GB, free: 24.68 MB / 426.7 MB Notification: Performance of pre-optimization done (n=14): time 2.094e-06/1.718, allocations: 0 / 0.8325 GB, free: 24.68 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.00772/1.726, allocations: 1.099 MB / 0.8335 GB, free: 23.5 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.515e-05/1.726, allocations: 59.36 kB / 0.8336 GB, free: 23.43 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000103/1.726, allocations: 105 kB / 0.8337 GB, free: 23.32 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.992e-05/1.726, allocations: 33.7 kB / 0.8337 GB, free: 23.28 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.37e-05/1.726, allocations: 162.3 kB / 0.8339 GB, free: 23.12 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.124e-05/1.727, allocations: 71 kB / 0.8339 GB, free: 23.05 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.803e-05/1.727, allocations: 0 / 0.8339 GB, free: 23.05 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 6.819e-05/1.727, allocations: 322.8 kB / 0.8342 GB, free: 22.73 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001824/1.727, allocations: 68 kB / 0.8343 GB, free: 22.66 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002031/1.727, allocations: 91.61 kB / 0.8344 GB, free: 22.56 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002136/1.727, allocations: 76.83 kB / 0.8345 GB, free: 22.48 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/1.727, allocations: 0 / 0.8345 GB, free: 22.48 MB / 426.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0006244/1.728, allocations: 252.7 kB / 0.8347 GB, free: 22.23 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.957e-05/1.728, allocations: 4 kB / 0.8347 GB, free: 22.23 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.585e-06/1.728, allocations: 0 / 0.8347 GB, free: 22.23 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000255/1.728, allocations: 48.83 kB / 0.8348 GB, free: 22.18 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005925/1.729, allocations: 51.91 kB / 0.8348 GB, free: 22.12 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004524/1.729, allocations: 0.572 MB / 0.8354 GB, free: 21.53 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002842/1.73, allocations: 4.031 kB / 0.8354 GB, free: 21.52 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.204e-05/1.73, allocations: 35.86 kB / 0.8354 GB, free: 21.49 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 () * 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.0001278/1.73, allocations: 112.9 kB / 0.8355 GB, free: 21.37 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.579e-05/1.73, allocations: 11.86 kB / 0.8355 GB, free: 21.36 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00114/1.731, allocations: 342.8 kB / 0.8359 GB, free: 21.02 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.923e-06/1.731, allocations: 4 kB / 0.8359 GB, free: 21.01 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.692e-06/1.731, allocations: 0 / 0.8359 GB, free: 21.01 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.563e-06/1.731, allocations: 0 / 0.8359 GB, free: 21.01 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001182/1.732, allocations: 0.6085 MB / 0.8365 GB, free: 20.34 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.338e-06/1.732, allocations: 3.938 kB / 0.8365 GB, free: 20.33 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006026/1.733, allocations: 59.95 kB / 0.8365 GB, free: 20.27 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001169/1.733, allocations: 24.78 kB / 0.8365 GB, free: 20.25 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.13e-05/1.733, allocations: 16.09 kB / 0.8366 GB, free: 20.23 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008841/1.734, allocations: 1.26 MB / 0.8378 GB, free: 18.84 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/1.734, allocations: 8.094 kB / 0.8378 GB, free: 18.83 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008362/1.735, allocations: 456.1 kB / 0.8382 GB, free: 18.34 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.186e-05/1.735, allocations: 89.05 kB / 0.8383 GB, free: 18.23 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.781e-05/1.735, allocations: 4 kB / 0.8383 GB, free: 18.23 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003539/1.735, allocations: 8 kB / 0.8383 GB, free: 18.22 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.161e-05/1.735, allocations: 27.91 kB / 0.8384 GB, free: 18.19 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.059e-05/1.736, allocations: 27.98 kB / 0.8384 GB, free: 18.16 MB / 426.7 MB Notification: Performance of sorting global known variables: time 5.055e-05/1.736, allocations: 83.28 kB / 0.8385 GB, free: 18.08 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.21e-07/1.736, allocations: 0 / 0.8385 GB, free: 18.08 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0007104/1.736, allocations: 127.9 kB / 0.8386 GB, free: 17.96 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 () * 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.002123/1.738, allocations: 1.624 MB / 0.8402 GB, free: 16.29 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0006513/1.739, allocations: 191.8 kB / 0.8403 GB, free: 16.1 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.889e-06/1.739, allocations: 4 kB / 0.8404 GB, free: 16.09 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000391/1.74, allocations: 210.9 kB / 0.8406 GB, free: 15.88 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005659/1.74, allocations: 49.12 kB / 0.8406 GB, free: 15.83 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001154/1.741, allocations: 420.8 kB / 0.841 GB, free: 15.36 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001864/1.742, allocations: 0.7087 MB / 0.8417 GB, free: 14.63 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004067/1.742, allocations: 75.39 kB / 0.8418 GB, free: 14.55 MB / 426.7 MB Notification: Performance of SimCode: time 1.533e-06/1.742, allocations: 3.938 kB / 0.8418 GB, free: 14.55 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.843/4.585, allocations: 6.905 MB / 0.8485 GB, free: 7.637 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