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.001125/0.001125, allocations: 113 kB / 17.07 MB, free: 6.016 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.001115/0.001115, allocations: 191 kB / 18 MB, free: 5.098 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.28/1.28, allocations: 222.9 MB / 241.7 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001028/0.001028, allocations: 51.92 kB / 350.8 MB, free: 3.785 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2262/0.2272, allocations: 49.44 MB / 400.2 MB, free: 8.43 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX): time 0.002446/0.2297, allocations: 1.371 MB / 401.6 MB, free: 7.34 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.1488/0.3785, allocations: 149.1 MB / 0.5378 GB, free: 1.812 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.799e-05/0.3786, allocations: 0 / 0.5378 GB, free: 1.812 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 4.781e-05/0.3787, allocations: 7.922 kB / 0.5378 GB, free: 1.805 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001377/0.3801, allocations: 386.4 kB / 0.5381 GB, free: 1.426 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001259/0.3814, allocations: 0.5038 MB / 0.5386 GB, free: 0.9258 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001284/0.3815, allocations: 71.64 kB / 0.5387 GB, free: 0.8555 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.129e-05/0.3816, allocations: 7.984 kB / 0.5387 GB, free: 0.8477 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.942e-05/0.3816, allocations: 35.84 kB / 0.5387 GB, free: 0.8125 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.373e-05/0.3817, allocations: 31.86 kB / 0.5388 GB, free: 0.7812 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 1.386e-05/0.3817, allocations: 0 / 0.5388 GB, free: 0.7812 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2223/0.6041, allocations: 1.072 MB / 0.5398 GB, free: 2.379 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 6.075e-05/0.6042, allocations: 10.97 kB / 0.5398 GB, free: 2.379 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 6.244e-05/0.6042, allocations: 32.47 kB / 0.5398 GB, free: 2.379 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001419/0.6057, allocations: 0.6924 MB / 0.5405 GB, free: 2.352 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.6057, allocations: 0.5312 kB / 0.5405 GB, free: 2.352 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.6057, allocations: 1.188 kB / 0.5405 GB, free: 2.352 MB / 462.1 MB Notification: Performance of Transformations before backend: time 4.739e-06/0.6057, allocations: 0.9062 kB / 0.5405 GB, free: 2.352 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.00066/0.6064, allocations: 464.5 kB / 0.541 GB, free: 17.93 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.146e-05/0.6064, allocations: 9.438 kB / 0.541 GB, free: 17.93 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.204e-05/0.6065, allocations: 36.09 kB / 0.541 GB, free: 17.89 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004705/0.6069, allocations: 72.5 kB / 0.5411 GB, free: 17.89 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001442/0.6071, allocations: 200.2 kB / 0.5413 GB, free: 17.68 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.381e-05/0.6071, allocations: 6.219 kB / 0.5413 GB, free: 17.68 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.736e-05/0.6071, allocations: 3.828 kB / 0.5413 GB, free: 17.68 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000154/0.6073, allocations: 78.77 kB / 0.5414 GB, free: 17.63 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.983e-06/0.6073, allocations: 0 / 0.5414 GB, free: 17.63 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.925e-06/0.6073, allocations: 0.5625 kB / 0.5414 GB, free: 17.63 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.138e-06/0.6073, allocations: 2.031 kB / 0.5414 GB, free: 17.63 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001111/0.6074, allocations: 41.27 kB / 0.5414 GB, free: 17.63 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001844/0.6076, allocations: 192.4 kB / 0.5416 GB, free: 17.44 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002892/0.6079, allocations: 117.7 kB / 0.5417 GB, free: 17.39 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.729e-05/0.608, allocations: 37.52 kB / 0.5417 GB, free: 17.37 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005385/0.6086, allocations: 138 kB / 0.5419 GB, free: 17.28 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.553e-05/0.6086, allocations: 32.72 kB / 0.5419 GB, free: 17.24 MB / 478.1 MB Notification: Performance of pre-optimization done (n=6): time 2.515e-06/0.6086, allocations: 2.516 kB / 0.5419 GB, free: 17.24 MB / 478.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003661/0.609, allocations: 122.3 kB / 0.542 GB, free: 17.2 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.324e-05/0.609, allocations: 78.17 kB / 0.5421 GB, free: 17.11 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001326/0.6092, allocations: 147.9 kB / 0.5422 GB, free: 17.01 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 1.411e-05/0.6092, allocations: 26.2 kB / 0.5423 GB, free: 16.98 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.529e-05/0.6092, allocations: 89.58 kB / 0.5423 GB, free: 16.89 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.962e-05/0.6093, allocations: 25.14 kB / 0.5424 GB, free: 16.88 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.576e-05/0.6093, allocations: 20 kB / 0.5424 GB, free: 16.86 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001067/0.6094, allocations: 322.7 kB / 0.5427 GB, free: 16.55 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.898e-05/0.6095, allocations: 27.36 kB / 0.5427 GB, free: 16.55 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.588e-05/0.6096, allocations: 49.84 kB / 0.5428 GB, free: 16.52 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001479/0.6098, allocations: 82.66 kB / 0.5428 GB, free: 16.49 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.6098, allocations: 5.281 kB / 0.5428 GB, free: 16.48 MB / 478.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002538/0.61, allocations: 112.1 kB / 0.543 GB, free: 16.45 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.174e-05/0.6101, allocations: 6.062 kB / 0.543 GB, free: 16.45 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.959e-06/0.6101, allocations: 3.344 kB / 0.543 GB, free: 16.45 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.225e-05/0.6101, allocations: 2.531 kB / 0.543 GB, free: 16.45 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.514e-05/0.6102, allocations: 14.88 kB / 0.543 GB, free: 16.45 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.929e-06/0.6102, allocations: 2.969 kB / 0.543 GB, free: 16.45 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.811e-05/0.6102, allocations: 3.406 kB / 0.543 GB, free: 16.45 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.294e-06/0.6102, allocations: 3.406 kB / 0.543 GB, free: 16.45 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.163e-05/0.6103, allocations: 120.5 kB / 0.5431 GB, free: 16.33 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.463e-05/0.6104, allocations: 10.48 kB / 0.5431 GB, free: 16.33 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002406/0.6106, allocations: 113.5 kB / 0.5432 GB, free: 16.29 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.6106, allocations: 5.75 kB / 0.5432 GB, free: 16.29 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.6106, allocations: 0 / 0.5432 GB, free: 16.29 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.6107, allocations: 2.094 kB / 0.5432 GB, free: 16.29 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001218/0.6108, allocations: 186.7 kB / 0.5434 GB, free: 16.09 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.6108, allocations: 0.8125 kB / 0.5434 GB, free: 16.09 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.768e-05/0.6109, allocations: 13.97 kB / 0.5434 GB, free: 16.09 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.6109, allocations: 0.875 kB / 0.5434 GB, free: 16.09 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.047e-06/0.6109, allocations: 6.578 kB / 0.5434 GB, free: 16.09 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.973e-06/0.6109, allocations: 4.219 kB / 0.5434 GB, free: 16.09 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.6109, allocations: 4.375 kB / 0.5434 GB, free: 16.09 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000294/0.6112, allocations: 163.5 kB / 0.5436 GB, free: 16.02 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.668e-05/0.6113, allocations: 90.45 kB / 0.5437 GB, free: 15.92 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.973e-05/0.6113, allocations: 7.438 kB / 0.5437 GB, free: 15.91 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.456e-05/0.6113, allocations: 3.75 kB / 0.5437 GB, free: 15.91 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.885e-05/0.6114, allocations: 3.875 kB / 0.5437 GB, free: 15.91 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.939e-06/0.6114, allocations: 4 kB / 0.5437 GB, free: 15.91 MB / 478.1 MB Notification: Performance of sorting global known variables: time 6.685e-05/0.6115, allocations: 113.5 kB / 0.5438 GB, free: 15.84 MB / 478.1 MB Notification: Performance of sort global known variables: time 5.81e-07/0.6115, allocations: 0.7188 kB / 0.5438 GB, free: 15.84 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0005535/0.612, allocations: 167.1 kB / 0.544 GB, free: 15.8 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.001386/0.6134, allocations: 1.029 MB / 0.545 GB, free: 15.16 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0001871/0.6136, allocations: 71.14 kB / 0.545 GB, free: 15.16 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.6136, allocations: 0 / 0.545 GB, free: 15.16 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 6.805e-05/0.6137, allocations: 28.48 kB / 0.5451 GB, free: 15.16 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002509/0.614, allocations: 20.7 kB / 0.5451 GB, free: 15.16 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001685/0.6157, allocations: 1.736 MB / 0.5468 GB, free: 13.94 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002366/0.6159, allocations: 0.6915 MB / 0.5475 GB, free: 13.24 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 5.505e-05/0.616, allocations: 19.58 kB / 0.5475 GB, free: 13.23 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.55e-05/0.616, allocations: 24.31 kB / 0.5475 GB, free: 13.23 MB / 478.1 MB Notification: Performance of SimCode: time 2.7e-07/0.616, allocations: 0 / 0.5475 GB, free: 13.23 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02211/0.6381, allocations: 6.286 MB / 0.5536 GB, free: 12.61 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.644/8.282, allocations: 11.12 kB / 0.5536 GB, free: 12.61 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