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.00134/0.00134, allocations: 115 kB / 16.63 MB, free: 6.812 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.001525/0.001525, allocations: 186 kB / 17.55 MB, free: 5.934 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.287/1.287, allocations: 222.9 MB / 241.2 MB, free: 15.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009552/0.0009553, allocations: 46.64 kB / 300.1 MB, free: 6.238 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08136/0.08233, allocations: 49.45 MB / 349.6 MB, free: 4.781 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX): time 0.002278/0.08465, allocations: 1.426 MB / 351 MB, free: 3.34 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.2954/0.3801, allocations: 146.9 MB / 497.9 MB, free: 0.9141 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.67e-05/0.3802, allocations: 0 / 497.9 MB, free: 0.9141 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.703e-05/0.3803, allocations: 7.984 kB / 497.9 MB, free: 0.9062 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001029/0.3813, allocations: 339.5 kB / 498.2 MB, free: 0.582 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001039/0.3824, allocations: 485.2 kB / 498.7 MB, free: 116 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 9.793e-05/0.3825, allocations: 79.64 kB / 498.8 MB, free: 36 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.549e-05/0.3825, allocations: 11.92 kB / 498.8 MB, free: 24 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.72e-05/0.3826, allocations: 35.86 kB / 498.8 MB, free: 15.99 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.774e-05/0.3827, allocations: 35.89 kB / 498.9 MB, free: 15.95 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 1.365e-05/0.3827, allocations: 4 kB / 498.9 MB, free: 15.95 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001587/0.3843, allocations: 1.114 MB / 500 MB, free: 14.83 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 3.495e-05/0.3843, allocations: 19.97 kB / 0.4883 GB, free: 14.81 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 4.294e-05/0.3844, allocations: 27.8 kB / 0.4883 GB, free: 14.79 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009784/0.3854, allocations: 0.7677 MB / 0.4891 GB, free: 14.02 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.3854, allocations: 0 / 0.4891 GB, free: 14.02 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.3854, allocations: 0 / 0.4891 GB, free: 14.02 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.38e-06/0.3854, allocations: 0 / 0.4891 GB, free: 14.02 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.0005352/0.386, allocations: 463.7 kB / 0.4895 GB, free: 13.52 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.105e-05/0.386, allocations: 8.031 kB / 0.4895 GB, free: 13.51 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004818/0.3865, allocations: 76.34 kB / 0.4896 GB, free: 13.44 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001522/0.3866, allocations: 192.5 kB / 0.4898 GB, free: 13.21 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.082e-05/0.3867, allocations: 7.938 kB / 0.4898 GB, free: 13.2 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.951e-05/0.3867, allocations: 0 / 0.4898 GB, free: 13.2 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001515/0.3869, allocations: 71.39 kB / 0.4898 GB, free: 13.12 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.204e-06/0.3869, allocations: 4 kB / 0.4898 GB, free: 13.12 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.053e-05/0.3869, allocations: 7.938 kB / 0.4899 GB, free: 13.11 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.2e-06/0.3869, allocations: 3.984 kB / 0.4899 GB, free: 13.11 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.885e-05/0.387, allocations: 39.97 kB / 0.4899 GB, free: 13.07 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001825/0.3872, allocations: 187.4 kB / 0.4901 GB, free: 12.83 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002888/0.3875, allocations: 125 kB / 0.4902 GB, free: 12.69 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.653e-05/0.3876, allocations: 37.77 kB / 0.4902 GB, free: 12.65 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004871/0.3881, allocations: 137 kB / 0.4904 GB, free: 12.5 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.293e-05/0.3881, allocations: 30.56 kB / 0.4904 GB, free: 12.46 MB / 414.1 MB Notification: Performance of pre-optimization done (n=6): time 1.302e-06/0.3881, allocations: 0 / 0.4904 GB, free: 12.46 MB / 414.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003374/0.3885, allocations: 117.8 kB / 0.4905 GB, free: 12.34 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.211e-05/0.3885, allocations: 85.09 kB / 0.4906 GB, free: 12.23 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001128/0.3886, allocations: 143.4 kB / 0.4907 GB, free: 12.09 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.249e-05/0.3886, allocations: 29.7 kB / 0.4908 GB, free: 12.05 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.821e-05/0.3887, allocations: 84.14 kB / 0.4908 GB, free: 11.96 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.454e-05/0.3887, allocations: 23.7 kB / 0.4909 GB, free: 11.94 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.577e-05/0.3888, allocations: 17.72 kB / 0.4909 GB, free: 11.92 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 8.831e-05/0.3889, allocations: 318.8 kB / 0.4912 GB, free: 11.6 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.194e-05/0.3889, allocations: 27.91 kB / 0.4912 GB, free: 11.57 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.943e-05/0.389, allocations: 51.42 kB / 0.4913 GB, free: 11.51 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001452/0.3892, allocations: 87.38 kB / 0.4913 GB, free: 11.41 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.418e-06/0.3892, allocations: 3.938 kB / 0.4913 GB, free: 11.41 MB / 414.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002405/0.3894, allocations: 111.9 kB / 0.4914 GB, free: 11.29 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.165e-05/0.3895, allocations: 8 kB / 0.4915 GB, free: 11.29 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.388e-06/0.3895, allocations: 4 kB / 0.4915 GB, free: 11.28 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.337e-06/0.3895, allocations: 0 / 0.4915 GB, free: 11.28 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.123e-05/0.3896, allocations: 15.98 kB / 0.4915 GB, free: 11.27 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.385e-06/0.3896, allocations: 4 kB / 0.4915 GB, free: 11.26 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.88e-05/0.3896, allocations: 7.875 kB / 0.4915 GB, free: 11.25 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.125e-06/0.3896, allocations: 4 kB / 0.4915 GB, free: 11.25 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.867e-05/0.3897, allocations: 121.8 kB / 0.4916 GB, free: 11.12 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.214e-05/0.3898, allocations: 11.91 kB / 0.4916 GB, free: 11.11 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002451/0.39, allocations: 118.3 kB / 0.4917 GB, free: 10.99 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.545e-06/0.39, allocations: 0 / 0.4917 GB, free: 10.99 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.585e-05/0.3901, allocations: 0 / 0.4917 GB, free: 10.99 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.618e-06/0.3901, allocations: 0 / 0.4917 GB, free: 10.99 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001415/0.3902, allocations: 189.6 kB / 0.4919 GB, free: 10.75 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.3902, allocations: 0 / 0.4919 GB, free: 10.75 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.927e-05/0.3903, allocations: 8 kB / 0.4919 GB, free: 10.75 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.3903, allocations: 0 / 0.4919 GB, free: 10.75 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.267e-05/0.3903, allocations: 7.984 kB / 0.4919 GB, free: 10.74 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.452e-06/0.3904, allocations: 4 kB / 0.4919 GB, free: 10.73 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.51e-07/0.3904, allocations: 0 / 0.4919 GB, free: 10.73 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003201/0.3907, allocations: 166.7 kB / 0.4921 GB, free: 10.55 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.492e-05/0.3907, allocations: 89.03 kB / 0.4922 GB, free: 10.45 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.118e-05/0.3908, allocations: 4 kB / 0.4922 GB, free: 10.44 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.667e-05/0.3908, allocations: 4.062 kB / 0.4922 GB, free: 10.44 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.499e-05/0.3909, allocations: 7.984 kB / 0.4922 GB, free: 10.43 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.533e-06/0.3909, allocations: 7.938 kB / 0.4922 GB, free: 10.43 MB / 414.1 MB Notification: Performance of sorting global known variables: time 7.16e-05/0.391, allocations: 107.3 kB / 0.4923 GB, free: 10.32 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.391, allocations: 0 / 0.4923 GB, free: 10.32 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004776/0.3914, allocations: 163.8 kB / 0.4925 GB, free: 10.16 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.00102/0.3925, allocations: 434.1 kB / 0.4929 GB, free: 9.734 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002066/0.3927, allocations: 75.89 kB / 0.4929 GB, free: 9.66 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.3927, allocations: 0 / 0.4929 GB, free: 9.66 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 7.397e-05/0.3928, allocations: 28.2 kB / 0.493 GB, free: 9.633 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002407/0.393, allocations: 30.31 kB / 0.493 GB, free: 9.605 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005013/0.3935, allocations: 319.5 kB / 0.4933 GB, free: 9.266 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002359/0.3938, allocations: 0.6885 MB / 0.494 GB, free: 8.551 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.582e-05/0.3938, allocations: 12.94 kB / 0.494 GB, free: 8.539 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.247e-05/0.3939, allocations: 15.44 kB / 0.494 GB, free: 8.523 MB / 414.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3939, allocations: 0 / 0.494 GB, free: 8.523 MB / 414.1 MB Notification: Performance of Templates: time 0.007882/0.4018, allocations: 4.611 MB / 0.4985 GB, free: 3.926 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