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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009245/0.0009247, allocations: 93.61 kB / 16.3 MB, free: 6.133 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001119/0.001119, allocations: 180.6 kB / 17.2 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.347/1.347, allocations: 223.2 MB / 241.1 MB, free: 384 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002604/0.0002604, allocations: 8 kB / 300.8 MB, free: 6.387 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1033/0.1036, allocations: 50.42 MB / 351.2 MB, free: 3.957 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX): time 0.001269/0.1049, allocations: 1.048 MB / 352.3 MB, free: 2.898 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.3513/0.4562, allocations: 126 MB / 478.3 MB, free: 6.508 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.908e-05/0.4563, allocations: 3.938 kB / 478.3 MB, free: 6.504 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 4.798e-05/0.4564, allocations: 0 / 478.3 MB, free: 6.504 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001291/0.4577, allocations: 267.2 kB / 478.5 MB, free: 6.242 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001083/0.4588, allocations: 339.1 kB / 478.9 MB, free: 5.91 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001975/0.459, allocations: 51.92 kB / 478.9 MB, free: 5.859 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.819e-05/0.4591, allocations: 3.984 kB / 478.9 MB, free: 5.855 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.481e-05/0.4591, allocations: 35.84 kB / 479 MB, free: 5.82 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.455e-05/0.4592, allocations: 27.91 kB / 479 MB, free: 5.793 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.65e-05/0.4593, allocations: 4 kB / 479 MB, free: 5.789 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001885/0.4612, allocations: 0.7605 MB / 479.8 MB, free: 5.027 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.843e-05/0.4613, allocations: 23.91 kB / 479.8 MB, free: 5.004 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.867e-05/0.4613, allocations: 29.7 kB / 479.8 MB, free: 4.969 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001004/0.4623, allocations: 404.8 kB / 480.2 MB, free: 4.578 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.4623, allocations: 0 / 480.2 MB, free: 4.578 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.4624, allocations: 4 kB / 480.2 MB, free: 4.574 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.625e-06/0.4624, allocations: 0 / 480.2 MB, free: 4.574 MB / 382.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.0007595/0.4631, allocations: 447.6 kB / 480.6 MB, free: 4.09 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.627e-05/0.4632, allocations: 12.03 kB / 480.7 MB, free: 4.078 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.42e-05/0.4633, allocations: 34.56 kB / 480.7 MB, free: 4.035 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006521/0.4639, allocations: 63.91 kB / 480.8 MB, free: 3.973 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002131/0.4641, allocations: 198.8 kB / 480.9 MB, free: 3.738 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.838e-05/0.4642, allocations: 0 / 480.9 MB, free: 3.738 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.412e-05/0.4642, allocations: 8 kB / 481 MB, free: 3.73 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00018/0.4644, allocations: 75.38 kB / 481 MB, free: 3.645 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.077e-06/0.4644, allocations: 0 / 481 MB, free: 3.645 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.414e-05/0.4644, allocations: 3.953 kB / 481 MB, free: 3.641 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.951e-06/0.4645, allocations: 0 / 481 MB, free: 3.641 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001133/0.4646, allocations: 47.91 kB / 481.1 MB, free: 3.594 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002635/0.4648, allocations: 194.6 kB / 481.3 MB, free: 3.352 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003284/0.4652, allocations: 113.2 kB / 481.4 MB, free: 3.223 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005306/0.4657, allocations: 129.2 kB / 481.5 MB, free: 3.078 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.464e-05/0.4658, allocations: 34.56 kB / 481.5 MB, free: 3.035 MB / 382.1 MB Notification: Performance of pre-optimization done (n=6): time 1.523e-06/0.4658, allocations: 4 kB / 481.5 MB, free: 3.031 MB / 382.1 MB Notification: Performance of matching and sorting (n=6): time 0.0004055/0.4662, allocations: 125.5 kB / 481.7 MB, free: 2.902 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001358/0.4663, allocations: 81.06 kB / 481.7 MB, free: 2.805 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001908/0.4666, allocations: 141.8 kB / 481.9 MB, free: 2.656 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.966e-05/0.4666, allocations: 25.7 kB / 481.9 MB, free: 2.625 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.118e-05/0.4666, allocations: 88.14 kB / 482 MB, free: 2.535 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.957e-05/0.4667, allocations: 27.64 kB / 482 MB, free: 2.508 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.138e-06/0.4667, allocations: 0 / 482 MB, free: 2.508 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001115/0.4668, allocations: 318.8 kB / 482.3 MB, free: 2.188 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.582e-05/0.4669, allocations: 19.98 kB / 482.4 MB, free: 2.168 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.661e-05/0.467, allocations: 56.2 kB / 482.4 MB, free: 2.102 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.334e-05/0.467, allocations: 35.92 kB / 482.4 MB, free: 2.066 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.4671, allocations: 0 / 482.4 MB, free: 2.066 MB / 382.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002372/0.4673, allocations: 105.5 kB / 482.5 MB, free: 1.957 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.558e-05/0.4673, allocations: 8 kB / 482.6 MB, free: 1.949 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.4673, allocations: 0 / 482.6 MB, free: 1.949 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.348e-05/0.4674, allocations: 4 kB / 482.6 MB, free: 1.945 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.705e-05/0.4674, allocations: 15.98 kB / 482.6 MB, free: 1.93 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.041e-06/0.4674, allocations: 4.062 kB / 482.6 MB, free: 1.926 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.38e-05/0.4675, allocations: 7.953 kB / 482.6 MB, free: 1.918 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.679e-06/0.4675, allocations: 3.938 kB / 482.6 MB, free: 1.914 MB / 382.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 () * 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 7.721e-05/0.4676, allocations: 121.8 kB / 482.7 MB, free: 1.785 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.849e-05/0.4677, allocations: 7.906 kB / 482.7 MB, free: 1.777 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002393/0.4679, allocations: 115.4 kB / 482.8 MB, free: 1.66 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.534e-06/0.4679, allocations: 0 / 482.8 MB, free: 1.66 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.117e-06/0.4679, allocations: 0 / 482.8 MB, free: 1.66 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.586e-06/0.4679, allocations: 8 kB / 482.8 MB, free: 1.652 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001357/0.4681, allocations: 181.6 kB / 483 MB, free: 1.426 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.263e-06/0.4681, allocations: 0 / 483 MB, free: 1.426 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.481e-05/0.4682, allocations: 12 kB / 483 MB, free: 1.414 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.825e-06/0.4682, allocations: 4 kB / 483 MB, free: 1.41 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.728e-06/0.4682, allocations: 0.875 kB / 483 MB, free: 1.41 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.639e-06/0.4682, allocations: 3.984 kB / 483 MB, free: 1.406 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.4682, allocations: 4 kB / 483 MB, free: 1.402 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000416/0.4686, allocations: 176.2 kB / 483.2 MB, free: 1.203 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.192e-05/0.4687, allocations: 93.03 kB / 483.3 MB, free: 1.094 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.894e-05/0.4687, allocations: 2.875 kB / 483.3 MB, free: 1.094 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.352e-05/0.4688, allocations: 7.984 kB / 483.3 MB, free: 1.086 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.961e-05/0.4688, allocations: 4 kB / 483.3 MB, free: 1.082 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.696e-06/0.4688, allocations: 7.938 kB / 483.3 MB, free: 1.074 MB / 382.1 MB Notification: Performance of sorting global known variables: time 8.268e-05/0.4689, allocations: 119.8 kB / 483.4 MB, free: 0.957 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4689, allocations: 0 / 483.4 MB, free: 0.957 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005543/0.4695, allocations: 155.9 kB / 483.6 MB, free: 0.8047 MB / 382.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 () * 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.001805/0.4713, allocations: 1.035 MB / 484.6 MB, free: 15.74 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001901/0.4715, allocations: 67.89 kB / 484.7 MB, free: 15.68 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.4715, allocations: 0 / 484.7 MB, free: 15.68 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 6.792e-05/0.4716, allocations: 27.98 kB / 484.7 MB, free: 15.65 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002151/0.4718, allocations: 28.05 kB / 484.7 MB, free: 15.62 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001574/0.4734, allocations: 1.342 MB / 486.1 MB, free: 14.22 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002815/0.4737, allocations: 0.6926 MB / 486.8 MB, free: 13.5 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.57e-05/0.4738, allocations: 11.94 kB / 486.8 MB, free: 13.49 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.631e-05/0.4738, allocations: 27.42 kB / 486.8 MB, free: 13.46 MB / 398.1 MB Notification: Performance of SimCode: time 2.41e-07/0.4739, allocations: 4 kB / 486.8 MB, free: 13.46 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01864/0.4925, allocations: 5.872 MB / 492.7 MB, free: 7.742 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001639/0.4927, allocations: 251.1 kB / 492.9 MB, free: 7.496 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.024/2.517, allocations: 4.062 kB / 492.9 MB, free: 7.492 MB / 398.1 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