Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sh_TX",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001695/0.001695, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.657/1.657, allocations: 221.5 MB / 230.3 MB, free: 7.578 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001169/0.001169, allocations: 84.7 kB / 281.2 MB, free: 5.328 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.242e-05/2.256e-05, allocations: 8 kB / 337.1 MB, free: 9.941 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1511/0.1512, allocations: 50.42 MB / 387.6 MB, free: 7.48 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.233/2.385, allocations: 0.7142 GB / 1.093 GB, free: 152.9 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002461/2.385, allocations: 76.14 kB / 1.093 GB, free: 152.9 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1278/2.513, allocations: 67.3 MB / 1.159 GB, free: 85.03 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.663e-06/2.513, allocations: 0 / 1.159 GB, free: 85.03 MB / 442.7 MB Notification: Performance of Transformations before backend: time 8.666e-06/2.513, allocations: 0 / 1.159 GB, free: 85.03 MB / 442.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.0007004/2.514, allocations: 446.8 kB / 1.159 GB, free: 84.55 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.972e-05/2.514, allocations: 12.03 kB / 1.159 GB, free: 84.54 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003417/2.514, allocations: 51.83 kB / 1.159 GB, free: 84.49 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001628/2.514, allocations: 191 kB / 1.159 GB, free: 84.26 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.896e-05/2.514, allocations: 7.938 kB / 1.159 GB, free: 84.25 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.794e-05/2.514, allocations: 0 / 1.159 GB, free: 84.25 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.594e-05/2.514, allocations: 39.95 kB / 1.159 GB, free: 84.21 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.974e-05/2.514, allocations: 71.38 kB / 1.159 GB, free: 84.13 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.414e-06/2.514, allocations: 0 / 1.159 GB, free: 84.13 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.232e-05/2.514, allocations: 0 / 1.159 GB, free: 84.13 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.304e-06/2.514, allocations: 4 kB / 1.159 GB, free: 84.13 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001617/2.515, allocations: 175 kB / 1.159 GB, free: 83.92 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002561/2.515, allocations: 113.2 kB / 1.16 GB, free: 83.79 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.256e-05/2.515, allocations: 33.84 kB / 1.16 GB, free: 83.75 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003964/2.515, allocations: 218.1 kB / 1.16 GB, free: 83.5 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.593e-05/2.515, allocations: 42.56 kB / 1.16 GB, free: 83.45 MB / 442.7 MB Notification: Performance of pre-optimization done (n=6): time 1.453e-06/2.515, allocations: 0 / 1.16 GB, free: 83.45 MB / 442.7 MB Notification: Performance of matching and sorting (n=6): time 0.001172/2.516, allocations: 301.2 kB / 1.16 GB, free: 83.15 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.969e-05/2.517, allocations: 81.11 kB / 1.16 GB, free: 83.05 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001057/2.517, allocations: 121 kB / 1.16 GB, free: 82.93 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 9.498e-06/2.517, allocations: 29.7 kB / 1.16 GB, free: 82.89 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.615e-05/2.517, allocations: 84.14 kB / 1.16 GB, free: 82.8 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.071e-05/2.517, allocations: 31.64 kB / 1.16 GB, free: 82.77 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.45e-06/2.517, allocations: 0 / 1.16 GB, free: 82.77 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 6.452e-05/2.517, allocations: 310.8 kB / 1.161 GB, free: 82.46 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.748e-05/2.517, allocations: 27.97 kB / 1.161 GB, free: 82.43 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.991e-05/2.517, allocations: 47.36 kB / 1.161 GB, free: 82.38 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007724/2.518, allocations: 215.7 kB / 1.161 GB, free: 82.16 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/2.518, allocations: 7.953 kB / 1.161 GB, free: 82.16 MB / 442.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0008631/2.519, allocations: 285.2 kB / 1.161 GB, free: 81.87 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.706e-05/2.519, allocations: 4 kB / 1.161 GB, free: 81.87 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.122e-06/2.519, allocations: 4 kB / 1.161 GB, free: 81.86 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.554e-05/2.519, allocations: 0 / 1.161 GB, free: 81.86 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.028e-05/2.519, allocations: 19.98 kB / 1.161 GB, free: 81.84 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.813e-06/2.519, allocations: 4.141 kB / 1.161 GB, free: 81.84 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.935e-05/2.519, allocations: 0 / 1.161 GB, free: 81.84 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.97e-05/2.519, allocations: 11.98 kB / 1.161 GB, free: 81.83 MB / 442.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 5.735e-05/2.519, allocations: 109 kB / 1.161 GB, free: 81.71 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008538/2.52, allocations: 281.2 kB / 1.162 GB, free: 81.43 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.181e-05/2.52, allocations: 7.906 kB / 1.162 GB, free: 81.43 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000905/2.521, allocations: 306 kB / 1.162 GB, free: 81.12 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.998e-06/2.521, allocations: 0 / 1.162 GB, free: 81.12 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/2.521, allocations: 4 kB / 1.162 GB, free: 81.12 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.978e-06/2.521, allocations: 0 / 1.162 GB, free: 81.12 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001118/2.521, allocations: 170 kB / 1.162 GB, free: 80.91 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/2.521, allocations: 0 / 1.162 GB, free: 80.91 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.807e-05/2.521, allocations: 15.98 kB / 1.162 GB, free: 80.9 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.617e-06/2.521, allocations: 4 kB / 1.162 GB, free: 80.89 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.152e-05/2.521, allocations: 0 / 1.162 GB, free: 80.89 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/2.521, allocations: 3.938 kB / 1.162 GB, free: 80.89 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/2.521, allocations: 4 kB / 1.162 GB, free: 80.89 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009392/2.522, allocations: 355.6 kB / 1.163 GB, free: 80.51 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.8e-05/2.522, allocations: 97.09 kB / 1.163 GB, free: 80.4 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.333e-05/2.522, allocations: 0 / 1.163 GB, free: 80.4 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.663e-05/2.522, allocations: 3.984 kB / 1.163 GB, free: 80.39 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.748e-05/2.522, allocations: 11.98 kB / 1.163 GB, free: 80.38 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.018e-05/2.522, allocations: 4 kB / 1.163 GB, free: 80.38 MB / 442.7 MB Notification: Performance of sorting global known variables: time 5.307e-05/2.522, allocations: 107.3 kB / 1.163 GB, free: 80.27 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.7e-07/2.522, allocations: 0 / 1.163 GB, free: 80.27 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0007495/2.523, allocations: 203.8 kB / 1.163 GB, free: 80.07 MB / 442.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.0026/2.526, allocations: 1.747 MB / 1.165 GB, free: 78.3 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0001357/2.526, allocations: 56.06 kB / 1.165 GB, free: 78.24 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/2.526, allocations: 0 / 1.165 GB, free: 78.24 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 3.314e-05/2.526, allocations: 24.12 kB / 1.165 GB, free: 78.22 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002411/2.526, allocations: 28.09 kB / 1.165 GB, free: 78.19 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006682/2.527, allocations: 350.4 kB / 1.165 GB, free: 77.8 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001519/2.527, allocations: 0.7001 MB / 1.166 GB, free: 77.08 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 6.193e-05/2.527, allocations: 15.89 kB / 1.166 GB, free: 77.06 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.826e-05/2.527, allocations: 23.44 kB / 1.166 GB, free: 77.04 MB / 442.7 MB Notification: Performance of SimCode: time 2.81e-07/2.527, allocations: 0 / 1.166 GB, free: 77.04 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03272/2.56, allocations: 9.572 MB / 1.175 GB, free: 67.48 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002047/2.56, allocations: 190.4 kB / 1.175 GB, free: 67.28 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.969/4.529, allocations: 0 / 1.175 GB, free: 67.28 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sh_TX_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sh_TX.fmu > Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX_res.mat does not exist to compare? outputFormat=mat