Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001274/0.001274, allocations: 115.9 kB / 18.41 MB, free: 4.688 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001364/0.001364, allocations: 203.5 kB / 19.36 MB, free: 3.746 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.319/1.319, allocations: 227.4 MB / 247.5 MB, free: 10.35 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001145/0.001145, allocations: 59 kB / 308.4 MB, free: 15.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0844/0.08556, allocations: 50.54 MB / 358.9 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX): time 0.002226/0.08782, allocations: 1.366 MB / 360.3 MB, free: 11.96 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.3012/0.3891, allocations: 151.9 MB / 0.5002 GB, free: 1.461 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.33e-05/0.3892, allocations: 0 / 0.5002 GB, free: 1.461 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 3.793e-05/0.3892, allocations: 7.922 kB / 0.5002 GB, free: 1.453 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001115/0.3904, allocations: 370.1 kB / 0.5006 GB, free: 1.102 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001215/0.3916, allocations: 0.5154 MB / 0.5011 GB, free: 0.5938 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001076/0.3917, allocations: 71.64 kB / 0.5011 GB, free: 0.5234 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.571e-05/0.3918, allocations: 7.984 kB / 0.5011 GB, free: 0.5156 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.479e-05/0.3918, allocations: 35.84 kB / 0.5012 GB, free: 492 kB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.997e-05/0.3919, allocations: 31.91 kB / 0.5012 GB, free: 460 kB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 1.26e-05/0.3919, allocations: 1.219 kB / 0.5012 GB, free: 460 kB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001699/0.3936, allocations: 1.079 MB / 0.5023 GB, free: 15.37 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 3.687e-05/0.3937, allocations: 23.84 kB / 0.5023 GB, free: 15.34 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 3.99e-05/0.3937, allocations: 31.86 kB / 0.5023 GB, free: 15.31 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009717/0.3947, allocations: 0.6951 MB / 0.503 GB, free: 14.62 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.3947, allocations: 0 / 0.503 GB, free: 14.62 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.3947, allocations: 0 / 0.503 GB, free: 14.62 MB / 430.1 MB Notification: Performance of Transformations before backend: time 4.819e-06/0.3948, allocations: 0 / 0.503 GB, free: 14.62 MB / 430.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.0005885/0.3953, allocations: 459.7 kB / 0.5034 GB, free: 14.12 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.279e-05/0.3954, allocations: 8.031 kB / 0.5034 GB, free: 14.11 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004495/0.3958, allocations: 76.73 kB / 0.5035 GB, free: 14.04 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001567/0.396, allocations: 188.5 kB / 0.5037 GB, free: 13.82 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.643e-05/0.396, allocations: 11.94 kB / 0.5037 GB, free: 13.8 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.078e-05/0.3961, allocations: 7.188 kB / 0.5037 GB, free: 13.8 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001505/0.3962, allocations: 75.31 kB / 0.5038 GB, free: 13.71 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.031e-06/0.3962, allocations: 0 / 0.5038 GB, free: 13.71 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.678e-06/0.3962, allocations: 4 kB / 0.5038 GB, free: 13.71 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.213e-06/0.3963, allocations: 0 / 0.5038 GB, free: 13.71 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.677e-05/0.3964, allocations: 39.97 kB / 0.5038 GB, free: 13.67 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002067/0.3966, allocations: 194.5 kB / 0.504 GB, free: 13.43 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002973/0.3969, allocations: 121 kB / 0.5041 GB, free: 13.29 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.393e-05/0.397, allocations: 29.77 kB / 0.5041 GB, free: 13.26 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00053/0.3975, allocations: 141 kB / 0.5043 GB, free: 13.1 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.35e-05/0.3975, allocations: 34.5 kB / 0.5043 GB, free: 13.06 MB / 430.1 MB Notification: Performance of pre-optimization done (n=6): time 1.363e-06/0.3976, allocations: 3.938 kB / 0.5043 GB, free: 13.05 MB / 430.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003614/0.3979, allocations: 125.8 kB / 0.5044 GB, free: 12.93 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.739e-05/0.398, allocations: 77.11 kB / 0.5045 GB, free: 12.83 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001301/0.3981, allocations: 142.8 kB / 0.5046 GB, free: 12.68 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.334e-05/0.3981, allocations: 25.7 kB / 0.5047 GB, free: 12.65 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.194e-05/0.3982, allocations: 92.12 kB / 0.5048 GB, free: 12.56 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.371e-05/0.3982, allocations: 23.7 kB / 0.5048 GB, free: 12.54 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.513e-05/0.3983, allocations: 17.72 kB / 0.5048 GB, free: 12.51 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001197/0.3984, allocations: 326.8 kB / 0.5051 GB, free: 12.18 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.833e-05/0.3985, allocations: 19.98 kB / 0.5051 GB, free: 12.16 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.486e-05/0.3986, allocations: 47.42 kB / 0.5052 GB, free: 12.11 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001533/0.3987, allocations: 87.33 kB / 0.5053 GB, free: 12.01 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-06/0.3987, allocations: 3.938 kB / 0.5053 GB, free: 12 MB / 430.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002377/0.399, allocations: 109.5 kB / 0.5054 GB, free: 11.89 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.509e-05/0.399, allocations: 7.984 kB / 0.5054 GB, free: 11.88 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.188e-06/0.399, allocations: 0 / 0.5054 GB, free: 11.88 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.338e-05/0.399, allocations: 4 kB / 0.5054 GB, free: 11.88 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.994e-05/0.3991, allocations: 15.94 kB / 0.5054 GB, free: 11.86 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.721e-06/0.3991, allocations: 0 / 0.5054 GB, free: 11.86 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.952e-05/0.3992, allocations: 11.92 kB / 0.5054 GB, free: 11.85 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.396e-06/0.3992, allocations: 8.062 kB / 0.5054 GB, free: 11.84 MB / 430.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 7.382e-05/0.3993, allocations: 125.7 kB / 0.5055 GB, free: 11.71 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.598e-05/0.3993, allocations: 7.906 kB / 0.5055 GB, free: 11.7 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002371/0.3996, allocations: 108 kB / 0.5056 GB, free: 11.59 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.878e-06/0.3996, allocations: 4 kB / 0.5056 GB, free: 11.59 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.3996, allocations: 0 / 0.5056 GB, free: 11.59 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.3996, allocations: 3.984 kB / 0.5056 GB, free: 11.59 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001335/0.3997, allocations: 177.6 kB / 0.5058 GB, free: 11.36 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.3998, allocations: 4 kB / 0.5058 GB, free: 11.36 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.312e-05/0.3998, allocations: 20.8 kB / 0.5058 GB, free: 11.34 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.3999, allocations: 0 / 0.5058 GB, free: 11.34 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.074e-05/0.3999, allocations: 4 kB / 0.5058 GB, free: 11.34 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.925e-06/0.3999, allocations: 4 kB / 0.5058 GB, free: 11.33 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.3999, allocations: 3.938 kB / 0.5059 GB, free: 11.33 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003193/0.4002, allocations: 169.6 kB / 0.506 GB, free: 11.14 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.961e-05/0.4003, allocations: 85 kB / 0.5061 GB, free: 11.04 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.969e-05/0.4003, allocations: 4 kB / 0.5061 GB, free: 11.04 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.498e-05/0.4004, allocations: 0 / 0.5061 GB, free: 11.04 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.743e-05/0.4004, allocations: 12.17 kB / 0.5061 GB, free: 11.03 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.809e-06/0.4004, allocations: 0 / 0.5061 GB, free: 11.03 MB / 430.1 MB Notification: Performance of sorting global known variables: time 7.058e-05/0.4005, allocations: 116.2 kB / 0.5062 GB, free: 10.91 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.443e-06/0.4005, allocations: 0 / 0.5062 GB, free: 10.91 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0004636/0.401, allocations: 163.8 kB / 0.5064 GB, free: 10.75 MB / 430.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.0008946/0.4019, allocations: 431.8 kB / 0.5068 GB, free: 10.33 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001866/0.4021, allocations: 63.89 kB / 0.5069 GB, free: 10.27 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.4021, allocations: 3.938 kB / 0.5069 GB, free: 10.27 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 7.173e-05/0.4022, allocations: 31.98 kB / 0.5069 GB, free: 10.23 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002391/0.4024, allocations: 33.69 kB / 0.5069 GB, free: 10.2 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005207/0.4029, allocations: 304.8 kB / 0.5072 GB, free: 9.883 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000225/0.4032, allocations: 0.6924 MB / 0.5079 GB, free: 9.164 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 5.19e-05/0.4032, allocations: 15.89 kB / 0.5079 GB, free: 9.148 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.29e-05/0.4033, allocations: 15.42 kB / 0.5079 GB, free: 9.133 MB / 430.1 MB Notification: Performance of SimCode: time 3.1e-07/0.4033, allocations: 4 kB / 0.5079 GB, free: 9.129 MB / 430.1 MB Notification: Performance of Templates: time 0.008085/0.4114, allocations: 4.727 MB / 0.5125 GB, free: 4.414 MB / 430.1 MB make -j1 -f Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.makefile (rm -f Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.sim & ./Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches