Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sh_TX",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001427/0.001427, allocations: 100.8 kB / 16.99 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002059/0.002058, allocations: 202.7 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.405/1.405, allocations: 227.3 MB / 245.9 MB, free: 12.05 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002777/0.000278, allocations: 4 kB / 306.7 MB, free: 1.5 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1154/0.1157, allocations: 51.49 MB / 358.2 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX): time 0.001422/0.1171, allocations: 1.06 MB / 359.3 MB, free: 12.94 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.365/0.4822, allocations: 126.1 MB / 485.3 MB, free: 13.47 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.402e-05/0.4823, allocations: 0 / 485.3 MB, free: 13.47 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 5.031e-05/0.4823, allocations: 3.984 kB / 485.3 MB, free: 13.46 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001086/0.4834, allocations: 275.1 kB / 485.6 MB, free: 13.2 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007952/0.4842, allocations: 346.9 kB / 485.9 MB, free: 12.86 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 8.015e-05/0.4843, allocations: 47.92 kB / 486 MB, free: 12.81 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.495e-05/0.4844, allocations: 7.984 kB / 486 MB, free: 12.8 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.1e-05/0.4845, allocations: 31.84 kB / 486 MB, free: 12.77 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.445e-05/0.4845, allocations: 31.91 kB / 486 MB, free: 12.74 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.21e-05/0.4846, allocations: 0 / 486 MB, free: 12.74 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001617/0.4862, allocations: 0.7645 MB / 486.8 MB, free: 11.98 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 4.404e-05/0.4862, allocations: 15.92 kB / 486.8 MB, free: 11.96 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.384e-05/0.4863, allocations: 33.7 kB / 486.8 MB, free: 11.92 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007266/0.487, allocations: 408.8 kB / 487.2 MB, free: 11.53 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.487, allocations: 4 kB / 487.3 MB, free: 11.52 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.375e-06/0.487, allocations: 0 / 487.3 MB, free: 11.52 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.689e-06/0.487, allocations: 0 / 487.3 MB, free: 11.52 MB / 398.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.0006242/0.4877, allocations: 447.7 kB / 487.7 MB, free: 11.04 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.759e-05/0.4877, allocations: 12.03 kB / 487.7 MB, free: 11.03 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.457e-05/0.4878, allocations: 34.55 kB / 487.7 MB, free: 10.98 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00045/0.4882, allocations: 59.92 kB / 487.8 MB, free: 10.93 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001801/0.4884, allocations: 202.8 kB / 488 MB, free: 10.69 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.684e-05/0.4884, allocations: 3.953 kB / 488 MB, free: 10.68 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.318e-05/0.4885, allocations: 4 kB / 488 MB, free: 10.68 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001658/0.4886, allocations: 67.39 kB / 488.1 MB, free: 10.6 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.272e-06/0.4887, allocations: 4 kB / 488.1 MB, free: 10.6 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.049e-05/0.4887, allocations: 4 kB / 488.1 MB, free: 10.59 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.354e-06/0.4887, allocations: 0 / 488.1 MB, free: 10.59 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.888e-05/0.4888, allocations: 43.91 kB / 488.1 MB, free: 10.55 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002163/0.489, allocations: 194.6 kB / 488.3 MB, free: 10.31 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003018/0.4893, allocations: 117.2 kB / 488.4 MB, free: 10.18 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004435/0.4898, allocations: 137.2 kB / 488.6 MB, free: 10.02 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.543e-05/0.4898, allocations: 30.56 kB / 488.6 MB, free: 9.984 MB / 398.1 MB Notification: Performance of pre-optimization done (n=6): time 1.202e-06/0.4898, allocations: 4 kB / 488.6 MB, free: 9.98 MB / 398.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003612/0.4902, allocations: 125.6 kB / 488.7 MB, free: 9.852 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.86e-05/0.4903, allocations: 77.11 kB / 488.8 MB, free: 9.758 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001253/0.4904, allocations: 146.6 kB / 488.9 MB, free: 9.605 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.571e-05/0.4904, allocations: 25.7 kB / 489 MB, free: 9.574 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.335e-05/0.4905, allocations: 88.12 kB / 489 MB, free: 9.484 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.616e-05/0.4905, allocations: 23.66 kB / 489.1 MB, free: 9.461 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.478e-06/0.4905, allocations: 0 / 489.1 MB, free: 9.461 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001217/0.4907, allocations: 322.8 kB / 489.4 MB, free: 9.137 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.228e-05/0.4907, allocations: 23.98 kB / 489.4 MB, free: 9.113 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.165e-05/0.4908, allocations: 47.42 kB / 489.4 MB, free: 9.055 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.614e-05/0.4909, allocations: 31.92 kB / 489.5 MB, free: 9.023 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.4909, allocations: 3.938 kB / 489.5 MB, free: 9.02 MB / 398.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002293/0.4911, allocations: 113.4 kB / 489.6 MB, free: 8.902 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.118e-05/0.4912, allocations: 8 kB / 489.6 MB, free: 8.895 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.4912, allocations: 0 / 489.6 MB, free: 8.895 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.359e-05/0.4912, allocations: 0 / 489.6 MB, free: 8.895 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.547e-05/0.4913, allocations: 16 kB / 489.6 MB, free: 8.879 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.76e-06/0.4913, allocations: 0 / 489.6 MB, free: 8.879 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.169e-05/0.4913, allocations: 11.98 kB / 489.6 MB, free: 8.867 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.946e-06/0.4914, allocations: 0 / 489.6 MB, free: 8.867 MB / 398.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 8.33e-05/0.4914, allocations: 117.8 kB / 489.7 MB, free: 8.742 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.07e-05/0.4915, allocations: 11.86 kB / 489.8 MB, free: 8.73 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002469/0.4918, allocations: 115.6 kB / 489.9 MB, free: 8.613 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/0.4918, allocations: 0 / 489.9 MB, free: 8.613 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.071e-05/0.4918, allocations: 3.984 kB / 489.9 MB, free: 8.609 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.49e-06/0.4918, allocations: 4 kB / 489.9 MB, free: 8.605 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001484/0.492, allocations: 177.7 kB / 490 MB, free: 8.383 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.492, allocations: 0 / 490 MB, free: 8.383 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.964e-05/0.492, allocations: 15.98 kB / 490.1 MB, free: 8.367 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.308e-06/0.4921, allocations: 4 kB / 490.1 MB, free: 8.363 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.141e-05/0.4921, allocations: 4.453 kB / 490.1 MB, free: 8.359 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.4921, allocations: 0 / 490.1 MB, free: 8.359 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.4921, allocations: 0 / 490.1 MB, free: 8.359 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003401/0.4924, allocations: 176.2 kB / 490.2 MB, free: 8.16 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.676e-05/0.4925, allocations: 97.44 kB / 490.3 MB, free: 8.047 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.113e-05/0.4925, allocations: 3.953 kB / 490.3 MB, free: 8.043 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.523e-05/0.4926, allocations: 8.75 kB / 490.4 MB, free: 8.035 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.37e-05/0.4927, allocations: 7.922 kB / 490.4 MB, free: 8.027 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.668e-06/0.4927, allocations: 4 kB / 490.4 MB, free: 8.023 MB / 398.1 MB Notification: Performance of sorting global known variables: time 7.74e-05/0.4928, allocations: 115.2 kB / 490.5 MB, free: 7.91 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4928, allocations: 0 / 490.5 MB, free: 7.91 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006029/0.4934, allocations: 159.8 kB / 490.6 MB, free: 7.754 MB / 398.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.001572/0.495, allocations: 1.034 MB / 491.7 MB, free: 6.691 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002142/0.4952, allocations: 67.88 kB / 491.7 MB, free: 6.625 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.4952, allocations: 0 / 491.7 MB, free: 6.625 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 7.027e-05/0.4953, allocations: 31.98 kB / 491.8 MB, free: 6.594 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000219/0.4955, allocations: 23.92 kB / 491.8 MB, free: 6.57 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00144/0.497, allocations: 1.344 MB / 493.1 MB, free: 5.164 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002446/0.4972, allocations: 0.6926 MB / 493.8 MB, free: 4.445 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.701e-05/0.4973, allocations: 19.89 kB / 493.8 MB, free: 4.426 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.383e-05/0.4973, allocations: 23.44 kB / 493.9 MB, free: 4.402 MB / 398.1 MB Notification: Performance of SimCode: time 2.91e-07/0.4973, allocations: 0 / 493.9 MB, free: 4.402 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01912/0.5165, allocations: 5.898 MB / 499.8 MB, free: 14.66 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002006/0.5167, allocations: 237.7 kB / 500 MB, free: 14.41 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.045/2.562, allocations: 0 / 500 MB, free: 14.41 MB / 414.1 MB (rm -f Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX_res.mat --tempDir=temp_Modelica_trunk_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sh_TX_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sh_TX.fmu > Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX_res.mat does not exist to compare? outputFormat=mat