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.001034/0.001034, allocations: 94.39 kB / 17 MB, free: 6.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001387/0.001388, allocations: 190.9 kB / 17.9 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.392/1.392, allocations: 227.3 MB / 246 MB, free: 12 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002351/0.0002351, allocations: 7.984 kB / 306.8 MB, free: 1.492 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09828/0.09853, allocations: 51.5 MB / 358.3 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX): time 0.001394/0.09995, allocations: 1.08 MB / 359.4 MB, free: 12.9 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.3444/0.4443, allocations: 135.4 MB / 494.8 MB, free: 4.512 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.104e-05/0.4444, allocations: 0 / 494.8 MB, free: 4.512 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.535e-05/0.4445, allocations: 7.922 kB / 494.8 MB, free: 4.504 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009099/0.4454, allocations: 262.5 kB / 495.1 MB, free: 4.254 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008889/0.4463, allocations: 354.4 kB / 495.4 MB, free: 3.91 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001001/0.4464, allocations: 83.61 kB / 495.5 MB, free: 3.828 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.889e-05/0.4465, allocations: 8 kB / 495.5 MB, free: 3.82 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.748e-05/0.4465, allocations: 31.86 kB / 495.6 MB, free: 3.789 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.67e-05/0.4466, allocations: 39.89 kB / 495.6 MB, free: 3.75 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.49e-05/0.4467, allocations: 0 / 495.6 MB, free: 3.75 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001434/0.4481, allocations: 0.7788 MB / 496.4 MB, free: 2.973 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.026e-05/0.4481, allocations: 19.98 kB / 496.4 MB, free: 2.953 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.721e-05/0.4482, allocations: 37.62 kB / 496.4 MB, free: 2.91 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006007/0.4488, allocations: 448.9 kB / 496.9 MB, free: 2.473 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.4488, allocations: 0 / 496.9 MB, free: 2.473 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.4488, allocations: 0 / 496.9 MB, free: 2.473 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.318e-06/0.4488, allocations: 0 / 496.9 MB, free: 2.473 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.0005283/0.4493, allocations: 443.7 kB / 497.3 MB, free: 1.992 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.985e-05/0.4494, allocations: 12.03 kB / 497.3 MB, free: 1.98 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.049e-05/0.4494, allocations: 30.56 kB / 497.3 MB, free: 1.941 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004198/0.4499, allocations: 71.84 kB / 497.4 MB, free: 1.871 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001555/0.45, allocations: 197.5 kB / 497.6 MB, free: 1.641 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.077e-05/0.45, allocations: 4.703 kB / 497.6 MB, free: 1.637 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.92e-05/0.4501, allocations: 4 kB / 497.6 MB, free: 1.633 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001413/0.4502, allocations: 75.33 kB / 497.7 MB, free: 1.547 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.512e-06/0.4502, allocations: 0 / 497.7 MB, free: 1.547 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.073e-06/0.4502, allocations: 0 / 497.7 MB, free: 1.547 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.711e-06/0.4502, allocations: 4 kB / 497.7 MB, free: 1.543 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.212e-05/0.4503, allocations: 39.97 kB / 497.7 MB, free: 1.504 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002304/0.4506, allocations: 194.6 kB / 497.9 MB, free: 1.262 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002825/0.4509, allocations: 117.1 kB / 498 MB, free: 1.129 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.975e-05/0.451, allocations: 37.69 kB / 498.1 MB, free: 1.086 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004045/0.4514, allocations: 137 kB / 498.2 MB, free: 0.9336 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.276e-05/0.4514, allocations: 34.5 kB / 498.2 MB, free: 0.8906 MB / 398.1 MB Notification: Performance of pre-optimization done (n=6): time 1.112e-06/0.4514, allocations: 0 / 498.2 MB, free: 0.8906 MB / 398.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003158/0.4517, allocations: 121.5 kB / 498.4 MB, free: 0.7656 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.99e-05/0.4518, allocations: 81.09 kB / 498.4 MB, free: 0.668 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001199/0.4519, allocations: 141.8 kB / 498.6 MB, free: 0.5195 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.363e-05/0.4519, allocations: 25.7 kB / 498.6 MB, free: 500 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.994e-05/0.452, allocations: 88.14 kB / 498.7 MB, free: 408 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.633e-05/0.452, allocations: 27.62 kB / 498.7 MB, free: 380 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.138e-06/0.452, allocations: 4 kB / 498.7 MB, free: 376 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001086/0.4522, allocations: 314.8 kB / 499 MB, free: 52 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.084e-05/0.4522, allocations: 23.98 kB / 499 MB, free: 28 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.291e-05/0.4523, allocations: 55.34 kB / 499.1 MB, free: 15.96 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.885e-05/0.4524, allocations: 28.36 kB / 499.1 MB, free: 15.93 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.4524, allocations: 0 / 499.1 MB, free: 15.93 MB / 414.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002466/0.4527, allocations: 121.4 kB / 499.2 MB, free: 15.81 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.026e-05/0.4527, allocations: 4 kB / 499.3 MB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.294e-06/0.4527, allocations: 4 kB / 499.3 MB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.367e-05/0.4527, allocations: 0 / 499.3 MB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.143e-05/0.4528, allocations: 15.98 kB / 499.3 MB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.081e-05/0.4528, allocations: 4 kB / 499.3 MB, free: 15.78 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.71e-05/0.4529, allocations: 7.938 kB / 499.3 MB, free: 15.77 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.256e-06/0.4529, allocations: 4 kB / 499.3 MB, free: 15.77 MB / 414.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.799e-05/0.453, allocations: 117.8 kB / 499.4 MB, free: 15.64 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.427e-05/0.453, allocations: 15.84 kB / 499.4 MB, free: 15.63 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000251/0.4533, allocations: 114.7 kB / 499.5 MB, free: 15.51 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.955e-06/0.4533, allocations: 0 / 499.5 MB, free: 15.51 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.4533, allocations: 0 / 499.5 MB, free: 15.51 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.4533, allocations: 0 / 499.5 MB, free: 15.51 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001429/0.4535, allocations: 177.7 kB / 499.7 MB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.4535, allocations: 7.984 kB / 499.7 MB, free: 15.28 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.334e-05/0.4536, allocations: 9.75 kB / 499.7 MB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.484e-06/0.4536, allocations: 0 / 499.7 MB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.188e-05/0.4536, allocations: 11.95 kB / 499.7 MB, free: 15.26 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.4536, allocations: 0 / 499.7 MB, free: 15.26 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.4536, allocations: 0 / 499.7 MB, free: 15.26 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003056/0.4539, allocations: 165.8 kB / 499.9 MB, free: 15.08 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.351e-05/0.454, allocations: 93 kB / 500 MB, free: 14.97 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.812e-05/0.454, allocations: 0 / 500 MB, free: 14.97 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.021e-05/0.4541, allocations: 8.016 kB / 500 MB, free: 14.96 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.463e-05/0.4541, allocations: 15.92 kB / 0.4883 GB, free: 14.95 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.021e-06/0.4541, allocations: 4 kB / 0.4883 GB, free: 14.94 MB / 414.1 MB Notification: Performance of sorting global known variables: time 7.767e-05/0.4542, allocations: 111.2 kB / 0.4884 GB, free: 14.83 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4542, allocations: 0 / 0.4884 GB, free: 14.83 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004788/0.4547, allocations: 155.9 kB / 0.4885 GB, free: 14.68 MB / 414.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.00139/0.4561, allocations: 0.9532 MB / 0.4895 GB, free: 13.7 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001768/0.4563, allocations: 59.95 kB / 0.4895 GB, free: 13.64 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.4563, allocations: 8.062 kB / 0.4895 GB, free: 13.63 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.516e-05/0.4564, allocations: 27.98 kB / 0.4896 GB, free: 13.61 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000253/0.4566, allocations: 38.61 kB / 0.4896 GB, free: 13.57 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001248/0.4579, allocations: 0.8958 MB / 0.4905 GB, free: 12.61 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002598/0.4582, allocations: 0.6887 MB / 0.4912 GB, free: 11.9 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.119e-05/0.4582, allocations: 16.75 kB / 0.4912 GB, free: 11.88 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.045e-05/0.4583, allocations: 27.44 kB / 0.4912 GB, free: 11.86 MB / 414.1 MB Notification: Performance of SimCode: time 3.71e-07/0.4583, allocations: 3.938 kB / 0.4912 GB, free: 11.85 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01734/0.4756, allocations: 5.808 MB / 0.4969 GB, free: 6.207 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001673/0.4758, allocations: 235.6 kB / 0.4971 GB, free: 5.965 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.91/2.385, allocations: 0 / 0.4971 GB, free: 5.965 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