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.001545/0.001545, allocations: 108.7 kB / 16.92 MB, free: 6.145 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.001745/0.001745, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.292/1.292, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009566/0.0009567, allocations: 46.42 kB / 300.7 MB, free: 5.789 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07896/0.07993, allocations: 49.45 MB / 350.2 MB, free: 4.332 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX): time 0.002456/0.08242, allocations: 1.37 MB / 351.5 MB, free: 2.945 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.2785/0.361, allocations: 149.1 MB / 0.4889 GB, free: 14.32 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.66e-05/0.361, allocations: 0 / 0.4889 GB, free: 14.32 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 2.275e-05/0.3611, allocations: 3.938 kB / 0.4889 GB, free: 14.32 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009556/0.3621, allocations: 375.2 kB / 0.4892 GB, free: 13.96 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00104/0.3631, allocations: 0.5065 MB / 0.4897 GB, free: 13.46 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 8.366e-05/0.3632, allocations: 71.66 kB / 0.4898 GB, free: 13.39 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.276e-05/0.3632, allocations: 11.92 kB / 0.4898 GB, free: 13.38 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.508e-05/0.3633, allocations: 35.84 kB / 0.4898 GB, free: 13.34 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.973e-05/0.3633, allocations: 31.91 kB / 0.4899 GB, free: 13.31 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 1.28e-05/0.3634, allocations: 4 kB / 0.4899 GB, free: 13.3 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001611/0.365, allocations: 1.052 MB / 0.4909 GB, free: 12.25 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 2.659e-05/0.365, allocations: 15.98 kB / 0.4909 GB, free: 12.23 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 3.177e-05/0.3651, allocations: 31.75 kB / 0.4909 GB, free: 12.2 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009744/0.366, allocations: 0.6977 MB / 0.4916 GB, free: 11.5 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.523e-06/0.3661, allocations: 0 / 0.4916 GB, free: 11.5 MB / 414.1 MB Notification: Performance of FrontEnd: time 7.71e-07/0.3661, allocations: 0 / 0.4916 GB, free: 11.5 MB / 414.1 MB Notification: Performance of Transformations before backend: time 2.876e-06/0.3661, allocations: 0 / 0.4916 GB, free: 11.5 MB / 414.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.0004567/0.3665, allocations: 455.9 kB / 0.492 GB, free: 11.01 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.368e-05/0.3666, allocations: 8.031 kB / 0.4921 GB, free: 11 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.209e-05/0.3666, allocations: 30.75 kB / 0.4921 GB, free: 10.96 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000425/0.367, allocations: 76.69 kB / 0.4922 GB, free: 10.89 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001141/0.3672, allocations: 188.3 kB / 0.4923 GB, free: 10.67 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.929e-06/0.3672, allocations: 7.938 kB / 0.4923 GB, free: 10.66 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.589e-05/0.3672, allocations: 4 kB / 0.4923 GB, free: 10.66 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001183/0.3673, allocations: 75.33 kB / 0.4924 GB, free: 10.57 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.928e-06/0.3673, allocations: 4 kB / 0.4924 GB, free: 10.57 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.239e-06/0.3673, allocations: 0 / 0.4924 GB, free: 10.57 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.264e-06/0.3673, allocations: 0 / 0.4924 GB, free: 10.57 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.556e-05/0.3674, allocations: 43.97 kB / 0.4925 GB, free: 10.52 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001508/0.3676, allocations: 197.5 kB / 0.4927 GB, free: 10.28 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000252/0.3679, allocations: 117.1 kB / 0.4928 GB, free: 10.15 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.902e-05/0.3679, allocations: 37.75 kB / 0.4928 GB, free: 10.11 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004638/0.3684, allocations: 149 kB / 0.4929 GB, free: 9.941 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.521e-05/0.3684, allocations: 30.56 kB / 0.493 GB, free: 9.902 MB / 414.1 MB Notification: Performance of pre-optimization done (n=6): time 1.052e-06/0.3684, allocations: 0 / 0.493 GB, free: 9.902 MB / 414.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002896/0.3687, allocations: 117.5 kB / 0.4931 GB, free: 9.781 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.609e-05/0.3688, allocations: 85.05 kB / 0.4932 GB, free: 9.68 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.512e-05/0.3689, allocations: 141.8 kB / 0.4933 GB, free: 9.531 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.286e-05/0.3689, allocations: 33.7 kB / 0.4933 GB, free: 9.492 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.362e-05/0.3689, allocations: 84.14 kB / 0.4934 GB, free: 9.406 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.408e-05/0.369, allocations: 19.72 kB / 0.4934 GB, free: 9.387 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.419e-05/0.369, allocations: 25.7 kB / 0.4935 GB, free: 9.355 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 8.714e-05/0.3691, allocations: 318.8 kB / 0.4938 GB, free: 9.035 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.298e-05/0.3692, allocations: 27.91 kB / 0.4938 GB, free: 9.008 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.591e-05/0.3693, allocations: 51.42 kB / 0.4938 GB, free: 8.945 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001396/0.3694, allocations: 83.28 kB / 0.4939 GB, free: 8.852 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.3694, allocations: 0 / 0.4939 GB, free: 8.852 MB / 414.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002288/0.3697, allocations: 105.5 kB / 0.494 GB, free: 8.742 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.628e-06/0.3697, allocations: 8.062 kB / 0.494 GB, free: 8.734 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.138e-06/0.3697, allocations: 4 kB / 0.494 GB, free: 8.73 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.813e-06/0.3697, allocations: 0 / 0.494 GB, free: 8.73 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.367e-05/0.3698, allocations: 23.92 kB / 0.4941 GB, free: 8.707 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.07e-06/0.3698, allocations: 4 kB / 0.4941 GB, free: 8.703 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.238e-05/0.3698, allocations: 3.938 kB / 0.4941 GB, free: 8.699 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.843e-06/0.3698, allocations: 4 kB / 0.4941 GB, free: 8.695 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.229e-05/0.3699, allocations: 121.8 kB / 0.4942 GB, free: 8.566 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.91e-05/0.37, allocations: 7.906 kB / 0.4942 GB, free: 8.559 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002155/0.3702, allocations: 111.4 kB / 0.4943 GB, free: 8.445 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.3702, allocations: 0 / 0.4943 GB, free: 8.445 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.294e-06/0.3702, allocations: 0 / 0.4943 GB, free: 8.445 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.184e-06/0.3702, allocations: 0 / 0.4943 GB, free: 8.445 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001215/0.3703, allocations: 185.6 kB / 0.4945 GB, free: 8.215 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.3703, allocations: 4 kB / 0.4945 GB, free: 8.211 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.101e-05/0.3704, allocations: 8.047 kB / 0.4945 GB, free: 8.203 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.868e-06/0.3704, allocations: 3.984 kB / 0.4945 GB, free: 8.199 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.057e-06/0.3704, allocations: 8 kB / 0.4945 GB, free: 8.191 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.587e-06/0.3705, allocations: 9.172 kB / 0.4945 GB, free: 8.184 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.604e-06/0.3705, allocations: 3.938 kB / 0.4945 GB, free: 8.18 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002919/0.3708, allocations: 157.8 kB / 0.4947 GB, free: 8.004 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.935e-05/0.3708, allocations: 89 kB / 0.4947 GB, free: 7.898 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.546e-05/0.3708, allocations: 4.031 kB / 0.4947 GB, free: 7.895 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.976e-05/0.3709, allocations: 0 / 0.4947 GB, free: 7.895 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.036e-05/0.3709, allocations: 16.92 kB / 0.4948 GB, free: 7.879 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.19e-06/0.3709, allocations: 7.938 kB / 0.4948 GB, free: 7.871 MB / 414.1 MB Notification: Performance of sorting global known variables: time 7.004e-05/0.371, allocations: 108.2 kB / 0.4949 GB, free: 7.766 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.242e-06/0.371, allocations: 0 / 0.4949 GB, free: 7.766 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004593/0.3715, allocations: 167.8 kB / 0.495 GB, free: 7.602 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 (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.001323/0.3728, allocations: 1.024 MB / 0.496 GB, free: 6.551 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001621/0.373, allocations: 59.91 kB / 0.4961 GB, free: 6.492 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.373, allocations: 0 / 0.4961 GB, free: 6.492 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 7.166e-05/0.3731, allocations: 39.91 kB / 0.4961 GB, free: 6.453 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002124/0.3733, allocations: 28.11 kB / 0.4962 GB, free: 6.426 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001626/0.3749, allocations: 1.723 MB / 0.4978 GB, free: 4.598 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002048/0.3751, allocations: 0.6885 MB / 0.4985 GB, free: 3.883 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.155e-05/0.3752, allocations: 17.05 kB / 0.4985 GB, free: 3.867 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.789e-05/0.3752, allocations: 19.44 kB / 0.4985 GB, free: 3.848 MB / 414.1 MB Notification: Performance of SimCode: time 2.534e-06/0.3753, allocations: 0 / 0.4985 GB, free: 3.848 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.022/1.398, allocations: 6.183 MB / 0.5046 GB, free: 13.78 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.76/11.16, allocations: 0 / 0.5046 GB, free: 13.78 MB / 430.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