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.001606/0.001606, allocations: 189.5 kB / 16.4 MB, free: 5.625 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.075/2.075, allocations: 205.4 MB / 222.5 MB, free: 13.85 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.001201/0.001201, allocations: 90.84 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005566/0.0005567, allocations: 12 kB / 327.1 MB, free: 15.01 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1087/0.1094, allocations: 47.58 MB / 374.6 MB, free: 15.34 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX): time 0.001865/0.1113, allocations: 1.047 MB / 375.7 MB, free: 14.29 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.5127/0.624, allocations: 127.4 MB / 0.4913 GB, free: 12.9 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.542e-05/0.6242, allocations: 0 / 0.4913 GB, free: 12.9 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 5.053e-05/0.6242, allocations: 0 / 0.4913 GB, free: 12.9 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001252/0.6255, allocations: 255.2 kB / 0.4916 GB, free: 12.65 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002512/0.628, allocations: 0.5715 MB / 0.4921 GB, free: 12.08 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001456/0.6282, allocations: 63.78 kB / 0.4922 GB, free: 12.02 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.763e-05/0.6283, allocations: 0 / 0.4922 GB, free: 12.02 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.396e-05/0.6284, allocations: 31.91 kB / 0.4922 GB, free: 11.99 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.849e-05/0.6285, allocations: 23.92 kB / 0.4922 GB, free: 11.96 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.035e-05/0.6285, allocations: 4 kB / 0.4922 GB, free: 11.96 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003653/0.6322, allocations: 1.037 MB / 0.4933 GB, free: 10.92 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 6.096e-05/0.6323, allocations: 11.98 kB / 0.4933 GB, free: 10.91 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 5.632e-05/0.6324, allocations: 37.64 kB / 0.4933 GB, free: 10.87 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00189/0.6343, allocations: 0.4966 MB / 0.4938 GB, free: 10.38 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.6343, allocations: 0 / 0.4938 GB, free: 10.38 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.498e-06/0.6344, allocations: 0 / 0.4938 GB, free: 10.38 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.664e-06/0.6344, allocations: 0 / 0.4938 GB, free: 10.38 MB / 378.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.001059/0.6354, allocations: 463.7 kB / 0.4942 GB, free: 9.875 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.734e-05/0.6355, allocations: 12.03 kB / 0.4942 GB, free: 9.863 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.104e-05/0.6356, allocations: 34.56 kB / 0.4943 GB, free: 9.82 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004464/0.636, allocations: 31.95 kB / 0.4943 GB, free: 9.789 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002639/0.6363, allocations: 198.8 kB / 0.4945 GB, free: 9.555 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.781e-05/0.6364, allocations: 8 kB / 0.4945 GB, free: 9.547 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.734e-05/0.6364, allocations: 0 / 0.4945 GB, free: 9.547 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002404/0.6367, allocations: 71.33 kB / 0.4946 GB, free: 9.465 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.076e-05/0.6367, allocations: 0 / 0.4946 GB, free: 9.465 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.669e-05/0.6367, allocations: 8 kB / 0.4946 GB, free: 9.457 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.524e-06/0.6367, allocations: 0 / 0.4946 GB, free: 9.457 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001688/0.6369, allocations: 39.97 kB / 0.4946 GB, free: 9.418 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003/0.6372, allocations: 194.5 kB / 0.4948 GB, free: 9.176 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004572/0.6377, allocations: 113.2 kB / 0.4949 GB, free: 9.047 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.855e-05/0.6378, allocations: 20.12 kB / 0.4949 GB, free: 9.027 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.961e-05/0.6378, allocations: 38.56 kB / 0.495 GB, free: 8.98 MB / 378.7 MB Notification: Performance of pre-optimization done (n=6): time 1.834e-06/0.6379, allocations: 3.938 kB / 0.495 GB, free: 8.977 MB / 378.7 MB Notification: Performance of matching and sorting (n=6): time 0.000543/0.6384, allocations: 113.9 kB / 0.4951 GB, free: 8.859 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.863e-05/0.6385, allocations: 81.05 kB / 0.4952 GB, free: 8.762 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001908/0.6387, allocations: 145.8 kB / 0.4953 GB, free: 8.609 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.068e-05/0.6387, allocations: 29.7 kB / 0.4953 GB, free: 8.574 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.675e-05/0.6388, allocations: 150.6 kB / 0.4955 GB, free: 8.426 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.648e-05/0.6389, allocations: 23.66 kB / 0.4955 GB, free: 8.402 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.673e-06/0.6389, allocations: 3.938 kB / 0.4955 GB, free: 8.398 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001406/0.6391, allocations: 314.8 kB / 0.4958 GB, free: 8.082 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001183/0.6392, allocations: 27.97 kB / 0.4958 GB, free: 8.055 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001366/0.6393, allocations: 51.42 kB / 0.4959 GB, free: 7.992 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001263/0.6395, allocations: 28.02 kB / 0.4959 GB, free: 7.965 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.682e-06/0.6395, allocations: 7.953 kB / 0.4959 GB, free: 7.957 MB / 378.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0003745/0.6399, allocations: 105.5 kB / 0.496 GB, free: 7.848 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.029e-05/0.6399, allocations: 7.938 kB / 0.496 GB, free: 7.84 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.328e-06/0.6399, allocations: 4 kB / 0.496 GB, free: 7.836 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.783e-05/0.64, allocations: 0 / 0.496 GB, free: 7.836 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001394/0.6401, allocations: 20.05 kB / 0.496 GB, free: 7.816 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.146e-06/0.6401, allocations: 0 / 0.496 GB, free: 7.816 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.405e-05/0.6402, allocations: 4 kB / 0.496 GB, free: 7.812 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.647e-05/0.6403, allocations: 4 kB / 0.496 GB, free: 7.809 MB / 378.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 () * Number of clocked 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 0.0001188/0.6404, allocations: 117.8 kB / 0.4962 GB, free: 7.684 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.353e-05/0.6405, allocations: 12.61 kB / 0.4962 GB, free: 7.672 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003996/0.6409, allocations: 109.9 kB / 0.4963 GB, free: 7.562 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/0.6409, allocations: 8 kB / 0.4963 GB, free: 7.555 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.6409, allocations: 0 / 0.4963 GB, free: 7.555 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.6409, allocations: 0 / 0.4963 GB, free: 7.555 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002215/0.6412, allocations: 185.5 kB / 0.4965 GB, free: 7.324 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.271e-06/0.6412, allocations: 11.88 kB / 0.4965 GB, free: 7.316 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001554/0.6414, allocations: 11.95 kB / 0.4965 GB, free: 7.305 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.13e-06/0.6414, allocations: 0 / 0.4965 GB, free: 7.305 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.891e-05/0.6414, allocations: 7.984 kB / 0.4965 GB, free: 7.297 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.918e-06/0.6414, allocations: 0.7812 kB / 0.4965 GB, free: 7.297 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.6414, allocations: 0 / 0.4965 GB, free: 7.297 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005432/0.642, allocations: 175.5 kB / 0.4967 GB, free: 7.098 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.407e-05/0.6421, allocations: 89.03 kB / 0.4967 GB, free: 6.992 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.723e-05/0.6421, allocations: 4 kB / 0.4967 GB, free: 6.988 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.816e-05/0.6422, allocations: 3.984 kB / 0.4968 GB, free: 6.984 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.728e-05/0.6423, allocations: 11.94 kB / 0.4968 GB, free: 6.973 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.293e-05/0.6423, allocations: 8.062 kB / 0.4968 GB, free: 6.965 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001241/0.6424, allocations: 115.2 kB / 0.4969 GB, free: 6.852 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.6425, allocations: 0 / 0.4969 GB, free: 6.852 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008739/0.6433, allocations: 195.9 kB / 0.4971 GB, free: 6.66 MB / 378.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 () * Number of clocked 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.002665/0.646, allocations: 1.12 MB / 0.4982 GB, free: 5.504 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003549/0.6464, allocations: 63.89 kB / 0.4982 GB, free: 5.441 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.347e-06/0.6464, allocations: 0 / 0.4982 GB, free: 5.441 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001304/0.6466, allocations: 35.92 kB / 0.4983 GB, free: 5.406 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003551/0.6469, allocations: 32.03 kB / 0.4983 GB, free: 5.375 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002325/0.6493, allocations: 1.395 MB / 0.4996 GB, free: 3.914 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003251/0.6497, allocations: 0.6926 MB / 0.5003 GB, free: 3.195 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001045/0.6498, allocations: 27.42 kB / 0.5004 GB, free: 3.168 MB / 378.7 MB Notification: Performance of SimCode: time 1.563e-06/0.6498, allocations: 0 / 0.5004 GB, free: 3.168 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.757/3.406, allocations: 5.491 MB / 0.5057 GB, free: 13.67 MB / 394.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