Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.00229/0.002299, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.117/2.117, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001094/0.001094, allocations: 80.91 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.103e-05/2.11e-05, allocations: 0 / 314.9 MB, free: 9.078 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3655/0.3655, allocations: 47.57 MB / 362.4 MB, free: 45.73 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.196/2.561, allocations: 0.7472 GB / 1.101 GB, free: 44.82 MB / 427.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002864/2.562, allocations: 75.61 kB / 1.101 GB, free: 44.78 MB / 427.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.6092/3.171, allocations: 76.98 MB / 1.176 GB, free: 140.2 MB / 427.1 MB Notification: Performance of FrontEnd: time 1.623e-06/3.171, allocations: 0 / 1.176 GB, free: 140.2 MB / 427.1 MB Notification: Performance of Transformations before backend: time 8.396e-06/3.171, allocations: 4.812 kB / 1.176 GB, free: 140.2 MB / 427.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.001139/3.172, allocations: 474.3 kB / 1.177 GB, free: 139.8 MB / 427.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.022e-05/3.172, allocations: 8.562 kB / 1.177 GB, free: 139.8 MB / 427.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004106/3.173, allocations: 40.53 kB / 1.177 GB, free: 139.8 MB / 427.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000209/3.173, allocations: 196 kB / 1.177 GB, free: 139.6 MB / 427.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.041e-05/3.173, allocations: 4.812 kB / 1.177 GB, free: 139.6 MB / 427.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.003e-05/3.173, allocations: 9.047 kB / 1.177 GB, free: 139.6 MB / 427.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001318/3.173, allocations: 35.75 kB / 1.177 GB, free: 139.6 MB / 427.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001426/3.173, allocations: 71.16 kB / 1.177 GB, free: 139.5 MB / 427.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.959e-06/3.173, allocations: 0 / 1.177 GB, free: 139.5 MB / 427.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.628e-05/3.173, allocations: 9.328 kB / 1.177 GB, free: 139.5 MB / 427.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.657e-06/3.173, allocations: 0 / 1.177 GB, free: 139.5 MB / 427.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002323/3.174, allocations: 167.1 kB / 1.177 GB, free: 139.3 MB / 427.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003978/3.174, allocations: 118.4 kB / 1.177 GB, free: 139.3 MB / 427.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.93e-05/3.174, allocations: 27.78 kB / 1.177 GB, free: 139.3 MB / 427.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006158/3.175, allocations: 136.2 kB / 1.178 GB, free: 139.2 MB / 427.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.337e-05/3.175, allocations: 40.17 kB / 1.178 GB, free: 139.1 MB / 427.1 MB Notification: Performance of pre-optimization done (n=6): time 2.014e-06/3.175, allocations: 0 / 1.178 GB, free: 139.1 MB / 427.1 MB Notification: Performance of matching and sorting (n=6): time 0.001211/3.176, allocations: 182.9 kB / 1.178 GB, free: 139.1 MB / 427.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.49e-05/3.176, allocations: 78.14 kB / 1.178 GB, free: 139 MB / 427.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001361/3.176, allocations: 122.6 kB / 1.178 GB, free: 138.9 MB / 427.1 MB Notification: Performance of collectPreVariables (initialization): time 1.63e-05/3.176, allocations: 25.7 kB / 1.178 GB, free: 138.8 MB / 427.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.503e-05/3.176, allocations: 158.3 kB / 1.178 GB, free: 138.7 MB / 427.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.257e-05/3.176, allocations: 23.62 kB / 1.178 GB, free: 138.7 MB / 427.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.594e-06/3.176, allocations: 0 / 1.178 GB, free: 138.7 MB / 427.1 MB Notification: Performance of setup shared object (initialization): time 7.294e-05/3.176, allocations: 318 kB / 1.179 GB, free: 138.4 MB / 427.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.122e-05/3.176, allocations: 23.34 kB / 1.179 GB, free: 138.4 MB / 427.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.522e-05/3.177, allocations: 47.52 kB / 1.179 GB, free: 138.3 MB / 427.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000851/3.177, allocations: 122 kB / 1.179 GB, free: 138.3 MB / 427.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/3.177, allocations: 0 / 1.179 GB, free: 138.3 MB / 427.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0009951/3.178, allocations: 195.4 kB / 1.179 GB, free: 138.3 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.164e-05/3.178, allocations: 6.156 kB / 1.179 GB, free: 138.3 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.113e-06/3.178, allocations: 0 / 1.179 GB, free: 138.3 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.991e-05/3.178, allocations: 3.719 kB / 1.179 GB, free: 138.3 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001498/3.179, allocations: 16.66 kB / 1.179 GB, free: 138.3 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.316e-05/3.179, allocations: 3.719 kB / 1.179 GB, free: 138.3 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001026/3.179, allocations: 10.31 kB / 1.179 GB, free: 138.3 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.732e-05/3.179, allocations: 6.094 kB / 1.179 GB, free: 138.3 MB / 427.1 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.747e-05/3.179, allocations: 111.8 kB / 1.179 GB, free: 138.1 MB / 427.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001041/3.18, allocations: 178.5 kB / 1.179 GB, free: 138.1 MB / 427.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.415e-05/3.18, allocations: 9.938 kB / 1.179 GB, free: 138.1 MB / 427.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001083/3.181, allocations: 210.8 kB / 1.179 GB, free: 138 MB / 427.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.813e-06/3.181, allocations: 6.969 kB / 1.179 GB, free: 138 MB / 427.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/3.181, allocations: 3.984 kB / 1.179 GB, free: 138 MB / 427.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/3.181, allocations: 3.953 kB / 1.179 GB, free: 138 MB / 427.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001791/3.181, allocations: 162.4 kB / 1.18 GB, free: 137.9 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/3.181, allocations: 2.75 kB / 1.18 GB, free: 137.9 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001655/3.182, allocations: 17.03 kB / 1.18 GB, free: 137.9 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.542e-06/3.182, allocations: 3.469 kB / 1.18 GB, free: 137.9 MB / 427.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.598e-05/3.182, allocations: 0 / 1.18 GB, free: 137.9 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.45e-06/3.182, allocations: 6.969 kB / 1.18 GB, free: 137.9 MB / 427.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.828e-06/3.182, allocations: 0.8125 kB / 1.18 GB, free: 137.9 MB / 427.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001124/3.183, allocations: 264.9 kB / 1.18 GB, free: 137.8 MB / 427.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001018/3.183, allocations: 100.2 kB / 1.18 GB, free: 137.7 MB / 427.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.099e-05/3.183, allocations: 0 / 1.18 GB, free: 137.7 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.9e-05/3.183, allocations: 0.875 kB / 1.18 GB, free: 137.7 MB / 427.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.852e-05/3.183, allocations: 9.969 kB / 1.18 GB, free: 137.7 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.647e-05/3.183, allocations: 3.219 kB / 1.18 GB, free: 137.7 MB / 427.1 MB Notification: Performance of sorting global known variables: time 8.569e-05/3.183, allocations: 111 kB / 1.18 GB, free: 137.6 MB / 427.1 MB Notification: Performance of sort global known variables: time 4.71e-07/3.183, allocations: 0 / 1.18 GB, free: 137.6 MB / 427.1 MB Notification: Performance of remove unused functions: time 0.001351/3.185, allocations: 256.1 kB / 1.18 GB, free: 137.5 MB / 427.1 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.00428/3.189, allocations: 1.804 MB / 1.182 GB, free: 136.6 MB / 427.1 MB Notification: Performance of simCode: created initialization part: time 0.0002247/3.189, allocations: 51.45 kB / 1.182 GB, free: 136.6 MB / 427.1 MB Notification: Performance of simCode: created event and clocks part: time 3.486e-06/3.189, allocations: 3.938 kB / 1.182 GB, free: 136.6 MB / 427.1 MB Notification: Performance of simCode: created simulation system equations: time 6.05e-05/3.189, allocations: 28.02 kB / 1.182 GB, free: 136.6 MB / 427.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003842/3.19, allocations: 20.92 kB / 1.182 GB, free: 136.5 MB / 427.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001416/3.191, allocations: 406.4 kB / 1.183 GB, free: 136.2 MB / 427.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002346/3.191, allocations: 0.691 MB / 1.183 GB, free: 135.5 MB / 427.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.17e-05/3.191, allocations: 33.78 kB / 1.183 GB, free: 135.5 MB / 427.1 MB Notification: Performance of SimCode: time 1.263e-06/3.191, allocations: 0 / 1.183 GB, free: 135.5 MB / 427.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.966/6.158, allocations: 8.414 MB / 1.192 GB, free: 131.7 MB / 427.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sh_TX_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sh_TX.fmu > Modelica_3.2.3_cpp_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_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX_res.mat does not exist to compare? outputFormat=mat