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.001224/0.001225, allocations: 112.7 kB / 17.07 MB, free: 5.984 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.001191/0.001191, allocations: 193.4 kB / 18 MB, free: 5.074 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.408/1.408, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001499/0.001499, allocations: 43.92 kB / 350.8 MB, free: 3.777 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2329/0.2345, allocations: 49.44 MB / 400.2 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX): time 0.002391/0.2369, allocations: 1.38 MB / 401.6 MB, free: 7.316 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.1745/0.4114, allocations: 149.1 MB / 0.5378 GB, free: 1.797 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.294e-05/0.4115, allocations: 4 kB / 0.5378 GB, free: 1.793 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 3.72e-05/0.4116, allocations: 3.984 kB / 0.5378 GB, free: 1.789 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001171/0.4128, allocations: 378.4 kB / 0.5381 GB, free: 1.418 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00121/0.414, allocations: 0.5052 MB / 0.5386 GB, free: 0.9141 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001228/0.4141, allocations: 67.7 kB / 0.5387 GB, free: 0.8477 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.771e-05/0.4142, allocations: 4 kB / 0.5387 GB, free: 0.8438 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.382e-05/0.4143, allocations: 35.84 kB / 0.5387 GB, free: 0.8086 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.393e-05/0.4144, allocations: 35.84 kB / 0.5388 GB, free: 0.7734 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 1.293e-05/0.4144, allocations: 0 / 0.5388 GB, free: 0.7734 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2168/0.6312, allocations: 1.067 MB / 0.5398 GB, free: 2.355 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 6.514e-05/0.6313, allocations: 12.27 kB / 0.5398 GB, free: 2.355 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 6.965e-05/0.6313, allocations: 31.73 kB / 0.5398 GB, free: 2.355 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001705/0.6331, allocations: 0.6933 MB / 0.5405 GB, free: 2.328 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.6331, allocations: 4.5 kB / 0.5405 GB, free: 2.328 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.6331, allocations: 0.5312 kB / 0.5405 GB, free: 2.328 MB / 462.1 MB Notification: Performance of Transformations before backend: time 6.132e-06/0.6331, allocations: 1.062 kB / 0.5405 GB, free: 2.328 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.000866/0.634, allocations: 464.3 kB / 0.541 GB, free: 17.91 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.441e-05/0.634, allocations: 10.75 kB / 0.541 GB, free: 17.91 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.996e-05/0.6341, allocations: 31.81 kB / 0.541 GB, free: 17.87 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004738/0.6345, allocations: 73.09 kB / 0.5411 GB, free: 17.86 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001843/0.6347, allocations: 198.3 kB / 0.5413 GB, free: 17.66 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.719e-05/0.6348, allocations: 6.312 kB / 0.5413 GB, free: 17.66 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.245e-05/0.6348, allocations: 5.844 kB / 0.5413 GB, free: 17.66 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001702/0.635, allocations: 75.09 kB / 0.5413 GB, free: 17.61 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.185e-06/0.635, allocations: 1.5 kB / 0.5413 GB, free: 17.61 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.856e-06/0.635, allocations: 0.5938 kB / 0.5413 GB, free: 17.61 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.663e-06/0.635, allocations: 2.094 kB / 0.5413 GB, free: 17.61 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000114/0.6351, allocations: 43.78 kB / 0.5414 GB, free: 17.61 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002088/0.6353, allocations: 194.1 kB / 0.5416 GB, free: 17.41 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003189/0.6357, allocations: 119 kB / 0.5417 GB, free: 17.36 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.987e-05/0.6358, allocations: 36.75 kB / 0.5417 GB, free: 17.35 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005455/0.6363, allocations: 135.3 kB / 0.5419 GB, free: 17.25 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.83e-05/0.6364, allocations: 37.38 kB / 0.5419 GB, free: 17.21 MB / 478.1 MB Notification: Performance of pre-optimization done (n=6): time 1.433e-06/0.6364, allocations: 0.5312 kB / 0.5419 GB, free: 17.21 MB / 478.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003919/0.6368, allocations: 118.4 kB / 0.542 GB, free: 17.18 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.638e-05/0.6368, allocations: 82.89 kB / 0.5421 GB, free: 17.09 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001362/0.637, allocations: 143.9 kB / 0.5422 GB, free: 16.99 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 1.931e-05/0.637, allocations: 27.14 kB / 0.5422 GB, free: 16.96 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.241e-05/0.6371, allocations: 85.77 kB / 0.5423 GB, free: 16.88 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.065e-05/0.6371, allocations: 25.53 kB / 0.5423 GB, free: 16.86 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.583e-05/0.6371, allocations: 19.03 kB / 0.5424 GB, free: 16.84 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001372/0.6373, allocations: 319.5 kB / 0.5427 GB, free: 16.53 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.766e-05/0.6374, allocations: 24 kB / 0.5427 GB, free: 16.53 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.158e-05/0.6375, allocations: 53.44 kB / 0.5427 GB, free: 16.5 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001502/0.6376, allocations: 82.33 kB / 0.5428 GB, free: 16.47 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.6376, allocations: 7.656 kB / 0.5428 GB, free: 16.46 MB / 478.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002611/0.6379, allocations: 109.2 kB / 0.5429 GB, free: 16.43 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.544e-05/0.6379, allocations: 6.594 kB / 0.5429 GB, free: 16.43 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.152e-06/0.6379, allocations: 4.5 kB / 0.5429 GB, free: 16.43 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.371e-05/0.6379, allocations: 2.969 kB / 0.5429 GB, free: 16.43 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.38e-05/0.638, allocations: 18.67 kB / 0.543 GB, free: 16.43 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.901e-06/0.638, allocations: 1.594 kB / 0.543 GB, free: 16.43 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.058e-05/0.6381, allocations: 3.062 kB / 0.543 GB, free: 16.43 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.606e-06/0.6381, allocations: 4.062 kB / 0.543 GB, free: 16.43 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 9.824e-05/0.6382, allocations: 123.5 kB / 0.5431 GB, free: 16.31 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.514e-05/0.6383, allocations: 8.359 kB / 0.5431 GB, free: 16.3 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002359/0.6385, allocations: 113.6 kB / 0.5432 GB, free: 16.27 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.336e-06/0.6385, allocations: 2.844 kB / 0.5432 GB, free: 16.27 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.6385, allocations: 4 kB / 0.5432 GB, free: 16.27 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/0.6385, allocations: 0 / 0.5432 GB, free: 16.27 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001418/0.6387, allocations: 187.9 kB / 0.5434 GB, free: 16.07 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.193e-06/0.6387, allocations: 2.531 kB / 0.5434 GB, free: 16.07 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.541e-05/0.6388, allocations: 15.67 kB / 0.5434 GB, free: 16.07 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.835e-06/0.6388, allocations: 1.672 kB / 0.5434 GB, free: 16.07 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.228e-06/0.6388, allocations: 3.719 kB / 0.5434 GB, free: 16.07 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.362e-06/0.6388, allocations: 0 / 0.5434 GB, free: 16.07 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.6388, allocations: 0.8125 kB / 0.5434 GB, free: 16.07 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002992/0.6391, allocations: 168.5 kB / 0.5436 GB, free: 16 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.484e-05/0.6392, allocations: 89.33 kB / 0.5437 GB, free: 15.9 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.865e-05/0.6392, allocations: 3.938 kB / 0.5437 GB, free: 15.9 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.325e-05/0.6393, allocations: 0 / 0.5437 GB, free: 15.9 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.995e-05/0.6393, allocations: 11.03 kB / 0.5437 GB, free: 15.9 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.21e-06/0.6393, allocations: 2.594 kB / 0.5437 GB, free: 15.9 MB / 478.1 MB Notification: Performance of sorting global known variables: time 7.804e-05/0.6394, allocations: 119.4 kB / 0.5438 GB, free: 15.82 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.6394, allocations: 0 / 0.5438 GB, free: 15.82 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0006189/0.6401, allocations: 162.1 kB / 0.5439 GB, free: 15.79 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.001499/0.6416, allocations: 1.031 MB / 0.545 GB, free: 15.13 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0002007/0.6418, allocations: 62.47 kB / 0.545 GB, free: 15.13 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.6418, allocations: 0.9062 kB / 0.545 GB, free: 15.13 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 7.16e-05/0.6419, allocations: 36.39 kB / 0.5451 GB, free: 15.13 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002468/0.6421, allocations: 29.3 kB / 0.5451 GB, free: 15.13 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001899/0.644, allocations: 1.739 MB / 0.5468 GB, free: 13.91 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003272/0.6444, allocations: 0.6889 MB / 0.5475 GB, free: 13.21 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 5.891e-05/0.6444, allocations: 16.55 kB / 0.5475 GB, free: 13.21 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.521e-05/0.6445, allocations: 20.17 kB / 0.5475 GB, free: 13.2 MB / 478.1 MB Notification: Performance of SimCode: time 4.81e-07/0.6445, allocations: 3.562 kB / 0.5475 GB, free: 13.2 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02918/0.6737, allocations: 6.28 MB / 0.5536 GB, free: 12.59 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.145/8.818, allocations: 8.406 kB / 0.5536 GB, free: 12.59 MB / 478.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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_0_0_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sh_TX.fmu > Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/SolveOneNonlinearEquation/Inverse_sh_TX/Inverse_sh_TX.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches