Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009503/0.0009503, allocations: 81.97 kB / 22.21 MB, free: 2.289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009672/0.0009672, allocations: 164.8 kB / 25.61 MB, free: 8.902 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8658/0.8658, allocations: 177.1 MB / 206.1 MB, free: 4.496 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.684e-06/1.684e-06, allocations: 0 / 274.2 MB, free: 4.438 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.534e-05/1.702e-05, allocations: 2.312 kB / 274.2 MB, free: 4.434 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX): time 0.002341/0.002358, allocations: 1.406 MB / 275.6 MB, free: 3.035 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.2329/0.2352, allocations: 142.2 MB / 417.8 MB, free: 1.129 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.776e-05/0.2353, allocations: 0 / 417.8 MB, free: 1.129 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 4.521e-05/0.2353, allocations: 7.922 kB / 417.8 MB, free: 1.121 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001054/0.2364, allocations: 384.5 kB / 418.2 MB, free: 0.7578 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009578/0.2373, allocations: 0.5368 MB / 418.7 MB, free: 224 kB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001022/0.2374, allocations: 75.59 kB / 418.8 MB, free: 148 kB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.06e-05/0.2375, allocations: 0 / 418.8 MB, free: 148 kB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.963e-05/0.2375, allocations: 51.81 kB / 418.8 MB, free: 96 kB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.179e-05/0.2376, allocations: 23.97 kB / 418.8 MB, free: 72 kB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 1.16e-05/0.2376, allocations: 0 / 418.8 MB, free: 72 kB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001338/0.239, allocations: 0.9541 MB / 419.8 MB, free: 15.11 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 3.978e-05/0.239, allocations: 23.91 kB / 419.8 MB, free: 15.09 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.677e-05/0.239, allocations: 12 kB / 419.8 MB, free: 15.08 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000912/0.2399, allocations: 0.7596 MB / 420.6 MB, free: 14.32 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.2399, allocations: 0 / 420.6 MB, free: 14.32 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.2399, allocations: 0 / 420.6 MB, free: 14.32 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.677e-06/0.2399, allocations: 0 / 420.6 MB, free: 14.32 MB / 346.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.0004696/0.2404, allocations: 483.8 kB / 421.1 MB, free: 13.81 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.957e-05/0.2404, allocations: 8.031 kB / 421.1 MB, free: 13.8 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003737/0.2408, allocations: 81.3 kB / 421.2 MB, free: 13.72 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001091/0.2409, allocations: 140.5 kB / 421.3 MB, free: 13.56 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.244e-05/0.2409, allocations: 384 / 421.3 MB, free: 13.56 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.481e-05/0.2409, allocations: 4.562 kB / 421.3 MB, free: 13.55 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001059/0.2411, allocations: 82.98 kB / 421.4 MB, free: 13.46 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.382e-06/0.2411, allocations: 3.938 kB / 421.4 MB, free: 13.45 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.771e-06/0.2411, allocations: 0 / 421.4 MB, free: 13.45 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.953e-06/0.2411, allocations: 4 kB / 421.4 MB, free: 13.45 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.958e-05/0.2411, allocations: 15.91 kB / 421.4 MB, free: 13.43 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001276/0.2412, allocations: 113 kB / 421.5 MB, free: 13.29 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001654/0.2414, allocations: 90.17 kB / 421.6 MB, free: 13.18 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.328e-05/0.2414, allocations: 23.44 kB / 421.6 MB, free: 13.15 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002073/0.2416, allocations: 51.94 kB / 421.7 MB, free: 13.1 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.252e-05/0.2416, allocations: 37.39 kB / 421.7 MB, free: 13.05 MB / 346.7 MB Notification: Performance of pre-optimization done (n=6): time 9.12e-07/0.2416, allocations: 0 / 421.7 MB, free: 13.05 MB / 346.7 MB Notification: Performance of matching and sorting (n=6): time 0.0001846/0.2418, allocations: 77.5 kB / 421.8 MB, free: 12.97 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.682e-05/0.2419, allocations: 81.11 kB / 421.9 MB, free: 12.87 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.085e-05/0.242, allocations: 187.3 kB / 422 MB, free: 12.67 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.016e-05/0.242, allocations: 25.7 kB / 422.1 MB, free: 12.64 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.07e-05/0.242, allocations: 134.9 kB / 422.2 MB, free: 12.5 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.069e-05/0.242, allocations: 23.78 kB / 422.2 MB, free: 12.48 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.834e-05/0.2421, allocations: 31.36 kB / 422.3 MB, free: 12.44 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001192/0.2422, allocations: 0.4884 MB / 422.7 MB, free: 11.94 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.668e-05/0.2422, allocations: 4 kB / 422.7 MB, free: 11.94 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.716e-05/0.2423, allocations: 47.3 kB / 422.8 MB, free: 11.88 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.902e-05/0.2423, allocations: 59.06 kB / 422.9 MB, free: 11.8 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.734e-06/0.2423, allocations: 0 / 422.9 MB, free: 11.8 MB / 346.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.000136/0.2425, allocations: 88.23 kB / 422.9 MB, free: 11.71 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.068e-05/0.2425, allocations: 4 kB / 422.9 MB, free: 11.71 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.2425, allocations: 4 kB / 422.9 MB, free: 11.7 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.997e-06/0.2425, allocations: 3.938 kB / 423 MB, free: 11.7 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.783e-05/0.2425, allocations: 15.98 kB / 423 MB, free: 11.68 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.619e-06/0.2425, allocations: 3.938 kB / 423 MB, free: 11.68 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.269e-05/0.2426, allocations: 12.02 kB / 423 MB, free: 11.67 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.352e-06/0.2426, allocations: 4 kB / 423 MB, free: 11.66 MB / 346.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 6.303e-05/0.2426, allocations: 160.6 kB / 423.1 MB, free: 11.5 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.732e-05/0.2427, allocations: 15.89 kB / 423.2 MB, free: 11.48 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000119/0.2428, allocations: 75.89 kB / 423.2 MB, free: 11.4 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.026e-06/0.2428, allocations: 11.88 kB / 423.2 MB, free: 11.39 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.373e-06/0.2428, allocations: 0 / 423.2 MB, free: 11.39 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.2428, allocations: 0 / 423.2 MB, free: 11.39 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.129e-05/0.2429, allocations: 113.2 kB / 423.4 MB, free: 11.25 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.2429, allocations: 0 / 423.4 MB, free: 11.25 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.823e-05/0.2429, allocations: 12 kB / 423.4 MB, free: 11.24 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.426e-06/0.2429, allocations: 4 kB / 423.4 MB, free: 11.24 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.064e-06/0.243, allocations: 3.984 kB / 423.4 MB, free: 11.23 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.243, allocations: 2.109 kB / 423.4 MB, free: 11.23 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.243, allocations: 0 / 423.4 MB, free: 11.23 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001638/0.2431, allocations: 131.6 kB / 423.5 MB, free: 11.08 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.494e-05/0.2431, allocations: 11.95 kB / 423.5 MB, free: 11.07 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.41e-05/0.2432, allocations: 3.984 kB / 423.5 MB, free: 11.07 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.622e-05/0.2432, allocations: 4 kB / 423.5 MB, free: 11.06 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.459e-05/0.2432, allocations: 3.969 kB / 423.5 MB, free: 11.06 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.272e-06/0.2432, allocations: 12 kB / 423.5 MB, free: 11.05 MB / 346.7 MB Notification: Performance of sorting global known variables: time 5.292e-05/0.2433, allocations: 143.1 kB / 423.7 MB, free: 10.91 MB / 346.7 MB Notification: Performance of sort global known variables: time 7e-08/0.2433, allocations: 0 / 423.7 MB, free: 10.91 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004121/0.2437, allocations: 163.4 kB / 423.8 MB, free: 10.75 MB / 346.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.000702/0.2444, allocations: 443.3 kB / 424.3 MB, free: 10.3 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 8.172e-05/0.2445, allocations: 35.61 kB / 424.3 MB, free: 10.26 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.292e-06/0.2445, allocations: 0 / 424.3 MB, free: 10.26 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 2.988e-05/0.2445, allocations: 31.73 kB / 424.3 MB, free: 10.23 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002274/0.2447, allocations: 30.48 kB / 424.4 MB, free: 10.2 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005533/0.2453, allocations: 270.9 kB / 424.6 MB, free: 9.906 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.319e-05/0.2453, allocations: 63.34 kB / 424.7 MB, free: 9.824 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 4.127e-05/0.2454, allocations: 4 kB / 424.7 MB, free: 9.82 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.335e-05/0.2454, allocations: 94.17 kB / 424.8 MB, free: 9.727 MB / 346.7 MB Notification: Performance of SimCode: time 7.82e-07/0.2454, allocations: 4 kB / 424.8 MB, free: 9.723 MB / 346.7 MB Notification: Performance of Templates: time 0.008679/0.2541, allocations: 6.36 MB / 431.2 MB, free: 3.418 MB / 346.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe ; mkfifo Modelica_4.1.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe >> ../files/Modelica_4.1.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.sim & ./Modelica_4.1.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.9530297773890197]