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.000799/0.000799, allocations: 91.94 kB / 16.65 MB, free: 6.59 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.0009098/0.0009099, allocations: 185.2 kB / 17.57 MB, free: 6.199 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.29/1.29, allocations: 223.3 MB / 241.6 MB, free: 14.39 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002363/0.0002363, allocations: 11.94 kB / 301.4 MB, free: 5.898 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07956/0.07982, allocations: 50.41 MB / 351.8 MB, free: 3.477 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX): time 0.001248/0.0811, allocations: 1.102 MB / 352.9 MB, free: 2.363 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.2894/0.3705, allocations: 145.2 MB / 498.2 MB, free: 3.258 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.086e-05/0.3706, allocations: 0 / 498.2 MB, free: 3.258 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 4.051e-05/0.3707, allocations: 7.922 kB / 498.2 MB, free: 3.25 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001079/0.3717, allocations: 331.9 kB / 498.5 MB, free: 2.934 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001054/0.3728, allocations: 456.8 kB / 499 MB, free: 2.488 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001062/0.3729, allocations: 95.62 kB / 499 MB, free: 2.395 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.614e-05/0.373, allocations: 7.984 kB / 499.1 MB, free: 2.387 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.391e-05/0.373, allocations: 27.92 kB / 499.1 MB, free: 2.359 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.442e-05/0.3731, allocations: 47.77 kB / 499.1 MB, free: 2.312 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.336e-05/0.3731, allocations: 4 kB / 499.1 MB, free: 2.309 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001865/0.375, allocations: 1.225 MB / 0.4886 GB, free: 1.082 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.611e-05/0.3751, allocations: 15.98 kB / 0.4886 GB, free: 1.066 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.025e-05/0.3751, allocations: 57.56 kB / 0.4887 GB, free: 1.004 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001075/0.3762, allocations: 0.7677 MB / 0.4894 GB, free: 240 kB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.965e-06/0.3762, allocations: 0 / 0.4894 GB, free: 240 kB / 398.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.3762, allocations: 0 / 0.4894 GB, free: 240 kB / 398.1 MB Notification: Performance of Transformations before backend: time 4.338e-06/0.3762, allocations: 0 / 0.4894 GB, free: 240 kB / 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.0005644/0.3768, allocations: 443.7 kB / 0.4899 GB, free: 15.75 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.503e-05/0.3768, allocations: 8.031 kB / 0.4899 GB, free: 15.75 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004566/0.3773, allocations: 64.84 kB / 0.4899 GB, free: 15.68 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001601/0.3775, allocations: 208.3 kB / 0.4901 GB, free: 15.44 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.42e-05/0.3775, allocations: 11.88 kB / 0.4902 GB, free: 15.43 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.037e-05/0.3775, allocations: 3.938 kB / 0.4902 GB, free: 15.43 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001443/0.3777, allocations: 71.39 kB / 0.4902 GB, free: 15.34 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.272e-06/0.3777, allocations: 0 / 0.4902 GB, free: 15.34 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.738e-06/0.3777, allocations: 4 kB / 0.4902 GB, free: 15.34 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.529e-06/0.3777, allocations: 0 / 0.4902 GB, free: 15.34 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001051/0.3778, allocations: 51.88 kB / 0.4903 GB, free: 15.29 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001915/0.378, allocations: 194.5 kB / 0.4905 GB, free: 15.05 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002981/0.3783, allocations: 117 kB / 0.4906 GB, free: 14.91 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.821e-05/0.3784, allocations: 41.77 kB / 0.4906 GB, free: 14.87 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004579/0.3789, allocations: 129 kB / 0.4907 GB, free: 14.72 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.231e-05/0.3789, allocations: 34.56 kB / 0.4908 GB, free: 14.68 MB / 414.1 MB Notification: Performance of pre-optimization done (n=6): time 1.363e-06/0.3789, allocations: 0 / 0.4908 GB, free: 14.68 MB / 414.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003394/0.3793, allocations: 117.6 kB / 0.4909 GB, free: 14.56 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.708e-05/0.3793, allocations: 81.11 kB / 0.491 GB, free: 14.46 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000121/0.3795, allocations: 143.8 kB / 0.4911 GB, free: 14.31 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.238e-05/0.3795, allocations: 25.7 kB / 0.4911 GB, free: 14.28 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.781e-05/0.3795, allocations: 92.14 kB / 0.4912 GB, free: 14.19 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.37e-05/0.3796, allocations: 23.64 kB / 0.4912 GB, free: 14.16 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.029e-05/0.3796, allocations: 17.72 kB / 0.4912 GB, free: 14.14 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.028e-05/0.3797, allocations: 310.8 kB / 0.4915 GB, free: 13.83 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.219e-05/0.3798, allocations: 31.97 kB / 0.4916 GB, free: 13.8 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.401e-05/0.3799, allocations: 51.42 kB / 0.4916 GB, free: 13.73 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00015/0.38, allocations: 79.34 kB / 0.4917 GB, free: 13.64 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.38, allocations: 3.938 kB / 0.4917 GB, free: 13.64 MB / 414.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002463/0.3803, allocations: 113.4 kB / 0.4918 GB, free: 13.52 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.327e-05/0.3803, allocations: 4 kB / 0.4918 GB, free: 13.52 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.198e-06/0.3803, allocations: 0 / 0.4918 GB, free: 13.52 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.254e-05/0.3803, allocations: 4 kB / 0.4918 GB, free: 13.52 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.036e-05/0.3804, allocations: 15.98 kB / 0.4918 GB, free: 13.5 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.23e-06/0.3804, allocations: 0 / 0.4918 GB, free: 13.5 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.019e-05/0.3805, allocations: 8 kB / 0.4918 GB, free: 13.49 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.959e-06/0.3805, allocations: 4 kB / 0.4918 GB, free: 13.49 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 7.485e-05/0.3806, allocations: 125.7 kB / 0.492 GB, free: 13.36 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.106e-05/0.3806, allocations: 12.38 kB / 0.492 GB, free: 13.34 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002405/0.3809, allocations: 113.8 kB / 0.4921 GB, free: 13.23 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.765e-06/0.3809, allocations: 0 / 0.4921 GB, free: 13.23 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.3809, allocations: 4 kB / 0.4921 GB, free: 13.22 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.217e-06/0.3809, allocations: 0 / 0.4921 GB, free: 13.22 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001399/0.3811, allocations: 198.1 kB / 0.4923 GB, free: 12.98 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.3811, allocations: 0 / 0.4923 GB, free: 12.98 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.216e-05/0.3811, allocations: 12 kB / 0.4923 GB, free: 12.97 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.983e-06/0.3812, allocations: 4 kB / 0.4923 GB, free: 12.96 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.041e-05/0.3812, allocations: 11.61 kB / 0.4923 GB, free: 12.96 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.296e-06/0.3812, allocations: 4 kB / 0.4923 GB, free: 12.95 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.3812, allocations: 0 / 0.4923 GB, free: 12.95 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003123/0.3815, allocations: 157.8 kB / 0.4925 GB, free: 12.78 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.489e-05/0.3816, allocations: 93.03 kB / 0.4925 GB, free: 12.67 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.045e-05/0.3816, allocations: 8.062 kB / 0.4926 GB, free: 12.66 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.664e-05/0.3817, allocations: 7.984 kB / 0.4926 GB, free: 12.65 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.618e-05/0.3817, allocations: 4 kB / 0.4926 GB, free: 12.65 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.899e-06/0.3817, allocations: 0 / 0.4926 GB, free: 12.65 MB / 414.1 MB Notification: Performance of sorting global known variables: time 7.899e-05/0.3818, allocations: 115.2 kB / 0.4927 GB, free: 12.54 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3818, allocations: 0 / 0.4927 GB, free: 12.54 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000554/0.3824, allocations: 155.9 kB / 0.4928 GB, free: 12.38 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.001029/0.3834, allocations: 426.7 kB / 0.4932 GB, free: 11.96 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000199/0.3836, allocations: 71.89 kB / 0.4933 GB, free: 11.89 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.3836, allocations: 0 / 0.4933 GB, free: 11.89 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 7.415e-05/0.3837, allocations: 31.92 kB / 0.4933 GB, free: 11.86 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002585/0.384, allocations: 26.11 kB / 0.4934 GB, free: 11.84 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005355/0.3845, allocations: 369.4 kB / 0.4937 GB, free: 11.45 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002066/0.3847, allocations: 0.6926 MB / 0.4944 GB, free: 10.73 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.6e-05/0.3848, allocations: 15.98 kB / 0.4944 GB, free: 10.71 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.27e-05/0.3848, allocations: 11.44 kB / 0.4944 GB, free: 10.7 MB / 414.1 MB Notification: Performance of SimCode: time 2.6e-07/0.3849, allocations: 3.938 kB / 0.4944 GB, free: 10.7 MB / 414.1 MB Notification: Performance of Templates: time 0.008334/0.3932, allocations: 4.548 MB / 0.4989 GB, free: 6.164 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 -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/jenkins/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/jenkins/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