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.002408/0.002407, allocations: 182.4 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.166/2.166, allocations: 205.2 MB / 219.4 MB, free: 14.27 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.001094/0.001094, allocations: 90.64 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.451e-05/3.472e-05, allocations: 4 kB / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1132/0.1133, allocations: 47.58 MB / 369.2 MB, free: 2.109 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.411/2.525, allocations: 0.7479 GB / 1.108 GB, free: 75.88 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003198/2.525, allocations: 75.09 kB / 1.108 GB, free: 75.84 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.284/2.809, allocations: 78.09 MB / 1.185 GB, free: 100 kB / 426.7 MB Notification: Performance of FrontEnd: time 2.855e-06/2.809, allocations: 0 / 1.185 GB, free: 100 kB / 426.7 MB Notification: Performance of Transformations before backend: time 8.576e-06/2.809, allocations: 3.938 kB / 1.185 GB, free: 96 kB / 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.2948/3.104, allocations: 468.3 kB / 1.185 GB, free: 126.1 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.405e-05/3.104, allocations: 9.844 kB / 1.185 GB, free: 126.1 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.905e-05/3.104, allocations: 34.41 kB / 1.185 GB, free: 126.1 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004643/3.105, allocations: 38.92 kB / 1.185 GB, free: 126.1 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002469/3.105, allocations: 190.8 kB / 1.185 GB, free: 125.9 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.177e-05/3.105, allocations: 1.5 kB / 1.185 GB, free: 125.9 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.28e-05/3.105, allocations: 6.719 kB / 1.185 GB, free: 125.9 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002088/3.105, allocations: 72.38 kB / 1.185 GB, free: 125.9 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.377e-05/3.105, allocations: 2.578 kB / 1.185 GB, free: 125.9 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.731e-05/3.105, allocations: 2.812 kB / 1.185 GB, free: 125.9 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.184e-06/3.105, allocations: 1.156 kB / 1.186 GB, free: 125.9 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001599/3.105, allocations: 45.56 kB / 1.186 GB, free: 125.9 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002966/3.106, allocations: 193.1 kB / 1.186 GB, free: 125.7 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005054/3.106, allocations: 116 kB / 1.186 GB, free: 125.6 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.968e-05/3.106, allocations: 39.92 kB / 1.186 GB, free: 125.6 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006662/3.107, allocations: 134.4 kB / 1.186 GB, free: 125.5 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.611e-05/3.107, allocations: 36.44 kB / 1.186 GB, free: 125.5 MB / 426.7 MB Notification: Performance of pre-optimization done (n=6): time 2.886e-06/3.107, allocations: 0 / 1.186 GB, free: 125.5 MB / 426.7 MB Notification: Performance of matching and sorting (n=6): time 0.0004146/3.108, allocations: 92.39 kB / 1.186 GB, free: 125.4 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.489e-05/3.108, allocations: 82.12 kB / 1.186 GB, free: 125.3 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001791/3.108, allocations: 127.8 kB / 1.186 GB, free: 125.2 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 1.645e-05/3.108, allocations: 26.45 kB / 1.186 GB, free: 125.2 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.113e-05/3.108, allocations: 155 kB / 1.187 GB, free: 125.1 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.522e-05/3.108, allocations: 26.14 kB / 1.187 GB, free: 125.1 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.438e-06/3.108, allocations: 0.8125 kB / 1.187 GB, free: 125.1 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 7.599e-05/3.108, allocations: 315.1 kB / 1.187 GB, free: 124.7 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.553e-05/3.108, allocations: 26.06 kB / 1.187 GB, free: 124.7 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001084/3.108, allocations: 48.34 kB / 1.187 GB, free: 124.7 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001026/3.108, allocations: 30.75 kB / 1.187 GB, free: 124.7 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/3.108, allocations: 0 / 1.187 GB, free: 124.7 MB / 426.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0003194/3.109, allocations: 106.5 kB / 1.187 GB, free: 124.7 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.448e-05/3.109, allocations: 9.672 kB / 1.187 GB, free: 124.7 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.687e-06/3.109, allocations: 2.344 kB / 1.187 GB, free: 124.7 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.936e-05/3.109, allocations: 1 kB / 1.187 GB, free: 124.7 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001931/3.109, allocations: 20.7 kB / 1.187 GB, free: 124.7 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.206e-05/3.109, allocations: 6.25 kB / 1.187 GB, free: 124.7 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001094/3.109, allocations: 9.047 kB / 1.187 GB, free: 124.7 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.556e-05/3.109, allocations: 6.031 kB / 1.187 GB, free: 124.7 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.801e-05/3.109, allocations: 109.1 kB / 1.187 GB, free: 124.6 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.533e-05/3.109, allocations: 8.297 kB / 1.187 GB, free: 124.6 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004278/3.11, allocations: 132.3 kB / 1.187 GB, free: 124.5 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.541e-06/3.11, allocations: 1.031 kB / 1.187 GB, free: 124.5 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.852e-06/3.11, allocations: 0.9688 kB / 1.187 GB, free: 124.5 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.011e-06/3.11, allocations: 1.734 kB / 1.187 GB, free: 124.5 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002078/3.11, allocations: 178.6 kB / 1.187 GB, free: 124.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/3.11, allocations: 2.297 kB / 1.187 GB, free: 124.3 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001768/3.11, allocations: 14.16 kB / 1.188 GB, free: 124.3 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.735e-06/3.11, allocations: 0.875 kB / 1.188 GB, free: 124.3 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.018e-05/3.11, allocations: 6.078 kB / 1.188 GB, free: 124.3 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.032e-06/3.11, allocations: 5.734 kB / 1.188 GB, free: 124.3 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/3.11, allocations: 1.125 kB / 1.188 GB, free: 124.3 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004588/3.111, allocations: 174.7 kB / 1.188 GB, free: 124.2 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001091/3.111, allocations: 105.4 kB / 1.188 GB, free: 124.1 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.495e-05/3.111, allocations: 5.859 kB / 1.188 GB, free: 124.1 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.023e-05/3.111, allocations: 4.719 kB / 1.188 GB, free: 124.1 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.937e-05/3.111, allocations: 9.656 kB / 1.188 GB, free: 124.1 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.435e-05/3.111, allocations: 8.656 kB / 1.188 GB, free: 124.1 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0001066/3.111, allocations: 107 kB / 1.188 GB, free: 124.1 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.61e-07/3.111, allocations: 0 / 1.188 GB, free: 124.1 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00146/3.113, allocations: 264.8 kB / 1.188 GB, free: 124.1 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.003878/3.117, allocations: 1.625 MB / 1.19 GB, free: 123.3 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.000334/3.117, allocations: 56.06 kB / 1.19 GB, free: 123.3 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.628e-06/3.117, allocations: 3.5 kB / 1.19 GB, free: 123.3 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 8.319e-05/3.117, allocations: 33.33 kB / 1.19 GB, free: 123.3 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000389/3.118, allocations: 25.28 kB / 1.19 GB, free: 123.3 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001494/3.119, allocations: 417.5 kB / 1.19 GB, free: 123.1 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001933/3.119, allocations: 0.6941 MB / 1.191 GB, free: 122.4 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001054/3.119, allocations: 30.64 kB / 1.191 GB, free: 122.4 MB / 426.7 MB Notification: Performance of SimCode: time 1.112e-06/3.119, allocations: 3.75 kB / 1.191 GB, free: 122.4 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.812/5.932, allocations: 8.376 MB / 1.199 GB, free: 121.8 MB / 426.7 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