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: translateModel(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|h1|s1",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX") translateModel(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|h1|s1",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001438/0.001438, allocations: 108.3 kB / 17.68 MB, free: 5.332 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.001672/0.001672, allocations: 192 kB / 18.62 MB, free: 4.41 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.351/1.351, allocations: 222.9 MB / 242.3 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001021/0.001021, allocations: 57.11 kB / 302.1 MB, free: 5.18 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08316/0.0842, allocations: 49.44 MB / 351.5 MB, free: 3.715 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX): time 0.002444/0.08668, allocations: 1.372 MB / 352.9 MB, free: 2.328 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.315/0.4017, allocations: 149.1 MB / 0.4901 GB, free: 13.9 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.973e-05/0.4017, allocations: 0 / 0.4901 GB, free: 13.9 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 4.214e-05/0.4018, allocations: 7.922 kB / 0.4902 GB, free: 13.89 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001148/0.403, allocations: 378.2 kB / 0.4905 GB, free: 13.54 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001176/0.4042, allocations: 0.5061 MB / 0.491 GB, free: 13.04 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001099/0.4043, allocations: 63.72 kB / 0.4911 GB, free: 12.97 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.521e-05/0.4043, allocations: 4 kB / 0.4911 GB, free: 12.97 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.728e-05/0.4044, allocations: 43.83 kB / 0.4911 GB, free: 12.93 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.594e-05/0.4045, allocations: 35.84 kB / 0.4912 GB, free: 12.89 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 1.304e-05/0.4045, allocations: 4 kB / 0.4912 GB, free: 12.89 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001787/0.4063, allocations: 1.072 MB / 0.4922 GB, free: 11.81 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 3.837e-05/0.4064, allocations: 11.98 kB / 0.4922 GB, free: 11.8 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 4.475e-05/0.4064, allocations: 27.81 kB / 0.4922 GB, free: 11.77 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001145/0.4076, allocations: 0.6912 MB / 0.4929 GB, free: 11.08 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.4076, allocations: 0 / 0.4929 GB, free: 11.08 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.4076, allocations: 3.938 kB / 0.4929 GB, free: 11.08 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.4e-06/0.4076, allocations: 4 kB / 0.4929 GB, free: 11.07 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.0006103/0.4082, allocations: 455.7 kB / 0.4934 GB, free: 10.58 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.294e-05/0.4083, allocations: 8.031 kB / 0.4934 GB, free: 10.57 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004693/0.4088, allocations: 72.22 kB / 0.4934 GB, free: 10.51 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001645/0.4089, allocations: 196.4 kB / 0.4936 GB, free: 10.28 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.261e-05/0.4089, allocations: 3.938 kB / 0.4936 GB, free: 10.27 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.442e-05/0.409, allocations: 4 kB / 0.4936 GB, free: 10.27 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001544/0.4092, allocations: 79.31 kB / 0.4937 GB, free: 10.18 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.214e-06/0.4092, allocations: 0 / 0.4937 GB, free: 10.18 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.009e-05/0.4092, allocations: 4 kB / 0.4937 GB, free: 10.18 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.072e-06/0.4092, allocations: 4 kB / 0.4937 GB, free: 10.17 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001016/0.4093, allocations: 35.97 kB / 0.4937 GB, free: 10.14 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001967/0.4095, allocations: 190.5 kB / 0.4939 GB, free: 9.898 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002867/0.4098, allocations: 129 kB / 0.4941 GB, free: 9.754 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.618e-05/0.4099, allocations: 33.77 kB / 0.4941 GB, free: 9.715 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005184/0.4104, allocations: 137 kB / 0.4942 GB, free: 9.562 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.51e-05/0.4105, allocations: 42.56 kB / 0.4943 GB, free: 9.512 MB / 414.1 MB Notification: Performance of pre-optimization done (n=6): time 1.362e-06/0.4105, allocations: 0 / 0.4943 GB, free: 9.512 MB / 414.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003489/0.4108, allocations: 117.5 kB / 0.4944 GB, free: 9.391 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.387e-05/0.4109, allocations: 85.05 kB / 0.4944 GB, free: 9.289 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001153/0.411, allocations: 143.2 kB / 0.4946 GB, free: 9.141 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.415e-05/0.411, allocations: 25.7 kB / 0.4946 GB, free: 9.109 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.864e-05/0.4111, allocations: 88.14 kB / 0.4947 GB, free: 9.02 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.53e-05/0.4111, allocations: 19.7 kB / 0.4947 GB, free: 9 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.742e-05/0.4111, allocations: 21.72 kB / 0.4947 GB, free: 8.973 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.42e-05/0.4112, allocations: 318.8 kB / 0.495 GB, free: 8.652 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.894e-05/0.4113, allocations: 27.98 kB / 0.4951 GB, free: 8.625 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.545e-05/0.4114, allocations: 47.42 kB / 0.4951 GB, free: 8.566 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001467/0.4116, allocations: 83.34 kB / 0.4952 GB, free: 8.473 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.586e-06/0.4116, allocations: 3.938 kB / 0.4952 GB, free: 8.469 MB / 414.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002475/0.4118, allocations: 113.5 kB / 0.4953 GB, free: 8.352 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.414e-05/0.4118, allocations: 4 kB / 0.4953 GB, free: 8.348 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.4119, allocations: 0 / 0.4953 GB, free: 8.348 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.621e-05/0.4119, allocations: 4 kB / 0.4953 GB, free: 8.344 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.961e-05/0.4119, allocations: 19.88 kB / 0.4953 GB, free: 8.324 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.56e-06/0.412, allocations: 0 / 0.4953 GB, free: 8.324 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.456e-05/0.412, allocations: 11.92 kB / 0.4953 GB, free: 8.312 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.095e-06/0.412, allocations: 4 kB / 0.4953 GB, free: 8.309 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.792e-05/0.4121, allocations: 121.7 kB / 0.4955 GB, free: 8.18 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.752e-05/0.4122, allocations: 11.97 kB / 0.4955 GB, free: 8.168 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002464/0.4124, allocations: 111.6 kB / 0.4956 GB, free: 8.055 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.4124, allocations: 96 / 0.4956 GB, free: 8.055 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.096e-06/0.4125, allocations: 11.97 kB / 0.4956 GB, free: 8.043 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.4125, allocations: 0.875 kB / 0.4956 GB, free: 8.043 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000137/0.4126, allocations: 181.6 kB / 0.4958 GB, free: 7.816 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.4126, allocations: 0 / 0.4958 GB, free: 7.816 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.467e-05/0.4127, allocations: 15.98 kB / 0.4958 GB, free: 7.801 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/0.4127, allocations: 0 / 0.4958 GB, free: 7.801 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.866e-06/0.4127, allocations: 4 kB / 0.4958 GB, free: 7.797 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.294e-06/0.4127, allocations: 1.125 kB / 0.4958 GB, free: 7.797 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.4128, allocations: 7.938 kB / 0.4958 GB, free: 7.789 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003328/0.4131, allocations: 157.8 kB / 0.4959 GB, free: 7.613 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.99e-05/0.4132, allocations: 89.03 kB / 0.496 GB, free: 7.508 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.099e-05/0.4132, allocations: 4 kB / 0.496 GB, free: 7.504 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.8e-05/0.4132, allocations: 9 kB / 0.496 GB, free: 7.496 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.748e-05/0.4133, allocations: 7.984 kB / 0.496 GB, free: 7.488 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.89e-06/0.4133, allocations: 0 / 0.496 GB, free: 7.488 MB / 414.1 MB Notification: Performance of sorting global known variables: time 7.303e-05/0.4134, allocations: 116.2 kB / 0.4962 GB, free: 7.375 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4134, allocations: 0 / 0.4962 GB, free: 7.375 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000523/0.4139, allocations: 159.9 kB / 0.4963 GB, free: 7.219 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.0009761/0.4149, allocations: 436.1 kB / 0.4967 GB, free: 6.793 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001956/0.4151, allocations: 67.95 kB / 0.4968 GB, free: 6.727 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.4151, allocations: 3.938 kB / 0.4968 GB, free: 6.723 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 7.378e-05/0.4152, allocations: 23.98 kB / 0.4968 GB, free: 6.699 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002962/0.4155, allocations: 35.91 kB / 0.4968 GB, free: 6.664 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005275/0.416, allocations: 301.2 kB / 0.4971 GB, free: 6.34 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002192/0.4163, allocations: 0.6889 MB / 0.4978 GB, free: 5.625 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.347e-05/0.4163, allocations: 15.94 kB / 0.4978 GB, free: 5.609 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.367e-05/0.4164, allocations: 19.42 kB / 0.4978 GB, free: 5.59 MB / 414.1 MB Notification: Performance of SimCode: time 2.91e-07/0.4164, allocations: 0 / 0.4978 GB, free: 5.59 MB / 414.1 MB Notification: Performance of Templates: time 0.00864/0.425, allocations: 4.718 MB / 0.5024 GB, free: 0.8867 MB / 414.1 MB make -j1 -f Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.makefile (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 & ./Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > 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.mat","/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