Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T.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_T,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|h1|s1",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T") translateModel(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|h1|s1",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001246/0.001246, allocations: 93.33 kB / 17.31 MB, free: 6.535 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.001337/0.001337, allocations: 178.4 kB / 18.21 MB, free: 5.68 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.314/1.314, allocations: 223.3 MB / 242.3 MB, free: 192 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002646/0.0002647, allocations: 8 kB / 302.1 MB, free: 6.129 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09839/0.09867, allocations: 50.41 MB / 352.5 MB, free: 3.707 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T): time 0.001449/0.1002, allocations: 1.083 MB / 353.6 MB, free: 2.613 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.328/0.4282, allocations: 144.9 MB / 498.5 MB, free: 3.711 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.73e-05/0.4283, allocations: 0 / 498.5 MB, free: 3.711 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 4.142e-05/0.4284, allocations: 10.17 kB / 498.5 MB, free: 3.703 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009769/0.4294, allocations: 207.1 kB / 498.7 MB, free: 3.508 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001074/0.4305, allocations: 331.1 kB / 499 MB, free: 3.188 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001068/0.4306, allocations: 59.67 kB / 499.1 MB, free: 3.129 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.283e-05/0.4306, allocations: 4 kB / 499.1 MB, free: 3.125 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.078e-05/0.4307, allocations: 27.84 kB / 499.1 MB, free: 3.098 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.078e-05/0.4308, allocations: 27.91 kB / 499.1 MB, free: 3.07 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.29e-05/0.4308, allocations: 0 / 499.1 MB, free: 3.07 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001151/0.432, allocations: 0.6199 MB / 499.7 MB, free: 2.449 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.823e-05/0.432, allocations: 11.98 kB / 499.8 MB, free: 2.438 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 4.786e-05/0.432, allocations: 41.58 kB / 499.8 MB, free: 2.391 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006295/0.4327, allocations: 356.7 kB / 0.4884 GB, free: 2.043 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.4327, allocations: 0 / 0.4884 GB, free: 2.043 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.4327, allocations: 0 / 0.4884 GB, free: 2.043 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.829e-06/0.4327, allocations: 0 / 0.4884 GB, free: 2.043 MB / 398.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.0005941/0.4333, allocations: 415.9 kB / 0.4888 GB, free: 1.59 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.39e-05/0.4334, allocations: 12.03 kB / 0.4888 GB, free: 1.578 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001081/0.4345, allocations: 97.7 kB / 0.4889 GB, free: 1.484 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002995/0.4348, allocations: 220.8 kB / 0.4891 GB, free: 1.23 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.984e-05/0.4348, allocations: 3.984 kB / 0.4891 GB, free: 1.227 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.365e-05/0.4348, allocations: 7.906 kB / 0.4891 GB, free: 1.219 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002275/0.4351, allocations: 99.27 kB / 0.4892 GB, free: 1.109 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.845e-06/0.4351, allocations: 0 / 0.4892 GB, free: 1.109 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.606e-05/0.4351, allocations: 0 / 0.4892 GB, free: 1.109 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.113e-06/0.4351, allocations: 3.938 kB / 0.4892 GB, free: 1.105 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001664/0.4353, allocations: 43.95 kB / 0.4893 GB, free: 1.062 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002797/0.4356, allocations: 211.7 kB / 0.4895 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004802/0.4361, allocations: 129 kB / 0.4896 GB, free: 0.6562 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001126/0.4362, allocations: 33.75 kB / 0.4896 GB, free: 0.6172 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000704/0.4369, allocations: 0.9862 MB / 0.4906 GB, free: 15.41 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.535e-05/0.4369, allocations: 34.56 kB / 0.4906 GB, free: 15.37 MB / 414.1 MB Notification: Performance of pre-optimization done (n=6): time 1.243e-06/0.4369, allocations: 4 kB / 0.4906 GB, free: 15.36 MB / 414.1 MB Notification: Performance of matching and sorting (n=6): time 0.0004884/0.4374, allocations: 129.9 kB / 0.4908 GB, free: 15.23 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.459e-05/0.4375, allocations: 81.11 kB / 0.4908 GB, free: 15.13 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002179/0.4377, allocations: 157.8 kB / 0.491 GB, free: 14.97 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.471e-05/0.4378, allocations: 29.7 kB / 0.491 GB, free: 14.93 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.711e-05/0.4378, allocations: 84.08 kB / 0.4911 GB, free: 14.85 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.011e-05/0.4379, allocations: 19.72 kB / 0.4911 GB, free: 14.83 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.998e-05/0.4379, allocations: 17.72 kB / 0.4911 GB, free: 14.8 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001136/0.438, allocations: 322.8 kB / 0.4914 GB, free: 14.48 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001016/0.4381, allocations: 27.97 kB / 0.4915 GB, free: 14.45 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001061/0.4382, allocations: 47.41 kB / 0.4915 GB, free: 14.39 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002213/0.4385, allocations: 91.33 kB / 0.4916 GB, free: 14.29 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.4385, allocations: 0 / 0.4916 GB, free: 14.29 MB / 414.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0003123/0.4388, allocations: 121.5 kB / 0.4917 GB, free: 14.17 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.842e-05/0.4388, allocations: 8 kB / 0.4917 GB, free: 14.16 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.849e-06/0.4388, allocations: 0 / 0.4917 GB, free: 14.16 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.087e-05/0.4389, allocations: 0 / 0.4917 GB, free: 14.16 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001291/0.439, allocations: 28.03 kB / 0.4918 GB, free: 14.13 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.791e-06/0.439, allocations: 3.938 kB / 0.4918 GB, free: 14.13 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001732/0.4392, allocations: 13.25 kB / 0.4918 GB, free: 14.12 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.383e-05/0.4392, allocations: 7.984 kB / 0.4918 GB, free: 14.11 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 8.029e-05/0.4393, allocations: 117.8 kB / 0.4919 GB, free: 13.98 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.286e-05/0.4393, allocations: 7.906 kB / 0.4919 GB, free: 13.98 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005493/0.4399, allocations: 239.2 kB / 0.4921 GB, free: 13.74 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.38e-06/0.4399, allocations: 0 / 0.4921 GB, free: 13.74 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.4399, allocations: 0 / 0.4921 GB, free: 13.74 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.4399, allocations: 4 kB / 0.4921 GB, free: 13.74 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001897/0.4401, allocations: 211 kB / 0.4923 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.482e-06/0.4401, allocations: 4.875 kB / 0.4923 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001732/0.4403, allocations: 31.91 kB / 0.4924 GB, free: 13.45 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.106e-06/0.4403, allocations: 0 / 0.4924 GB, free: 13.45 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.548e-05/0.4404, allocations: 0 / 0.4924 GB, free: 13.45 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.278e-06/0.4404, allocations: 7.938 kB / 0.4924 GB, free: 13.44 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.4404, allocations: 0 / 0.4924 GB, free: 13.44 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004025/0.4408, allocations: 185.7 kB / 0.4926 GB, free: 13.24 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.033e-05/0.4409, allocations: 109 kB / 0.4927 GB, free: 13.11 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.443e-05/0.4409, allocations: 0 / 0.4927 GB, free: 13.11 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001684/0.4411, allocations: 8 kB / 0.4927 GB, free: 13.11 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.018e-05/0.4411, allocations: 7.984 kB / 0.4927 GB, free: 13.1 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.301e-05/0.4412, allocations: 8 kB / 0.4927 GB, free: 13.09 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001549/0.4413, allocations: 127.2 kB / 0.4928 GB, free: 12.96 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4413, allocations: 0 / 0.4928 GB, free: 12.96 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000524/0.4419, allocations: 131.9 kB / 0.4929 GB, free: 12.84 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 (8): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0007896/0.4427, allocations: 315.1 kB / 0.4932 GB, free: 12.52 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002815/0.4429, allocations: 79.81 kB / 0.4933 GB, free: 12.45 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.443, allocations: 0 / 0.4933 GB, free: 12.45 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001237/0.4431, allocations: 43.91 kB / 0.4933 GB, free: 12.4 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000238/0.4433, allocations: 12.12 kB / 0.4934 GB, free: 12.39 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006227/0.444, allocations: 389.4 kB / 0.4937 GB, free: 11.97 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002459/0.4442, allocations: 0.6887 MB / 0.4944 GB, free: 11.26 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00014/0.4444, allocations: 39.39 kB / 0.4944 GB, free: 11.22 MB / 414.1 MB Notification: Performance of SimCode: time 5.41e-07/0.4444, allocations: 0 / 0.4944 GB, free: 11.22 MB / 414.1 MB Notification: Performance of Templates: time 0.006865/0.4512, allocations: 4.129 MB / 0.4985 GB, free: 7.094 MB / 414.1 MB make -j1 -f Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T.makefile (rm -f Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T.sim & ./Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/SolveOneNonlinearEquation/Inverse_sh_T/Inverse_sh_T.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches