Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.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.001334/0.001334, allocations: 104.3 kB / 19.7 MB, free: 2.156 MB / 14.72 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.001539/0.001539, allocations: 213 kB / 22.99 MB, free: 4.98 MB / 14.72 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 1.522/1.522, allocations: 230.6 MB / 256.8 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.227/3.227, allocations: 0.49 GB / 0.7959 GB, free: 35.5 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) 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(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|y_comp|y",fileNamePrefix="Buildings_12_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck") translateModel(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|y_comp|y",fileNamePrefix="Buildings_12_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002107/0.002107, allocations: 73.2 kB / 1.155 GB, free: 25.17 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3395/0.3416, allocations: 176.1 MB / 1.327 GB, free: 0.9023 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck): time 0.001827/0.3435, allocations: 0.6217 MB / 1.328 GB, free: 292 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001997/0.3455, allocations: 1.432 MB / 1.329 GB, free: 14.84 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.77e-05/0.3455, allocations: 4 kB / 1.329 GB, free: 14.83 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 1.294e-05/0.3455, allocations: 0 / 1.329 GB, free: 14.83 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 3.235e-05/0.3455, allocations: 3.938 kB / 1.329 GB, free: 14.83 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005148/0.346, allocations: 139.5 kB / 1.329 GB, free: 14.69 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 8.078e-05/0.3461, allocations: 31.91 kB / 1.329 GB, free: 14.66 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 4.688e-05/0.3462, allocations: 4 kB / 1.329 GB, free: 14.66 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 4.507e-05/0.3462, allocations: 19.92 kB / 1.329 GB, free: 14.64 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 8.035e-05/0.3463, allocations: 27.97 kB / 1.329 GB, free: 14.61 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.565e-05/0.3463, allocations: 0 / 1.329 GB, free: 14.61 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004113/0.3467, allocations: 255.5 kB / 1.33 GB, free: 14.36 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 1.85e-05/0.3467, allocations: 11.98 kB / 1.33 GB, free: 14.35 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 2.91e-05/0.3468, allocations: 19.91 kB / 1.33 GB, free: 14.33 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.000296/0.3471, allocations: 175.5 kB / 1.33 GB, free: 14.16 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.3471, allocations: 0 / 1.33 GB, free: 14.16 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.433e-06/0.3471, allocations: 4 kB / 1.33 GB, free: 14.15 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.44e-06/0.3471, allocations: 0 / 1.33 GB, free: 14.15 MB / 1.029 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0005494/0.3476, allocations: 294 kB / 1.33 GB, free: 13.84 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.468e-05/0.3477, allocations: 12.03 kB / 1.33 GB, free: 13.82 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004976/0.3482, allocations: 68.84 kB / 1.33 GB, free: 13.76 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001124/0.3483, allocations: 106.5 kB / 1.33 GB, free: 13.63 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.189e-05/0.3483, allocations: 4.312 kB / 1.33 GB, free: 13.62 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.671e-05/0.3483, allocations: 384 / 1.33 GB, free: 13.62 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003067/0.3486, allocations: 107.6 kB / 1.33 GB, free: 13.51 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.887e-06/0.3486, allocations: 0 / 1.33 GB, free: 13.51 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.819e-05/0.3487, allocations: 12 kB / 1.33 GB, free: 13.5 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.538e-06/0.3487, allocations: 0 / 1.33 GB, free: 13.5 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003059/0.349, allocations: 55.94 kB / 1.33 GB, free: 13.44 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001821/0.3491, allocations: 113.3 kB / 1.331 GB, free: 13.3 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006393/0.3498, allocations: 118.5 kB / 1.331 GB, free: 13.18 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001717/0.35, allocations: 44.92 kB / 1.331 GB, free: 13.13 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004715/0.3504, allocations: 83.91 kB / 1.331 GB, free: 13.05 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.368e-05/0.3505, allocations: 30.56 kB / 1.331 GB, free: 13.01 MB / 1.029 GB Notification: Performance of pre-optimization done (n=4): time 1.413e-06/0.3505, allocations: 3.938 kB / 1.331 GB, free: 13 MB / 1.029 GB Notification: Performance of matching and sorting (n=5): time 0.001268/0.3517, allocations: 337 kB / 1.331 GB, free: 12.64 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.49e-05/0.3518, allocations: 55.41 kB / 1.331 GB, free: 12.57 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.635e-05/0.3519, allocations: 93.84 kB / 1.331 GB, free: 12.47 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.485e-05/0.3519, allocations: 33.7 kB / 1.331 GB, free: 12.43 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 4.44e-05/0.3519, allocations: 80.14 kB / 1.331 GB, free: 12.35 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.502e-05/0.352, allocations: 11.86 kB / 1.331 GB, free: 12.34 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.687e-05/0.352, allocations: 25.7 kB / 1.331 GB, free: 12.31 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001459/0.3522, allocations: 319 kB / 1.332 GB, free: 11.99 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001684/0.3523, allocations: 27.97 kB / 1.332 GB, free: 11.96 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001537/0.3525, allocations: 39.95 kB / 1.332 GB, free: 11.92 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003167/0.3528, allocations: 80.8 kB / 1.332 GB, free: 11.84 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.212e-06/0.3528, allocations: 3.938 kB / 1.332 GB, free: 11.84 MB / 1.029 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003674/0.3532, allocations: 109.6 kB / 1.332 GB, free: 11.72 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.004e-05/0.3532, allocations: 7.938 kB / 1.332 GB, free: 11.71 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.513e-06/0.3532, allocations: 0 / 1.332 GB, free: 11.71 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.709e-05/0.3532, allocations: 4 kB / 1.332 GB, free: 11.71 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001624/0.3534, allocations: 24.22 kB / 1.332 GB, free: 11.69 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.473e-06/0.3534, allocations: 0 / 1.332 GB, free: 11.69 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001068/0.3535, allocations: 15.98 kB / 1.332 GB, free: 11.67 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.586e-05/0.3535, allocations: 4 kB / 1.332 GB, free: 11.67 MB / 1.029 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (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 prepare postOptimizeDAE: time 9.21e-05/0.3536, allocations: 105.8 kB / 1.332 GB, free: 11.55 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.315e-05/0.3536, allocations: 15.94 kB / 1.332 GB, free: 11.54 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004905/0.3541, allocations: 133.3 kB / 1.332 GB, free: 11.4 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.285e-06/0.3541, allocations: 0 / 1.332 GB, free: 11.4 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.3541, allocations: 0 / 1.332 GB, free: 11.4 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.3541, allocations: 7.922 kB / 1.332 GB, free: 11.39 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001358/0.3543, allocations: 113.3 kB / 1.332 GB, free: 11.25 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.3543, allocations: 4 kB / 1.332 GB, free: 11.25 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001646/0.3544, allocations: 23.97 kB / 1.332 GB, free: 11.22 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.3544, allocations: 0 / 1.332 GB, free: 11.22 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.855e-05/0.3545, allocations: 3.938 kB / 1.332 GB, free: 11.22 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.316e-06/0.3545, allocations: 4 kB / 1.332 GB, free: 11.21 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.3545, allocations: 0 / 1.332 GB, free: 11.21 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006002/0.3551, allocations: 188.9 kB / 1.333 GB, free: 11.01 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 4.753e-05/0.3551, allocations: 4.047 kB / 1.333 GB, free: 11.01 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.327e-05/0.3551, allocations: 11.94 kB / 1.333 GB, free: 11 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001314/0.3553, allocations: 19.97 kB / 1.333 GB, free: 10.98 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.79e-05/0.3553, allocations: 0 / 1.333 GB, free: 10.98 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.184e-05/0.3553, allocations: 4 kB / 1.333 GB, free: 10.97 MB / 1.029 GB Notification: Performance of sorting global known variables: time 4.134e-05/0.3553, allocations: 79.27 kB / 1.333 GB, free: 10.89 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.3553, allocations: 0 / 1.333 GB, free: 10.89 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002441/0.3556, allocations: 35.88 kB / 1.333 GB, free: 10.86 MB / 1.029 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (y_comp) * 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.0002285/0.3558, allocations: 131.2 kB / 1.333 GB, free: 10.72 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0003843/0.3562, allocations: 79.86 kB / 1.333 GB, free: 10.64 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 4.058e-06/0.3562, allocations: 8 kB / 1.333 GB, free: 10.63 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001652/0.3564, allocations: 35.97 kB / 1.333 GB, free: 10.6 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001643/0.3565, allocations: 9.031 kB / 1.333 GB, free: 10.59 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006785/0.3572, allocations: 185.7 kB / 1.333 GB, free: 10.38 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.73e-05/0.3573, allocations: 67.34 kB / 1.333 GB, free: 10.3 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 9.219e-05/0.3574, allocations: 15.91 kB / 1.333 GB, free: 10.28 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.516e-05/0.3574, allocations: 23.36 kB / 1.333 GB, free: 10.26 MB / 1.029 GB Notification: Performance of SimCode: time 3.11e-07/0.3574, allocations: 0 / 1.333 GB, free: 10.26 MB / 1.029 GB Notification: Performance of Templates: time 0.004102/0.3615, allocations: 1.219 MB / 1.334 GB, free: 9.047 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.sim & ./Buildings_12_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck -abortSlowSimulation -alarm=400 -s gbode -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 9.12827701299102]