Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001679/0.001679, allocations: 124.4 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002041/0.002041, allocations: 199.3 kB / 20.74 MB, free: 2.32 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.481/1.481, allocations: 230.6 MB / 254.1 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX,fileNamePrefix="Modelica_4_1_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_1_0_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sh_TX",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001595/0.001595, allocations: 47.94 kB / 373 MB, free: 10.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09509/0.09668, allocations: 53.33 MB / 426.3 MB, free: 4.812 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX): time 0.002692/0.09937, allocations: 1.382 MB / 427.7 MB, free: 3.422 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.388/0.4874, allocations: 152.4 MB / 0.5665 GB, free: 6.766 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.528e-05/0.4875, allocations: 0 / 0.5665 GB, free: 6.766 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 4.651e-05/0.4875, allocations: 7.922 kB / 0.5665 GB, free: 6.758 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001273/0.4888, allocations: 386.4 kB / 0.5668 GB, free: 6.379 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001383/0.4902, allocations: 0.5065 MB / 0.5673 GB, free: 5.875 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001275/0.4903, allocations: 67.66 kB / 0.5674 GB, free: 5.809 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.865e-05/0.4903, allocations: 4 kB / 0.5674 GB, free: 5.805 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.616e-05/0.4904, allocations: 43.83 kB / 0.5674 GB, free: 5.762 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.61e-05/0.4905, allocations: 31.91 kB / 0.5675 GB, free: 5.73 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 1.169e-05/0.4905, allocations: 0 / 0.5675 GB, free: 5.73 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002142/0.4926, allocations: 1.138 MB / 0.5686 GB, free: 4.59 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 4.759e-05/0.4927, allocations: 15.92 kB / 0.5686 GB, free: 4.574 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 4.824e-05/0.4927, allocations: 31.8 kB / 0.5686 GB, free: 4.543 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00141/0.4942, allocations: 0.6902 MB / 0.5693 GB, free: 3.855 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.4942, allocations: 0 / 0.5693 GB, free: 3.855 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.4942, allocations: 0 / 0.5693 GB, free: 3.855 MB / 478.1 MB Notification: Performance of Transformations before backend: time 5.39e-06/0.4942, allocations: 4 kB / 0.5693 GB, free: 3.852 MB / 478.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.0007944/0.495, allocations: 466.2 kB / 0.5697 GB, free: 3.348 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.916e-05/0.495, allocations: 8.031 kB / 0.5698 GB, free: 3.34 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.717e-05/0.495, allocations: 34.73 kB / 0.5698 GB, free: 3.297 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00052/0.4956, allocations: 68.81 kB / 0.5699 GB, free: 3.23 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002068/0.4958, allocations: 200 kB / 0.57 GB, free: 2.996 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.677e-05/0.4958, allocations: 7.984 kB / 0.5701 GB, free: 2.988 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.964e-05/0.4958, allocations: 0.6875 kB / 0.5701 GB, free: 2.988 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001942/0.496, allocations: 87.27 kB / 0.5701 GB, free: 2.891 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.737e-06/0.496, allocations: 0 / 0.5701 GB, free: 2.891 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.556e-06/0.496, allocations: 0 / 0.5701 GB, free: 2.891 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.368e-06/0.496, allocations: 0 / 0.5701 GB, free: 2.891 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001148/0.4961, allocations: 47.28 kB / 0.5702 GB, free: 2.848 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002555/0.4964, allocations: 194.5 kB / 0.5704 GB, free: 2.605 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003399/0.4967, allocations: 117.1 kB / 0.5705 GB, free: 2.473 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000108/0.4968, allocations: 33.7 kB / 0.5705 GB, free: 2.434 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000518/0.4974, allocations: 137 kB / 0.5706 GB, free: 2.281 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.071e-05/0.4974, allocations: 38.55 kB / 0.5707 GB, free: 2.234 MB / 478.1 MB Notification: Performance of pre-optimization done (n=6): time 1.203e-06/0.4974, allocations: 0 / 0.5707 GB, free: 2.234 MB / 478.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003947/0.4978, allocations: 117.5 kB / 0.5708 GB, free: 2.113 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.386e-05/0.4978, allocations: 85.05 kB / 0.5709 GB, free: 2.012 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001501/0.498, allocations: 142.8 kB / 0.571 GB, free: 1.863 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 1.748e-05/0.498, allocations: 25.7 kB / 0.571 GB, free: 1.832 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.204e-05/0.4981, allocations: 92.12 kB / 0.5711 GB, free: 1.738 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.133e-05/0.4981, allocations: 19.8 kB / 0.5711 GB, free: 1.719 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.436e-05/0.4982, allocations: 21.72 kB / 0.5712 GB, free: 1.691 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001551/0.4983, allocations: 318.8 kB / 0.5715 GB, free: 1.371 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.067e-05/0.4984, allocations: 27.98 kB / 0.5715 GB, free: 1.344 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001036/0.4985, allocations: 55.41 kB / 0.5715 GB, free: 1.277 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001684/0.4987, allocations: 79.34 kB / 0.5716 GB, free: 1.188 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.4987, allocations: 0 / 0.5716 GB, free: 1.188 MB / 478.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002737/0.4989, allocations: 110 kB / 0.5717 GB, free: 1.074 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.465e-05/0.499, allocations: 4 kB / 0.5717 GB, free: 1.07 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.576e-06/0.499, allocations: 3.984 kB / 0.5717 GB, free: 1.066 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.605e-05/0.499, allocations: 4 kB / 0.5717 GB, free: 1.062 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.272e-05/0.4991, allocations: 19.92 kB / 0.5718 GB, free: 1.043 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.3e-06/0.4991, allocations: 0 / 0.5718 GB, free: 1.043 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.415e-05/0.4991, allocations: 11.95 kB / 0.5718 GB, free: 1.031 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.859e-06/0.4991, allocations: 4 kB / 0.5718 GB, free: 1.027 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.09e-05/0.4992, allocations: 117.8 kB / 0.5719 GB, free: 0.9023 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.161e-05/0.4993, allocations: 4 kB / 0.5719 GB, free: 0.8984 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002737/0.4996, allocations: 115.4 kB / 0.572 GB, free: 0.7773 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.4996, allocations: 0 / 0.572 GB, free: 0.7773 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.4996, allocations: 4 kB / 0.572 GB, free: 0.7734 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.4996, allocations: 0 / 0.572 GB, free: 0.7734 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001866/0.4998, allocations: 189.5 kB / 0.5722 GB, free: 0.5391 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.522e-06/0.4998, allocations: 0 / 0.5722 GB, free: 0.5391 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.068e-05/0.4998, allocations: 15.98 kB / 0.5722 GB, free: 0.5234 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.485e-06/0.4998, allocations: 11.88 kB / 0.5722 GB, free: 0.5117 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.899e-06/0.4999, allocations: 0 / 0.5722 GB, free: 0.5117 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.188e-06/0.4999, allocations: 4 kB / 0.5722 GB, free: 0.5078 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.849e-06/0.4999, allocations: 5.359 kB / 0.5722 GB, free: 0.5039 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003618/0.5002, allocations: 157.8 kB / 0.5724 GB, free: 336 kB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.686e-05/0.5003, allocations: 89.12 kB / 0.5725 GB, free: 228 kB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.99e-05/0.5003, allocations: 4.047 kB / 0.5725 GB, free: 224 kB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.556e-05/0.5004, allocations: 8.875 kB / 0.5725 GB, free: 216 kB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.542e-05/0.5004, allocations: 4 kB / 0.5725 GB, free: 212 kB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.224e-06/0.5004, allocations: 4 kB / 0.5725 GB, free: 208 kB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0001198/0.5005, allocations: 119.6 kB / 0.5726 GB, free: 88 kB / 478.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5005, allocations: 0 / 0.5726 GB, free: 88 kB / 478.1 MB Notification: Performance of remove unused functions: time 0.0006399/0.5012, allocations: 163.5 kB / 0.5727 GB, free: 15.92 MB / 494.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.001679/0.5029, allocations: 1.019 MB / 0.5737 GB, free: 14.88 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002209/0.5031, allocations: 59.89 kB / 0.5738 GB, free: 14.82 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.552e-06/0.5031, allocations: 0 / 0.5738 GB, free: 14.82 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 8.41e-05/0.5032, allocations: 35.92 kB / 0.5738 GB, free: 14.79 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002604/0.5034, allocations: 27 kB / 0.5739 GB, free: 14.76 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002297/0.5057, allocations: 1.731 MB / 0.5755 GB, free: 12.93 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003181/0.506, allocations: 0.6846 MB / 0.5762 GB, free: 12.22 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 6.558e-05/0.5061, allocations: 24.3 kB / 0.5762 GB, free: 12.2 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.514e-05/0.5062, allocations: 23.44 kB / 0.5763 GB, free: 12.17 MB / 494.1 MB Notification: Performance of SimCode: time 6.01e-07/0.5062, allocations: 0 / 0.5763 GB, free: 12.17 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03428/0.5404, allocations: 6.282 MB / 0.5824 GB, free: 6.023 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.19/8.731, allocations: 10.42 kB / 0.5824 GB, free: 6.016 MB / 494.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe ; mkfifo Modelica_4.1.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe >> ../files/Modelica_4.1.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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.00019992 Modelica_4_1_0_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sh_TX.fmu > Modelica_4.1.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Media/Examples/SolveOneNonlinearEquation/Inverse_sh_TX/Inverse_sh_TX.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.349699195998255]