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.001755/0.001755, allocations: 177.1 kB / 13.64 MB, free: 1.676 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.582/1.582, allocations: 221.3 MB / 235.5 MB, free: 2.891 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.001492/0.001492, allocations: 89.78 kB / 286.5 MB, free: 184 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.881e-05/3.894e-05, allocations: 4 kB / 343.9 MB, free: 4.223 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1351/0.1352, allocations: 50.4 MB / 394.3 MB, free: 1.777 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.325/2.461, allocations: 0.7149 GB / 1.1 GB, free: 133.5 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002441/2.461, allocations: 68.45 kB / 1.1 GB, free: 133.5 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1482/2.609, allocations: 68.35 MB / 1.167 GB, free: 78.97 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.275e-06/2.609, allocations: 0 / 1.167 GB, free: 78.97 MB / 458.7 MB Notification: Performance of Transformations before backend: time 1.353e-05/2.609, allocations: 0 / 1.167 GB, free: 78.97 MB / 458.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.0009838/2.61, allocations: 446.8 kB / 1.167 GB, free: 78.49 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.515e-05/2.61, allocations: 8.031 kB / 1.167 GB, free: 78.48 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.093e-05/2.61, allocations: 38.55 kB / 1.167 GB, free: 78.44 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005285/2.611, allocations: 59.8 kB / 1.167 GB, free: 78.38 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002832/2.611, allocations: 191 kB / 1.168 GB, free: 78.15 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.812e-05/2.611, allocations: 0 / 1.168 GB, free: 78.15 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.161e-05/2.611, allocations: 4 kB / 1.168 GB, free: 78.15 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001933/2.611, allocations: 75.38 kB / 1.168 GB, free: 78.06 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.518e-05/2.611, allocations: 3.938 kB / 1.168 GB, free: 78.06 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.617e-05/2.611, allocations: 0 / 1.168 GB, free: 78.06 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.917e-06/2.611, allocations: 4 kB / 1.168 GB, free: 78.05 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001237/2.612, allocations: 43.95 kB / 1.168 GB, free: 78.01 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004042/2.612, allocations: 198.5 kB / 1.168 GB, free: 77.77 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004218/2.612, allocations: 121.2 kB / 1.168 GB, free: 77.63 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.168e-05/2.612, allocations: 33.86 kB / 1.168 GB, free: 77.59 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000569/2.613, allocations: 222.1 kB / 1.168 GB, free: 77.34 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.667e-05/2.613, allocations: 34.56 kB / 1.168 GB, free: 77.29 MB / 458.7 MB Notification: Performance of pre-optimization done (n=6): time 2.034e-06/2.613, allocations: 0 / 1.168 GB, free: 77.29 MB / 458.7 MB Notification: Performance of matching and sorting (n=6): time 0.0004668/2.614, allocations: 109.5 kB / 1.168 GB, free: 77.18 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.742e-05/2.614, allocations: 85.11 kB / 1.168 GB, free: 77.08 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001381/2.614, allocations: 125 kB / 1.169 GB, free: 76.95 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 1.933e-05/2.614, allocations: 25.7 kB / 1.169 GB, free: 76.92 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.228e-05/2.614, allocations: 84.14 kB / 1.169 GB, free: 76.83 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.19e-05/2.614, allocations: 27.64 kB / 1.169 GB, free: 76.8 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.881e-06/2.614, allocations: 0 / 1.169 GB, free: 76.8 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 9.508e-05/2.614, allocations: 326.8 kB / 1.169 GB, free: 76.48 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.531e-05/2.614, allocations: 19.98 kB / 1.169 GB, free: 76.46 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.338e-05/2.614, allocations: 55.36 kB / 1.169 GB, free: 76.39 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.734e-05/2.614, allocations: 23.97 kB / 1.169 GB, free: 76.37 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/2.614, allocations: 0 / 1.169 GB, free: 76.37 MB / 458.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002056/2.614, allocations: 105.5 kB / 1.169 GB, free: 76.26 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.633e-05/2.615, allocations: 8 kB / 1.169 GB, free: 76.25 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.655e-06/2.615, allocations: 64 / 1.169 GB, free: 76.25 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.327e-05/2.615, allocations: 4 kB / 1.169 GB, free: 76.25 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.498e-05/2.615, allocations: 23.92 kB / 1.169 GB, free: 76.22 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.256e-05/2.615, allocations: 3.938 kB / 1.169 GB, free: 76.22 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.074e-05/2.615, allocations: 4 kB / 1.169 GB, free: 76.21 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.136e-05/2.615, allocations: 11.98 kB / 1.169 GB, free: 76.2 MB / 458.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 8.604e-05/2.615, allocations: 108.9 kB / 1.169 GB, free: 76.09 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.399e-05/2.615, allocations: 7.906 kB / 1.169 GB, free: 76.08 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002609/2.615, allocations: 122 kB / 1.169 GB, free: 75.95 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.332e-06/2.615, allocations: 8 kB / 1.169 GB, free: 75.94 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.825e-06/2.615, allocations: 0 / 1.169 GB, free: 75.94 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.232e-06/2.615, allocations: 288 / 1.169 GB, free: 75.94 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001729/2.615, allocations: 185.5 kB / 1.17 GB, free: 75.71 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/2.615, allocations: 3.938 kB / 1.17 GB, free: 75.71 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.495e-05/2.616, allocations: 15.98 kB / 1.17 GB, free: 75.69 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.939e-06/2.616, allocations: 3.984 kB / 1.17 GB, free: 75.69 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.538e-05/2.616, allocations: 4 kB / 1.17 GB, free: 75.68 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.117e-06/2.616, allocations: 3.938 kB / 1.17 GB, free: 75.68 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/2.616, allocations: 0 / 1.17 GB, free: 75.68 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003303/2.616, allocations: 175.5 kB / 1.17 GB, free: 75.48 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.469e-05/2.616, allocations: 97.03 kB / 1.17 GB, free: 75.37 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.22e-05/2.616, allocations: 0 / 1.17 GB, free: 75.37 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.735e-05/2.616, allocations: 8 kB / 1.17 GB, free: 75.36 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.613e-05/2.616, allocations: 7.984 kB / 1.17 GB, free: 75.35 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.162e-05/2.616, allocations: 4.125 kB / 1.17 GB, free: 75.35 MB / 458.7 MB Notification: Performance of sorting global known variables: time 6.26e-05/2.616, allocations: 111.3 kB / 1.17 GB, free: 75.24 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.5e-07/2.616, allocations: 0 / 1.17 GB, free: 75.24 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001018/2.617, allocations: 219.8 kB / 1.17 GB, free: 75.02 MB / 458.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.002432/2.62, allocations: 1.468 MB / 1.172 GB, free: 73.53 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0001516/2.62, allocations: 59.92 kB / 1.172 GB, free: 73.47 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/2.62, allocations: 7.938 kB / 1.172 GB, free: 73.46 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 3.78e-05/2.62, allocations: 23.98 kB / 1.172 GB, free: 73.44 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002444/2.62, allocations: 15.98 kB / 1.172 GB, free: 73.42 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008503/2.621, allocations: 363.7 kB / 1.172 GB, free: 73.02 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001775/2.621, allocations: 0.6887 MB / 1.173 GB, free: 72.31 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 7.064e-05/2.621, allocations: 23.89 kB / 1.173 GB, free: 72.29 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.824e-05/2.621, allocations: 23.42 kB / 1.173 GB, free: 72.26 MB / 458.7 MB Notification: Performance of SimCode: time 2.3e-07/2.621, allocations: 0 / 1.173 GB, free: 72.26 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04187/2.663, allocations: 16.62 MB / 1.189 GB, free: 55.75 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002339/2.664, allocations: 206.8 kB / 1.189 GB, free: 55.53 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.297/4.96, allocations: 0 / 1.189 GB, free: 55.53 MB / 458.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