Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_ReferenceAir_Inverse_sh_TX",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_ReferenceAir_Inverse_sh_TX",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009853/0.0009853, allocations: 98.28 kB / 16.98 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001004/0.001004, allocations: 199 kB / 17.89 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.345/1.345, allocations: 227.3 MB / 245.9 MB, free: 10.32 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002564/0.0002565, allocations: 8 kB / 306.7 MB, free: 1.277 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09379/0.09407, allocations: 51.49 MB / 358.2 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX): time 0.001696/0.09582, allocations: 1.052 MB / 359.2 MB, free: 12.73 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1919/0.2878, allocations: 20.43 MB / 379.7 MB, free: 8.758 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.488e-05/0.2879, allocations: 0 / 379.7 MB, free: 8.758 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001165/0.288, allocations: 8.375 kB / 379.7 MB, free: 8.758 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01177/0.2998, allocations: 4.493 MB / 384.2 MB, free: 8.496 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005207/0.3003, allocations: 210.2 kB / 384.4 MB, free: 8.484 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 7.289e-05/0.3004, allocations: 53.09 kB / 384.4 MB, free: 8.48 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.192e-05/0.3004, allocations: 2.906 kB / 384.4 MB, free: 8.48 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.645e-05/0.3005, allocations: 32.83 kB / 384.5 MB, free: 8.477 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.342e-05/0.3005, allocations: 32.75 kB / 384.5 MB, free: 8.473 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.266e-05/0.3006, allocations: 3.875 kB / 384.5 MB, free: 8.473 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01329/0.3138, allocations: 7.855 MB / 392.4 MB, free: 5.52 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.999e-05/0.3139, allocations: 16.05 kB / 392.4 MB, free: 5.508 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 2.746e-05/0.3139, allocations: 31.92 kB / 392.4 MB, free: 5.477 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004623/0.3186, allocations: 2.793 MB / 395.2 MB, free: 3.953 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.395e-06/0.3186, allocations: 0 / 395.2 MB, free: 3.953 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.714e-06/0.3186, allocations: 0 / 395.2 MB, free: 3.953 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.266e-06/0.3186, allocations: 0 / 395.2 MB, free: 3.953 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.001815/0.3204, allocations: 0.9059 MB / 396.1 MB, free: 3.234 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.587e-05/0.3205, allocations: 8.812 kB / 396.1 MB, free: 3.234 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.622e-05/0.3205, allocations: 31.56 kB / 396.1 MB, free: 3.195 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.004e-05/0.3205, allocations: 7.156 kB / 396.2 MB, free: 3.191 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001131/0.3207, allocations: 199 kB / 396.3 MB, free: 2.973 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.353e-05/0.3207, allocations: 8.688 kB / 396.4 MB, free: 2.969 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.017e-06/0.3207, allocations: 5.031 kB / 396.4 MB, free: 2.965 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001303/0.3208, allocations: 65.61 kB / 396.4 MB, free: 2.906 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.682e-06/0.3208, allocations: 0 / 396.4 MB, free: 2.906 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.145e-05/0.3209, allocations: 5.781 kB / 396.4 MB, free: 2.902 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.831e-06/0.3209, allocations: 0.8906 kB / 396.4 MB, free: 2.902 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001116/0.321, allocations: 35.09 kB / 396.5 MB, free: 2.891 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001503/0.3211, allocations: 194 kB / 396.7 MB, free: 2.668 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002568/0.3214, allocations: 97.86 kB / 396.8 MB, free: 2.598 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.26e-05/0.3215, allocations: 17.23 kB / 396.8 MB, free: 2.59 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.633e-05/0.3215, allocations: 36.28 kB / 396.8 MB, free: 2.547 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 1.042e-06/0.3215, allocations: 4 kB / 396.8 MB, free: 2.543 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002661/0.3218, allocations: 100.7 kB / 396.9 MB, free: 2.484 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.723e-05/0.3218, allocations: 81.09 kB / 397 MB, free: 2.387 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.519e-05/0.3219, allocations: 134.2 kB / 397.1 MB, free: 2.273 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.365e-05/0.3219, allocations: 32.23 kB / 397.1 MB, free: 2.238 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.822e-05/0.322, allocations: 80.14 kB / 397.2 MB, free: 2.156 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.026e-05/0.322, allocations: 22.62 kB / 397.2 MB, free: 2.137 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.499e-06/0.322, allocations: 4 kB / 397.3 MB, free: 2.133 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.445e-05/0.3221, allocations: 320.5 kB / 397.6 MB, free: 1.812 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.976e-05/0.3221, allocations: 15.61 kB / 397.6 MB, free: 1.809 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.76e-05/0.3222, allocations: 27.81 kB / 397.6 MB, free: 1.789 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.355e-05/0.3222, allocations: 20.67 kB / 397.6 MB, free: 1.781 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.3222, allocations: 3.953 kB / 397.6 MB, free: 1.777 MB / 302.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001405/0.3224, allocations: 79.5 kB / 397.7 MB, free: 1.727 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.353e-05/0.3224, allocations: 9.5 kB / 397.7 MB, free: 1.723 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.379e-06/0.3224, allocations: 5.656 kB / 397.7 MB, free: 1.719 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.029e-05/0.3224, allocations: 0 / 397.7 MB, free: 1.719 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.937e-05/0.3225, allocations: 9.656 kB / 397.7 MB, free: 1.719 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.282e-06/0.3225, allocations: 5.781 kB / 397.7 MB, free: 1.715 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.834e-05/0.3225, allocations: 5.844 kB / 397.7 MB, free: 1.711 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.322e-06/0.3226, allocations: 1.875 kB / 397.7 MB, free: 1.711 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (6): * Single equations (assignments): 6 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.32e-05/0.3226, allocations: 116.3 kB / 397.9 MB, free: 1.59 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.429e-05/0.3226, allocations: 15.67 kB / 397.9 MB, free: 1.578 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002042/0.3228, allocations: 105.2 kB / 398 MB, free: 1.512 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.3229, allocations: 2.938 kB / 398 MB, free: 1.512 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.551e-06/0.3229, allocations: 3.984 kB / 398 MB, free: 1.508 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.436e-06/0.3229, allocations: 0 / 398 MB, free: 1.508 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.068e-05/0.323, allocations: 182.4 kB / 398.2 MB, free: 1.297 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.323, allocations: 0 / 398.2 MB, free: 1.297 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.322e-05/0.323, allocations: 16.78 kB / 398.2 MB, free: 1.289 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.3231, allocations: 2.406 kB / 398.2 MB, free: 1.289 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.694e-06/0.3231, allocations: 4 kB / 398.2 MB, free: 1.285 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.3231, allocations: 1.969 kB / 398.2 MB, free: 1.285 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.3231, allocations: 0 / 398.2 MB, free: 1.285 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000159/0.3232, allocations: 125.4 kB / 398.3 MB, free: 1.172 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.091e-05/0.3233, allocations: 99.5 kB / 398.4 MB, free: 1.059 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.714e-05/0.3233, allocations: 1.688 kB / 398.4 MB, free: 1.059 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.894e-05/0.3234, allocations: 9.688 kB / 398.4 MB, free: 1.051 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.813e-05/0.3234, allocations: 7.422 kB / 398.4 MB, free: 1.047 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.855e-06/0.3235, allocations: 3.531 kB / 398.4 MB, free: 1.047 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.356e-05/0.3235, allocations: 106.9 kB / 398.5 MB, free: 0.9609 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3235, allocations: 0 / 398.5 MB, free: 0.9609 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.002915/0.3264, allocations: 0.9402 MB / 399.5 MB, free: 0.7461 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 simulation (6): * Single equations (assignments): 6 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004511/0.331, allocations: 1.867 MB / 401.3 MB, free: 15.59 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002426/0.3312, allocations: 44.16 kB / 401.4 MB, free: 15.58 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.3312, allocations: 0 / 401.4 MB, free: 15.58 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 6.875e-05/0.3313, allocations: 32.58 kB / 401.4 MB, free: 15.57 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002425/0.3316, allocations: 11.89 kB / 401.4 MB, free: 15.56 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002188/0.3338, allocations: 1.108 MB / 402.5 MB, free: 14.61 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002683/0.334, allocations: 0.6898 MB / 403.2 MB, free: 13.9 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 5.435e-05/0.3341, allocations: 12.36 kB / 403.2 MB, free: 13.89 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.596e-05/0.3342, allocations: 23.42 kB / 403.3 MB, free: 13.86 MB / 318.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3342, allocations: 0 / 403.3 MB, free: 13.86 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05147/0.3856, allocations: 29.48 MB / 432.7 MB, free: 480 kB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002041/0.3859, allocations: 224.8 kB / 433 MB, free: 232 kB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.047/3.433, allocations: 3.938 kB / 433 MB, free: 228 kB / 334.1 MB (rm -f Modelica_trunk_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX_res.mat --tempDir=temp_Modelica_trunk_Modelica_Media_Examples_ReferenceAir_Inverse_sh_TX_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Media_Examples_ReferenceAir_Inverse_sh_TX.fmu > Modelica_trunk_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX_res.mat does not exist to compare? outputFormat=mat