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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001251/0.001251, allocations: 85.05 kB / 21.5 MB, free: 2.988 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009571/0.0009571, allocations: 147.5 kB / 24.89 MB, free: 8.793 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9334/0.9334, allocations: 173.4 MB / 201.5 MB, free: 8.77 MB / 186.7 MB " [Timeout remaining time 179] 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=5002,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=5002,variableFilter="time|h1|s1",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.413e-06/1.413e-06, allocations: 3.938 kB / 268.5 MB, free: 6.051 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.489e-05/1.63e-05, allocations: 6.25 kB / 268.5 MB, free: 6.043 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX): time 0.001524/0.00154, allocations: 1.4 MB / 269.9 MB, free: 4.629 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.2272/0.2288, allocations: 141.4 MB / 411.3 MB, free: 10.21 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.113e-05/0.2288, allocations: 0 / 411.3 MB, free: 10.21 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 4.103e-05/0.2288, allocations: 7.922 kB / 411.3 MB, free: 10.2 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009396/0.2298, allocations: 384.8 kB / 411.7 MB, free: 9.836 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008214/0.2306, allocations: 0.5368 MB / 412.2 MB, free: 9.297 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001026/0.2307, allocations: 75.59 kB / 412.3 MB, free: 9.223 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.389e-05/0.2307, allocations: 7.969 kB / 412.3 MB, free: 9.215 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.859e-05/0.2308, allocations: 39.91 kB / 412.3 MB, free: 9.176 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.164e-05/0.2309, allocations: 35.89 kB / 412.4 MB, free: 9.141 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 1.206e-05/0.2309, allocations: 0 / 412.4 MB, free: 9.141 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001056/0.2319, allocations: 0.9229 MB / 413.3 MB, free: 8.215 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 3.478e-05/0.232, allocations: 11.98 kB / 413.3 MB, free: 8.203 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 2.648e-05/0.232, allocations: 27.92 kB / 413.3 MB, free: 8.176 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007469/0.2327, allocations: 0.7518 MB / 414.1 MB, free: 7.422 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.2327, allocations: 0 / 414.1 MB, free: 7.422 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.2327, allocations: 4 kB / 414.1 MB, free: 7.418 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.447e-06/0.2327, allocations: 0 / 414.1 MB, free: 7.418 MB / 362.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.0003777/0.2331, allocations: 356.2 kB / 414.4 MB, free: 7.047 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.912e-05/0.2332, allocations: 8.922 kB / 414.5 MB, free: 7.039 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002852/0.2334, allocations: 84.77 kB / 414.5 MB, free: 6.957 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.93e-05/0.2335, allocations: 124.6 kB / 414.7 MB, free: 6.809 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.167e-05/0.2335, allocations: 4.375 kB / 414.7 MB, free: 6.805 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.471e-05/0.2336, allocations: 0.5625 kB / 414.7 MB, free: 6.805 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.223e-05/0.2336, allocations: 86.78 kB / 414.8 MB, free: 6.703 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.849e-06/0.2337, allocations: 0 / 414.8 MB, free: 6.703 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.861e-06/0.2337, allocations: 0 / 414.8 MB, free: 6.703 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.238e-06/0.2337, allocations: 0 / 414.8 MB, free: 6.703 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.331e-05/0.2337, allocations: 13.66 kB / 414.8 MB, free: 6.688 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.951e-05/0.2338, allocations: 83.48 kB / 414.8 MB, free: 6.586 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001381/0.2339, allocations: 72.48 kB / 414.9 MB, free: 6.492 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.803e-05/0.2339, allocations: 17.7 kB / 414.9 MB, free: 6.469 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001773/0.2341, allocations: 51.94 kB / 415 MB, free: 6.418 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.898e-05/0.2341, allocations: 38.56 kB / 415 MB, free: 6.371 MB / 362.7 MB Notification: Performance of pre-optimization done (n=6): time 8.01e-07/0.2341, allocations: 0 / 415 MB, free: 6.371 MB / 362.7 MB Notification: Performance of matching and sorting (n=6): time 0.0001242/0.2343, allocations: 65.5 kB / 415.1 MB, free: 6.301 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.321e-05/0.2343, allocations: 81.11 kB / 415.2 MB, free: 6.203 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.828e-05/0.2344, allocations: 136.3 kB / 415.3 MB, free: 6.055 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 9.067e-06/0.2344, allocations: 29.7 kB / 415.3 MB, free: 6.02 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.941e-05/0.2344, allocations: 88.02 kB / 415.4 MB, free: 5.93 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.934e-05/0.2344, allocations: 27.77 kB / 415.4 MB, free: 5.902 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.557e-05/0.2344, allocations: 21.72 kB / 415.5 MB, free: 5.875 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.572e-05/0.2345, allocations: 322.8 kB / 415.8 MB, free: 5.551 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.433e-05/0.2345, allocations: 6.828 kB / 415.8 MB, free: 5.543 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.734e-05/0.2345, allocations: 31.42 kB / 415.8 MB, free: 5.5 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.437e-05/0.2346, allocations: 53 kB / 415.9 MB, free: 5.434 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.2346, allocations: 0 / 415.9 MB, free: 5.434 MB / 362.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 8.604e-05/0.2347, allocations: 75.2 kB / 415.9 MB, free: 5.352 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.568e-06/0.2347, allocations: 4 kB / 415.9 MB, free: 5.348 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.817e-06/0.2347, allocations: 4.062 kB / 415.9 MB, free: 5.344 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.073e-05/0.2347, allocations: 7.938 kB / 416 MB, free: 5.336 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.022e-05/0.2347, allocations: 19.92 kB / 416 MB, free: 5.316 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.935e-06/0.2347, allocations: 0 / 416 MB, free: 5.316 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.177e-05/0.2348, allocations: 4 kB / 416 MB, free: 5.312 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.589e-06/0.2348, allocations: 0 / 416 MB, free: 5.312 MB / 362.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 4.875e-05/0.2348, allocations: 116.7 kB / 416.1 MB, free: 5.188 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.764e-05/0.2348, allocations: 11.92 kB / 416.1 MB, free: 5.176 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.058e-05/0.2349, allocations: 75.61 kB / 416.2 MB, free: 5.094 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.785e-06/0.2349, allocations: 3.938 kB / 416.2 MB, free: 5.09 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.422e-06/0.2349, allocations: 4 kB / 416.2 MB, free: 5.086 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/0.2349, allocations: 0.5 kB / 416.2 MB, free: 5.086 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.451e-05/0.235, allocations: 77.92 kB / 416.3 MB, free: 4.992 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.235, allocations: 3.984 kB / 416.3 MB, free: 4.988 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.13e-05/0.2351, allocations: 19.3 kB / 416.3 MB, free: 4.973 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.202e-06/0.2351, allocations: 0 / 416.3 MB, free: 4.973 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.178e-06/0.2351, allocations: 0 / 416.3 MB, free: 4.973 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.11e-07/0.2351, allocations: 0 / 416.3 MB, free: 4.973 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.2351, allocations: 0 / 416.3 MB, free: 4.973 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001109/0.2352, allocations: 110.3 kB / 416.4 MB, free: 4.84 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.354e-05/0.2352, allocations: 27.91 kB / 416.4 MB, free: 4.812 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.277e-05/0.2352, allocations: 0 / 416.4 MB, free: 4.812 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.667e-05/0.2352, allocations: 4 kB / 416.4 MB, free: 4.809 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.534e-05/0.2353, allocations: 11.92 kB / 416.4 MB, free: 4.797 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.146e-06/0.2353, allocations: 4 kB / 416.4 MB, free: 4.793 MB / 362.7 MB Notification: Performance of sorting global known variables: time 2.249e-05/0.2353, allocations: 28.48 kB / 416.5 MB, free: 4.762 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.2353, allocations: 0 / 416.5 MB, free: 4.762 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002876/0.2356, allocations: 159.5 kB / 416.6 MB, free: 4.605 MB / 362.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 (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.0006506/0.2362, allocations: 439.4 kB / 417.1 MB, free: 4.191 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 6.712e-05/0.2363, allocations: 36.77 kB / 417.1 MB, free: 4.152 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.2363, allocations: 4 kB / 417.1 MB, free: 4.148 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 1.848e-05/0.2363, allocations: 16.8 kB / 417.1 MB, free: 4.129 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001327/0.2364, allocations: 37.42 kB / 417.1 MB, free: 4.098 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004554/0.2369, allocations: 241.5 kB / 417.4 MB, free: 3.832 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.542e-05/0.2369, allocations: 59.36 kB / 417.4 MB, free: 3.754 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.811e-05/0.237, allocations: 19.59 kB / 417.5 MB, free: 3.738 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.775e-05/0.237, allocations: 75.3 kB / 417.5 MB, free: 3.664 MB / 362.7 MB Notification: Performance of SimCode: time 7.62e-07/0.237, allocations: 0 / 417.5 MB, free: 3.664 MB / 362.7 MB Notification: Performance of Templates: time 0.006786/0.2438, allocations: 6.246 MB / 423.8 MB, free: 13.46 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.9559352840296924]