Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002745/0.002749, allocations: 182 kB / 16.4 MB, free: 5.746 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.489/3.489, allocations: 205.4 MB / 222.5 MB, free: 9.117 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001885/0.001884, allocations: 100.1 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006592/0.0006597, allocations: 8 kB / 327 MB, free: 216 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5051/0.5058, allocations: 47.57 MB / 374.5 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX): time 0.002572/0.5085, allocations: 1.051 MB / 375.6 MB, free: 44.59 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.3142/0.8227, allocations: 127.4 MB / 0.4912 GB, free: 52 kB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001098/0.8229, allocations: 0 / 0.4912 GB, free: 52 kB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 6.563e-05/0.823, allocations: 7.922 kB / 0.4912 GB, free: 44 kB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.4761/1.299, allocations: 248.5 kB / 0.4915 GB, free: 1.973 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003907/1.303, allocations: 0.5717 MB / 0.492 GB, free: 1.969 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002065/1.303, allocations: 51.5 kB / 0.4921 GB, free: 1.969 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.499e-05/1.303, allocations: 2.844 kB / 0.4921 GB, free: 1.969 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001166/1.304, allocations: 31.25 kB / 0.4921 GB, free: 1.969 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001293/1.304, allocations: 33.3 kB / 0.4921 GB, free: 1.969 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.389e-05/1.304, allocations: 6.938 kB / 0.4921 GB, free: 1.965 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005099/1.309, allocations: 1.034 MB / 0.4932 GB, free: 1.965 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 7.57e-05/1.309, allocations: 16.23 kB / 0.4932 GB, free: 1.965 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001064/1.309, allocations: 35.95 kB / 0.4932 GB, free: 1.934 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002422/1.312, allocations: 0.4897 MB / 0.4937 GB, free: 1.906 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.171e-06/1.312, allocations: 0 / 0.4937 GB, free: 1.906 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.907e-06/1.312, allocations: 4 kB / 0.4937 GB, free: 1.902 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.874e-06/1.312, allocations: 0 / 0.4937 GB, free: 1.902 MB / 378.7 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.001533/1.313, allocations: 459.2 kB / 0.4941 GB, free: 17.48 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.141e-05/1.313, allocations: 10.94 kB / 0.4941 GB, free: 17.48 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006697/1.314, allocations: 39.58 kB / 0.4942 GB, free: 17.48 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000342/1.315, allocations: 199.4 kB / 0.4944 GB, free: 17.27 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.079e-05/1.315, allocations: 0 / 0.4944 GB, free: 17.27 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.417e-05/1.315, allocations: 5.156 kB / 0.4944 GB, free: 17.27 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003262/1.315, allocations: 77.12 kB / 0.4944 GB, free: 17.22 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.287e-05/1.315, allocations: 0 / 0.4944 GB, free: 17.22 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.712e-05/1.315, allocations: 0 / 0.4944 GB, free: 17.22 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.775e-06/1.315, allocations: 0 / 0.4944 GB, free: 17.22 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002316/1.315, allocations: 44.98 kB / 0.4945 GB, free: 17.22 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003777/1.316, allocations: 194.6 kB / 0.4947 GB, free: 17.02 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005627/1.316, allocations: 119.5 kB / 0.4948 GB, free: 16.97 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001004/1.316, allocations: 16.14 kB / 0.4948 GB, free: 16.97 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.472e-05/1.316, allocations: 38.69 kB / 0.4948 GB, free: 16.93 MB / 394.7 MB Notification: Performance of pre-optimization done (n=6): time 4.388e-06/1.317, allocations: 0 / 0.4948 GB, free: 16.93 MB / 394.7 MB Notification: Performance of matching and sorting (n=6): time 0.000771/1.317, allocations: 122.1 kB / 0.495 GB, free: 16.89 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.424e-05/1.317, allocations: 81.11 kB / 0.495 GB, free: 16.8 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002493/1.318, allocations: 140.8 kB / 0.4952 GB, free: 16.7 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.23e-05/1.318, allocations: 27.7 kB / 0.4952 GB, free: 16.67 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001067/1.318, allocations: 155.4 kB / 0.4953 GB, free: 16.52 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.55e-05/1.318, allocations: 23.75 kB / 0.4954 GB, free: 16.5 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.067e-05/1.318, allocations: 2 kB / 0.4954 GB, free: 16.5 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001954/1.318, allocations: 313.2 kB / 0.4957 GB, free: 16.19 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001805/1.318, allocations: 36.05 kB / 0.4957 GB, free: 16.19 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001559/1.319, allocations: 48.47 kB / 0.4957 GB, free: 16.16 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001721/1.319, allocations: 26.88 kB / 0.4958 GB, free: 16.16 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/1.319, allocations: 0 / 0.4958 GB, free: 16.16 MB / 394.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0005536/1.319, allocations: 107 kB / 0.4959 GB, free: 16.12 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.819e-05/1.319, allocations: 10.12 kB / 0.4959 GB, free: 16.12 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.161e-05/1.319, allocations: 5.859 kB / 0.4959 GB, free: 16.11 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.908e-05/1.319, allocations: 1.969 kB / 0.4959 GB, free: 16.11 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001931/1.32, allocations: 16.97 kB / 0.4959 GB, free: 16.11 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.289e-05/1.32, allocations: 0 / 0.4959 GB, free: 16.11 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001438/1.32, allocations: 5.75 kB / 0.4959 GB, free: 16.11 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.281e-05/1.32, allocations: 6.25 kB / 0.4959 GB, free: 16.11 MB / 394.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001615/1.32, allocations: 111.9 kB / 0.496 GB, free: 16 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001235/1.32, allocations: 20.05 kB / 0.496 GB, free: 15.99 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006002/1.321, allocations: 109.1 kB / 0.4961 GB, free: 15.96 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.853e-06/1.321, allocations: 0 / 0.4961 GB, free: 15.96 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.454e-06/1.321, allocations: 2.875 kB / 0.4961 GB, free: 15.96 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.542e-06/1.321, allocations: 0 / 0.4961 GB, free: 15.96 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003182/1.321, allocations: 185 kB / 0.4963 GB, free: 15.77 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.09e-06/1.321, allocations: 0 / 0.4963 GB, free: 15.77 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002358/1.322, allocations: 19.19 kB / 0.4963 GB, free: 15.76 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.358e-05/1.322, allocations: 5.609 kB / 0.4963 GB, free: 15.76 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.462e-05/1.322, allocations: 0 / 0.4963 GB, free: 15.76 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.53e-06/1.322, allocations: 8.656 kB / 0.4964 GB, free: 15.75 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.549e-06/1.322, allocations: 0 / 0.4964 GB, free: 15.75 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009235/1.323, allocations: 173.9 kB / 0.4965 GB, free: 15.66 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001612/1.323, allocations: 97.53 kB / 0.4966 GB, free: 15.56 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.328e-05/1.323, allocations: 0 / 0.4966 GB, free: 15.56 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001361/1.323, allocations: 6.062 kB / 0.4966 GB, free: 15.56 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.424e-05/1.323, allocations: 13.55 kB / 0.4966 GB, free: 15.55 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.43e-05/1.323, allocations: 2.812 kB / 0.4966 GB, free: 15.55 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001855/1.323, allocations: 114.3 kB / 0.4967 GB, free: 15.48 MB / 394.7 MB Notification: Performance of sort global known variables: time 6.71e-07/1.323, allocations: 0 / 0.4967 GB, free: 15.48 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001545/1.325, allocations: 198.7 kB / 0.4969 GB, free: 15.44 MB / 394.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003363/1.328, allocations: 448.3 kB / 0.4974 GB, free: 15.29 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.000596/1.329, allocations: 63.55 kB / 0.4974 GB, free: 15.29 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.751e-06/1.329, allocations: 0 / 0.4974 GB, free: 15.29 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001701/1.329, allocations: 37.16 kB / 0.4975 GB, free: 15.29 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004751/1.33, allocations: 14.25 kB / 0.4975 GB, free: 15.29 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001094/1.331, allocations: 401.5 kB / 0.4979 GB, free: 15 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004029/1.331, allocations: 0.6958 MB / 0.4985 GB, free: 14.3 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001134/1.332, allocations: 18.5 kB / 0.4986 GB, free: 14.3 MB / 394.7 MB Notification: Performance of SimCode: time 1.403e-06/1.332, allocations: 0 / 0.4986 GB, free: 14.3 MB / 394.7 MB Notification: Performance of Templates: time 0.02082/1.352, allocations: 5.15 MB / 0.5036 GB, free: 13.56 MB / 394.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.sim & ./Modelica_3.2.3_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/SolveOneNonlinearEquation/Inverse_sh_TX/Inverse_sh_TX.csv","../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches