Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4_1_0-beta_om_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_1_0-beta_om_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.001332/0.001332, allocations: 114.9 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001318/0.001317, allocations: 205.9 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.432/1.432, allocations: 227.7 MB / 247.2 MB, free: 10.12 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002024/0.002024, allocations: 63.89 kB / 358.5 MB, free: 13.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.26/0.2621, allocations: 50.55 MB / 409.1 MB, free: 1.375 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX): time 0.002752/0.2649, allocations: 1.378 MB / 410.4 MB, free: 15.99 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.4221/0.687, allocations: 151.9 MB / 0.5492 GB, free: 0.9375 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.962e-05/0.6872, allocations: 0 / 0.5492 GB, free: 0.9375 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 3.565e-05/0.6872, allocations: 6.531 kB / 0.5492 GB, free: 0.9375 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00114/0.6884, allocations: 380.2 kB / 0.5495 GB, free: 0.9297 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001072/0.6895, allocations: 0.4973 MB / 0.55 GB, free: 0.9102 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001128/0.6896, allocations: 73.84 kB / 0.5501 GB, free: 0.9102 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.946e-05/0.6896, allocations: 2.875 kB / 0.5501 GB, free: 0.9102 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.063e-05/0.6897, allocations: 35.2 kB / 0.5501 GB, free: 0.9102 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.566e-05/0.6898, allocations: 39.41 kB / 0.5502 GB, free: 0.9062 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 1.509e-05/0.6898, allocations: 2.906 kB / 0.5502 GB, free: 0.9062 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001704/0.6915, allocations: 1.088 MB / 0.5512 GB, free: 0.8945 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 4.175e-05/0.6916, allocations: 19.33 kB / 0.5513 GB, free: 0.8945 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 4.169e-05/0.6916, allocations: 21.27 kB / 0.5513 GB, free: 0.8945 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00102/0.6926, allocations: 0.7023 MB / 0.552 GB, free: 0.8594 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.6927, allocations: 0 / 0.552 GB, free: 0.8594 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.6927, allocations: 0 / 0.552 GB, free: 0.8594 MB / 462.1 MB Notification: Performance of Transformations before backend: time 5.42e-06/0.6927, allocations: 3.656 kB / 0.552 GB, free: 0.8594 MB / 462.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.0006878/0.6934, allocations: 464.8 kB / 0.5524 GB, free: 16.44 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.688e-05/0.6934, allocations: 8.094 kB / 0.5524 GB, free: 16.44 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.664e-05/0.6935, allocations: 37.75 kB / 0.5525 GB, free: 16.4 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004402/0.6939, allocations: 67.69 kB / 0.5525 GB, free: 16.39 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001848/0.6941, allocations: 198.1 kB / 0.5527 GB, free: 16.19 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.678e-05/0.6941, allocations: 5.5 kB / 0.5527 GB, free: 16.19 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.122e-05/0.6942, allocations: 5.719 kB / 0.5527 GB, free: 16.19 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001595/0.6943, allocations: 72.5 kB / 0.5528 GB, free: 16.14 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.933e-06/0.6943, allocations: 0 / 0.5528 GB, free: 16.14 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.508e-06/0.6944, allocations: 6.5 kB / 0.5528 GB, free: 16.14 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.228e-06/0.6944, allocations: 1.094 kB / 0.5528 GB, free: 16.14 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.05e-05/0.6945, allocations: 42.5 kB / 0.5528 GB, free: 16.14 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001869/0.6947, allocations: 191.6 kB / 0.553 GB, free: 15.94 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002649/0.6949, allocations: 114.9 kB / 0.5531 GB, free: 15.89 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.489e-05/0.695, allocations: 37 kB / 0.5532 GB, free: 15.87 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004967/0.6955, allocations: 144.3 kB / 0.5533 GB, free: 15.77 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.295e-05/0.6955, allocations: 30.56 kB / 0.5533 GB, free: 15.73 MB / 478.1 MB Notification: Performance of pre-optimization done (n=6): time 1.343e-06/0.6955, allocations: 0 / 0.5533 GB, free: 15.73 MB / 478.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003379/0.6959, allocations: 121.6 kB / 0.5534 GB, free: 15.7 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.322e-05/0.696, allocations: 82.14 kB / 0.5535 GB, free: 15.6 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000119/0.6961, allocations: 146.2 kB / 0.5537 GB, free: 15.5 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 1.637e-05/0.6961, allocations: 28.27 kB / 0.5537 GB, free: 15.47 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.396e-05/0.6962, allocations: 84.17 kB / 0.5538 GB, free: 15.39 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.259e-05/0.6962, allocations: 24.66 kB / 0.5538 GB, free: 15.37 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.386e-05/0.6962, allocations: 21.16 kB / 0.5538 GB, free: 15.36 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001331/0.6964, allocations: 320.8 kB / 0.5541 GB, free: 15.04 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.527e-05/0.6964, allocations: 25.12 kB / 0.5541 GB, free: 15.04 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.656e-05/0.6965, allocations: 54.08 kB / 0.5542 GB, free: 15.01 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001307/0.6966, allocations: 84.17 kB / 0.5543 GB, free: 14.97 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.6967, allocations: 0 / 0.5543 GB, free: 14.97 MB / 478.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002277/0.6969, allocations: 109.6 kB / 0.5544 GB, free: 14.93 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.606e-05/0.6969, allocations: 6.719 kB / 0.5544 GB, free: 14.93 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.439e-06/0.6969, allocations: 0 / 0.5544 GB, free: 14.93 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.319e-05/0.6969, allocations: 1.594 kB / 0.5544 GB, free: 14.93 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.434e-05/0.697, allocations: 18.53 kB / 0.5544 GB, free: 14.93 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.58e-06/0.697, allocations: 2.812 kB / 0.5544 GB, free: 14.93 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.55e-05/0.6971, allocations: 11.75 kB / 0.5544 GB, free: 14.93 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.905e-06/0.6971, allocations: 3.031 kB / 0.5544 GB, free: 14.93 MB / 478.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.398e-05/0.6972, allocations: 117.1 kB / 0.5545 GB, free: 14.81 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.961e-05/0.6972, allocations: 10.25 kB / 0.5545 GB, free: 14.81 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002268/0.6975, allocations: 124 kB / 0.5547 GB, free: 14.75 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.434e-06/0.6975, allocations: 0 / 0.5547 GB, free: 14.75 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.6975, allocations: 2.625 kB / 0.5547 GB, free: 14.75 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/0.6975, allocations: 6.844 kB / 0.5547 GB, free: 14.75 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001331/0.6976, allocations: 186.9 kB / 0.5549 GB, free: 14.56 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.6976, allocations: 1.812 kB / 0.5549 GB, free: 14.56 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.456e-05/0.6977, allocations: 13.81 kB / 0.5549 GB, free: 14.56 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.6977, allocations: 0 / 0.5549 GB, free: 14.56 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.458e-06/0.6977, allocations: 8.141 kB / 0.5549 GB, free: 14.55 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.382e-06/0.6978, allocations: 0 / 0.5549 GB, free: 14.55 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.6978, allocations: 0 / 0.5549 GB, free: 14.55 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003085/0.6981, allocations: 165 kB / 0.555 GB, free: 14.48 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.645e-05/0.6982, allocations: 87.86 kB / 0.5551 GB, free: 14.38 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.861e-05/0.6982, allocations: 4.531 kB / 0.5551 GB, free: 14.38 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.99e-05/0.6982, allocations: 4.062 kB / 0.5551 GB, free: 14.38 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.11e-05/0.6983, allocations: 9.469 kB / 0.5551 GB, free: 14.38 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.909e-06/0.6983, allocations: 2.281 kB / 0.5551 GB, free: 14.38 MB / 478.1 MB Notification: Performance of sorting global known variables: time 7.382e-05/0.6984, allocations: 113.6 kB / 0.5552 GB, free: 14.3 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6984, allocations: 0 / 0.5552 GB, free: 14.3 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0005241/0.6989, allocations: 165.4 kB / 0.5554 GB, free: 14.27 MB / 478.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001592/0.7005, allocations: 1.03 MB / 0.5564 GB, free: 13.59 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0001991/0.7007, allocations: 62.62 kB / 0.5565 GB, free: 13.59 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.7007, allocations: 0 / 0.5565 GB, free: 13.59 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 6.83e-05/0.7008, allocations: 35.97 kB / 0.5565 GB, free: 13.59 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002474/0.701, allocations: 32.36 kB / 0.5565 GB, free: 13.59 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001982/0.703, allocations: 1.731 MB / 0.5582 GB, free: 12.3 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003114/0.7034, allocations: 0.6873 MB / 0.5589 GB, free: 11.6 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 7.523e-05/0.7035, allocations: 32.92 kB / 0.5589 GB, free: 11.58 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.011e-05/0.7035, allocations: 22.22 kB / 0.5589 GB, free: 11.57 MB / 478.1 MB Notification: Performance of SimCode: time 4.01e-07/0.7035, allocations: 0 / 0.5589 GB, free: 11.57 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02871/0.7322, allocations: 6.309 MB / 0.5651 GB, free: 10.73 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.183/8.915, allocations: 16 kB / 0.5651 GB, free: 10.72 MB / 478.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Modelica_4_1_0-beta_om_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sh_TX.fmu > Modelica_4.1.0-beta.om_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe 2>&1)