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.001732/0.001732, allocations: 102 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001364/0.001364, allocations: 191.8 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.36/1.36, allocations: 227.4 MB / 246 MB, free: 10.24 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000237/0.0002371, allocations: 8 kB / 306.8 MB, free: 1.277 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.1005, allocations: 51.5 MB / 358.3 MB, free: 13.78 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX): time 0.001333/0.1019, allocations: 1.076 MB / 359.4 MB, free: 12.69 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1838/0.2857, allocations: 22.08 MB / 381.5 MB, free: 8.742 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.49e-05/0.2858, allocations: 0 / 381.5 MB, free: 8.742 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 9.589e-05/0.2859, allocations: 6.438 kB / 381.5 MB, free: 8.742 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01398/0.2999, allocations: 4.493 MB / 386 MB, free: 7.879 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007741/0.3007, allocations: 212.1 kB / 386.2 MB, free: 7.805 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001292/0.3008, allocations: 86.98 kB / 386.3 MB, free: 7.773 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.185e-05/0.3009, allocations: 2.859 kB / 386.3 MB, free: 7.773 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.42e-05/0.3009, allocations: 30.34 kB / 386.3 MB, free: 7.766 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000113/0.3011, allocations: 35.41 kB / 386.3 MB, free: 7.758 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.662e-05/0.3011, allocations: 7.75 kB / 386.3 MB, free: 7.754 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01477/0.3159, allocations: 7.771 MB / 394.1 MB, free: 4.547 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.366e-05/0.3159, allocations: 22.05 kB / 394.1 MB, free: 4.531 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 2.681e-05/0.316, allocations: 36.52 kB / 394.2 MB, free: 4.496 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00437/0.3203, allocations: 2.796 MB / 397 MB, free: 3.074 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.3204, allocations: 0 / 397 MB, free: 3.074 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3204, allocations: 0 / 397 MB, free: 3.074 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.787e-06/0.3204, allocations: 0 / 397 MB, free: 3.074 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.001658/0.322, allocations: 0.9014 MB / 397.9 MB, free: 2.359 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.749e-05/0.3221, allocations: 9.125 kB / 397.9 MB, free: 2.359 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.84e-05/0.3221, allocations: 39.89 kB / 397.9 MB, free: 2.312 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.902e-05/0.3221, allocations: 7.281 kB / 397.9 MB, free: 2.309 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001181/0.3223, allocations: 196.9 kB / 398.1 MB, free: 2.094 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.135e-05/0.3223, allocations: 4 kB / 398.1 MB, free: 2.09 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.868e-06/0.3223, allocations: 3.344 kB / 398.1 MB, free: 2.09 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000131/0.3224, allocations: 69.38 kB / 398.2 MB, free: 2.027 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.893e-06/0.3225, allocations: 0 / 398.2 MB, free: 2.027 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.174e-05/0.3225, allocations: 6.406 kB / 398.2 MB, free: 2.023 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.3225, allocations: 0 / 398.2 MB, free: 2.023 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001068/0.3226, allocations: 35.8 kB / 398.2 MB, free: 2.012 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001415/0.3227, allocations: 189.5 kB / 398.4 MB, free: 1.793 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002362/0.323, allocations: 98.47 kB / 398.5 MB, free: 1.723 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.728e-05/0.323, allocations: 29.55 kB / 398.5 MB, free: 1.699 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.343e-05/0.3231, allocations: 17.31 kB / 398.5 MB, free: 1.691 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.758e-05/0.3231, allocations: 38.34 kB / 398.6 MB, free: 1.648 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 1.163e-06/0.3231, allocations: 0 / 398.6 MB, free: 1.648 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002542/0.3234, allocations: 97.09 kB / 398.7 MB, free: 1.59 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.451e-05/0.3234, allocations: 82.69 kB / 398.8 MB, free: 1.492 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.2e-05/0.3235, allocations: 136.1 kB / 398.9 MB, free: 1.379 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.817e-06/0.3235, allocations: 30.08 kB / 398.9 MB, free: 1.344 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.017e-05/0.3236, allocations: 84.14 kB / 399 MB, free: 1.258 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.522e-05/0.3236, allocations: 28.36 kB / 399 MB, free: 1.234 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.098e-06/0.3236, allocations: 0 / 399 MB, free: 1.234 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 3.786e-05/0.3236, allocations: 322.8 kB / 399.3 MB, free: 0.9102 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.895e-05/0.3237, allocations: 16.67 kB / 399.4 MB, free: 0.9062 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.701e-05/0.3237, allocations: 32.45 kB / 399.4 MB, free: 0.8828 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.142e-05/0.3238, allocations: 23.27 kB / 399.4 MB, free: 0.8711 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.3238, allocations: 2.938 kB / 399.4 MB, free: 0.8711 MB / 302.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001411/0.324, allocations: 78 kB / 399.5 MB, free: 0.8203 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.224e-05/0.324, allocations: 6.188 kB / 399.5 MB, free: 0.8203 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.438e-06/0.324, allocations: 0 / 399.5 MB, free: 0.8203 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.487e-06/0.324, allocations: 0 / 399.5 MB, free: 0.8203 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.43e-05/0.3241, allocations: 9.344 kB / 399.5 MB, free: 0.8203 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.302e-06/0.3241, allocations: 3.062 kB / 399.5 MB, free: 0.8203 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.602e-05/0.3241, allocations: 7.938 kB / 399.5 MB, free: 0.8125 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.193e-06/0.3241, allocations: 14.48 kB / 399.5 MB, free: 0.8008 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 4.934e-05/0.3242, allocations: 114.1 kB / 399.6 MB, free: 0.6836 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.429e-05/0.3242, allocations: 7.938 kB / 399.7 MB, free: 0.6797 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001965/0.3244, allocations: 101.9 kB / 399.8 MB, free: 0.6133 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.3244, allocations: 3.312 kB / 399.8 MB, free: 0.6133 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.3244, allocations: 0 / 399.8 MB, free: 0.6133 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.595e-06/0.3244, allocations: 0 / 399.8 MB, free: 0.6133 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.245e-05/0.3245, allocations: 176.5 kB / 399.9 MB, free: 416 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.442e-06/0.3245, allocations: 10.48 kB / 399.9 MB, free: 408 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.044e-05/0.3246, allocations: 13.2 kB / 400 MB, free: 404 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.986e-06/0.3246, allocations: 8.031 kB / 400 MB, free: 396 kB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.725e-06/0.3246, allocations: 3.031 kB / 400 MB, free: 396 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/0.3246, allocations: 0 / 400 MB, free: 396 kB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.3246, allocations: 0 / 400 MB, free: 396 kB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001455/0.3248, allocations: 115.2 kB / 400.1 MB, free: 296 kB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.401e-05/0.3248, allocations: 100.6 kB / 400.2 MB, free: 180 kB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.532e-05/0.3248, allocations: 0 / 400.2 MB, free: 180 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.146e-05/0.3249, allocations: 2.75 kB / 400.2 MB, free: 180 kB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.4e-05/0.3249, allocations: 6.766 kB / 400.2 MB, free: 176 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.245e-06/0.325, allocations: 8.281 kB / 400.2 MB, free: 172 kB / 302.1 MB Notification: Performance of sorting global known variables: time 4.865e-05/0.325, allocations: 110.4 kB / 400.3 MB, free: 80 kB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.325, allocations: 288 / 400.3 MB, free: 80 kB / 302.1 MB Notification: Performance of remove unused functions: time 0.001924/0.3269, allocations: 0.9355 MB / 401.2 MB, free: 15.86 MB / 318.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.003553/0.3305, allocations: 1.789 MB / 403 MB, free: 14.77 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001603/0.3307, allocations: 43.97 kB / 403.1 MB, free: 14.73 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.3307, allocations: 8 kB / 403.1 MB, free: 14.72 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 6.1e-05/0.3308, allocations: 23.92 kB / 403.1 MB, free: 14.7 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002339/0.331, allocations: 16.67 kB / 403.1 MB, free: 14.68 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001542/0.3325, allocations: 0.9439 MB / 404.1 MB, free: 13.68 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002023/0.3328, allocations: 0.6848 MB / 404.7 MB, free: 12.97 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 5.435e-05/0.3328, allocations: 19.97 kB / 404.8 MB, free: 12.95 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.488e-05/0.3329, allocations: 19.44 kB / 404.8 MB, free: 12.93 MB / 318.1 MB Notification: Performance of SimCode: time 2.01e-07/0.3329, allocations: 0 / 404.8 MB, free: 12.93 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05092/0.3838, allocations: 29.51 MB / 434.3 MB, free: 15.51 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001563/0.384, allocations: 222.4 kB / 434.5 MB, free: 15.27 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.063/3.447, allocations: 0 / 434.5 MB, free: 15.27 MB / 350.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