Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.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.SolveOneNonlinearEquation.Inverse_sh_TX,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sh_TX",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sh_TX",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.001253/0.001253, allocations: 172.9 kB / 14.1 MB, free: 1.223 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.604/1.604, allocations: 205.2 MB / 219.8 MB, free: 14.2 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.0009048/0.0009049, allocations: 78.66 kB / 268 MB, free: 14.03 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.471e-05/3.521e-05, allocations: 7.984 kB / 322.5 MB, free: 17.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.1061, allocations: 47.57 MB / 370.1 MB, free: 1.621 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.828/1.935, allocations: 0.7478 GB / 1.109 GB, free: 86.35 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002767/1.935, allocations: 75.25 kB / 1.109 GB, free: 86.28 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1597/2.095, allocations: 78.09 MB / 1.186 GB, free: 7.215 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.452e-06/2.095, allocations: 3.938 kB / 1.186 GB, free: 7.211 MB / 426.7 MB Notification: Performance of Transformations before backend: time 8.707e-06/2.095, allocations: 0 / 1.186 GB, free: 7.211 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0009287/2.096, allocations: 474.8 kB / 1.186 GB, free: 6.703 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.166e-05/2.096, allocations: 8.031 kB / 1.186 GB, free: 6.695 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.667e-05/2.096, allocations: 34.56 kB / 1.186 GB, free: 6.652 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002936/2.096, allocations: 39.86 kB / 1.186 GB, free: 6.613 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001839/2.096, allocations: 194.9 kB / 1.186 GB, free: 6.383 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.064e-05/2.096, allocations: 4 kB / 1.186 GB, free: 6.379 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.807e-05/2.096, allocations: 4 kB / 1.186 GB, free: 6.375 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001369/2.096, allocations: 75.31 kB / 1.186 GB, free: 6.289 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.999e-06/2.096, allocations: 0 / 1.186 GB, free: 6.289 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.307e-05/2.096, allocations: 0 / 1.186 GB, free: 6.289 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.53e-06/2.096, allocations: 0 / 1.186 GB, free: 6.289 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.531e-05/2.097, allocations: 47.95 kB / 1.186 GB, free: 6.242 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002041/2.097, allocations: 194.5 kB / 1.187 GB, free: 6 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003074/2.097, allocations: 117.2 kB / 1.187 GB, free: 5.867 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.222e-05/2.097, allocations: 33.84 kB / 1.187 GB, free: 5.828 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003957/2.098, allocations: 137 kB / 1.187 GB, free: 5.676 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.34e-05/2.098, allocations: 34.5 kB / 1.187 GB, free: 5.633 MB / 426.7 MB Notification: Performance of pre-optimization done (n=6): time 1.884e-06/2.098, allocations: 0 / 1.187 GB, free: 5.633 MB / 426.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002689/2.098, allocations: 93.64 kB / 1.187 GB, free: 5.535 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.62e-05/2.098, allocations: 81.11 kB / 1.187 GB, free: 5.438 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001114/2.098, allocations: 125 kB / 1.187 GB, free: 5.309 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 1.625e-05/2.098, allocations: 29.7 kB / 1.187 GB, free: 5.273 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.592e-05/2.098, allocations: 88.08 kB / 1.187 GB, free: 5.184 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.886e-05/2.098, allocations: 27.64 kB / 1.187 GB, free: 5.156 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.669e-06/2.098, allocations: 0 / 1.187 GB, free: 5.156 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 7.383e-05/2.098, allocations: 322.8 kB / 1.188 GB, free: 4.832 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.499e-05/2.098, allocations: 23.98 kB / 1.188 GB, free: 4.809 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.991e-05/2.098, allocations: 59.39 kB / 1.188 GB, free: 4.738 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.073e-05/2.098, allocations: 27.92 kB / 1.188 GB, free: 4.711 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/2.098, allocations: 0 / 1.188 GB, free: 4.711 MB / 426.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002062/2.099, allocations: 105.5 kB / 1.188 GB, free: 4.602 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.726e-05/2.099, allocations: 4 kB / 1.188 GB, free: 4.598 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.582e-06/2.099, allocations: 8.062 kB / 1.188 GB, free: 4.59 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.443e-05/2.099, allocations: 0 / 1.188 GB, free: 4.59 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.33e-05/2.099, allocations: 19.92 kB / 1.188 GB, free: 4.57 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.676e-06/2.099, allocations: 4 kB / 1.188 GB, free: 4.566 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.415e-05/2.099, allocations: 7.938 kB / 1.188 GB, free: 4.559 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.089e-05/2.099, allocations: 12 kB / 1.188 GB, free: 4.547 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 (8): * Single equations (assignments): 8 * 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 7.742e-05/2.099, allocations: 104.9 kB / 1.188 GB, free: 4.438 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.814e-05/2.099, allocations: 7.906 kB / 1.188 GB, free: 4.43 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002257/2.099, allocations: 130 kB / 1.188 GB, free: 4.297 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/2.099, allocations: 4 kB / 1.188 GB, free: 4.293 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.572e-06/2.099, allocations: 0 / 1.188 GB, free: 4.293 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.466e-06/2.099, allocations: 0 / 1.188 GB, free: 4.293 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001233/2.099, allocations: 181.6 kB / 1.188 GB, free: 4.066 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/2.099, allocations: 3.953 kB / 1.188 GB, free: 4.062 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.939e-05/2.1, allocations: 15.94 kB / 1.188 GB, free: 4.047 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.557e-06/2.1, allocations: 0 / 1.188 GB, free: 4.047 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.303e-05/2.1, allocations: 4 kB / 1.188 GB, free: 4.043 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.655e-06/2.1, allocations: 3.984 kB / 1.188 GB, free: 4.039 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/2.1, allocations: 0 / 1.188 GB, free: 4.039 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000258/2.1, allocations: 171.5 kB / 1.189 GB, free: 3.844 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.489e-05/2.1, allocations: 101 kB / 1.189 GB, free: 3.727 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.329e-05/2.1, allocations: 8 kB / 1.189 GB, free: 3.719 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.523e-05/2.1, allocations: 3.984 kB / 1.189 GB, free: 3.715 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.467e-05/2.1, allocations: 4 kB / 1.189 GB, free: 3.711 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.788e-06/2.1, allocations: 8.062 kB / 1.189 GB, free: 3.703 MB / 426.7 MB Notification: Performance of sorting global known variables: time 6.256e-05/2.1, allocations: 115.1 kB / 1.189 GB, free: 3.59 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.5e-07/2.1, allocations: 0 / 1.189 GB, free: 3.59 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0009691/2.101, allocations: 267.6 kB / 1.189 GB, free: 3.328 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (s1,h1) * Number of discrete variables: 0 () * Number of discrete 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.00257/2.104, allocations: 1.638 MB / 1.191 GB, free: 1.664 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0001468/2.104, allocations: 59.92 kB / 1.191 GB, free: 1.605 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/2.104, allocations: 0 / 1.191 GB, free: 1.605 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 3.974e-05/2.104, allocations: 31.92 kB / 1.191 GB, free: 1.574 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002331/2.104, allocations: 19.98 kB / 1.191 GB, free: 1.555 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009756/2.105, allocations: 379.8 kB / 1.191 GB, free: 1.137 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001743/2.105, allocations: 0.6926 MB / 1.192 GB, free: 428 kB / 426.7 MB Notification: Performance of simCode: alias equations: time 8.053e-05/2.105, allocations: 15.94 kB / 1.192 GB, free: 412 kB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.017e-05/2.106, allocations: 19.44 kB / 1.192 GB, free: 392 kB / 426.7 MB Notification: Performance of SimCode: time 1.002e-06/2.106, allocations: 0 / 1.192 GB, free: 392 kB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2871/2.393, allocations: 18.07 MB / 1.209 GB, free: 119.3 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002182/2.393, allocations: 207.8 kB / 1.21 GB, free: 119 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.263/4.656, allocations: 0 / 1.21 GB, free: 119 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sh_TX_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sh_TX.fmu > Modelica_3.2.3_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX_res.mat does not exist to compare? outputFormat=mat