Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0008301/0.0008301, allocations: 72.19 kB / 9.903 MB, free: 0.7852 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001281/0.002111, allocations: 435.8 kB / 10.33 MB, free: 368 kB / 10.45 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.0006983/0.0006983, allocations: 161.1 kB / 11.23 MB, free: 2.941 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009027/0.001601, allocations: 463.6 kB / 11.68 MB, free: 2.484 MB / 13.93 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.9781/0.9781, allocations: 177.1 MB / 189.6 MB, free: 5.316 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.124/1.102, allocations: 53.66 MB / 243.2 MB, free: 15.59 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-master/package.mo): time 2.438/2.438, allocations: 446.7 MB / 0.6745 GB, free: 6.211 MB / 0.6511 GB Notification: Performance of NFInstanceAPI.mkTop(): time 0.2461/2.684, allocations: 145.9 MB / 0.817 GB, free: 4.219 MB / 0.7917 GB " [Timeout remaining time 177] Using package Buildings with version 15.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-master/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_latest_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_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.613e-06/1.613e-06, allocations: 0 / 0.8184 GB, free: 2.84 MB / 0.7917 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.826e-05/1.988e-05, allocations: 2.312 kB / 0.8184 GB, free: 2.836 MB / 0.7917 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck): time 0.001142/0.001162, allocations: 0.6684 MB / 0.819 GB, free: 2.168 MB / 0.7917 GB Notification: Performance of NFInst.instExpressions: time 0.001353/0.002515, allocations: 1.481 MB / 0.8205 GB, free: 0.668 MB / 0.7917 GB Notification: Performance of NFInst.updateImplicitVariability: time 2e-05/0.002535, allocations: 8 kB / 0.8205 GB, free: 0.6602 MB / 0.7917 GB Notification: Performance of NFTyping.typeComponents: time 4.588e-06/0.002539, allocations: 3.938 kB / 0.8205 GB, free: 0.6562 MB / 0.7917 GB Notification: Performance of NFTyping.typeBindings: time 7.975e-06/0.002547, allocations: 0 / 0.8205 GB, free: 0.6562 MB / 0.7917 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002938/0.002841, allocations: 131.4 kB / 0.8206 GB, free: 0.5273 MB / 0.7917 GB Notification: Performance of NFFlatten.flatten: time 5.848e-05/0.002899, allocations: 27.98 kB / 0.8206 GB, free: 0.5 MB / 0.7917 GB Notification: Performance of NFFlatten.resolveConnections: time 3.361e-05/0.002933, allocations: 4 kB / 0.8206 GB, free: 0.4961 MB / 0.7917 GB Notification: Performance of NFEvalConstants.evaluate: time 6.323e-05/0.002996, allocations: 27.89 kB / 0.8207 GB, free: 480 kB / 0.7917 GB Notification: Performance of NFSimplifyModel.simplify: time 6.626e-05/0.003063, allocations: 23.97 kB / 0.8207 GB, free: 456 kB / 0.7917 GB Notification: Performance of NFPackage.collectConstants: time 1.456e-05/0.003077, allocations: 0 / 0.8207 GB, free: 456 kB / 0.7917 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002827/0.00336, allocations: 259.4 kB / 0.8209 GB, free: 196 kB / 0.7917 GB Notification: Performance of NFScalarize.scalarize: time 1.29e-05/0.003373, allocations: 0 / 0.8209 GB, free: 196 kB / 0.7917 GB Notification: Performance of NFVerifyModel.verify: time 1.547e-05/0.003388, allocations: 4 kB / 0.8209 GB, free: 192 kB / 0.7917 GB Notification: Performance of NFConvertDAE.convert: time 0.0002017/0.00359, allocations: 171.7 kB / 0.8211 GB, free: 20 kB / 0.7917 GB Notification: Performance of FrontEnd - DAE generated: time 1.122e-05/0.003601, allocations: 0 / 0.8211 GB, free: 20 kB / 0.7917 GB Notification: Performance of FrontEnd: time 6.71e-07/0.003602, allocations: 0 / 0.8211 GB, free: 20 kB / 0.7917 GB Notification: Performance of Transformations before backend: time 9.788e-06/0.003612, allocations: 4 kB / 0.8211 GB, free: 16 kB / 0.7917 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.000358/0.00397, allocations: 280.2 kB / 0.8214 GB, free: 15.72 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 2.931e-05/0.003999, allocations: 8.031 kB / 0.8214 GB, free: 15.71 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002494/0.004248, allocations: 133.9 kB / 0.8215 GB, free: 15.56 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.746e-05/0.004316, allocations: 113.8 kB / 0.8216 GB, free: 15.43 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.098e-05/0.004327, allocations: 384 / 0.8216 GB, free: 15.43 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.812e-05/0.004345, allocations: 8.359 kB / 0.8216 GB, free: 15.42 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001377/0.004483, allocations: 100.6 kB / 0.8217 GB, free: 15.3 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.58e-06/0.004488, allocations: 192 / 0.8217 GB, free: 15.3 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.416e-06/0.004497, allocations: 384 / 0.8217 GB, free: 15.3 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.858e-06/0.0045, allocations: 3.938 kB / 0.8217 GB, free: 15.3 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.593e-05/0.004536, allocations: 15.94 kB / 0.8217 GB, free: 15.29 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.088e-05/0.004627, allocations: 72.98 kB / 0.8218 GB, free: 15.2 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000146/0.004773, allocations: 38.61 kB / 0.8218 GB, free: 15.15 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.099e-05/0.004794, allocations: 16.8 kB / 0.8219 GB, free: 15.13 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001411/0.004935, allocations: 52.03 kB / 0.8219 GB, free: 15.08 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.028e-05/0.004956, allocations: 34.56 kB / 0.8219 GB, free: 15.04 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=4): time 1.352e-06/0.004957, allocations: 0 / 0.8219 GB, free: 15.04 MB / 0.8073 GB Notification: Performance of matching and sorting (n=5): time 0.0003763/0.005333, allocations: 197.2 kB / 0.8221 GB, free: 14.81 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.568e-05/0.005359, allocations: 55.41 kB / 0.8222 GB, free: 14.75 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.462e-05/0.005404, allocations: 110.6 kB / 0.8223 GB, free: 14.62 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.198e-05/0.005416, allocations: 25.7 kB / 0.8223 GB, free: 14.59 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 2.07e-05/0.005436, allocations: 84.14 kB / 0.8224 GB, free: 14.51 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 2.592e-05/0.005462, allocations: 23.81 kB / 0.8224 GB, free: 14.48 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.277e-05/0.005495, allocations: 21.67 kB / 0.8224 GB, free: 14.46 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 6.476e-05/0.00556, allocations: 310.8 kB / 0.8227 GB, free: 14.14 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.837e-05/0.005578, allocations: 11.98 kB / 0.8227 GB, free: 14.13 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.49e-05/0.005593, allocations: 4 kB / 0.8227 GB, free: 14.13 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.786e-05/0.005631, allocations: 24.83 kB / 0.8228 GB, free: 14.1 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.72e-07/0.005632, allocations: 0 / 0.8228 GB, free: 14.1 MB / 0.8073 GB Notification: Performance of matching and sorting (n=6) (initialization): time 6.132e-05/0.005693, allocations: 58 kB / 0.8228 GB, free: 14.04 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.021e-05/0.005703, allocations: 8 kB / 0.8228 GB, free: 14.03 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.937e-06/0.005707, allocations: 3.938 kB / 0.8228 GB, free: 14.03 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.372e-06/0.005714, allocations: 0 / 0.8228 GB, free: 14.03 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.358e-05/0.005787, allocations: 19.98 kB / 0.8228 GB, free: 14.01 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.555e-06/0.00579, allocations: 0 / 0.8228 GB, free: 14.01 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.966e-05/0.005819, allocations: 11.92 kB / 0.8229 GB, free: 14 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.39e-06/0.005825, allocations: 0 / 0.8229 GB, free: 14 MB / 0.8073 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 5.074e-05/0.005876, allocations: 117.8 kB / 0.823 GB, free: 13.87 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.351e-05/0.005889, allocations: 3.984 kB / 0.823 GB, free: 13.87 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001043/0.005993, allocations: 69.47 kB / 0.823 GB, free: 13.8 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.352e-06/0.005995, allocations: 4.328 kB / 0.823 GB, free: 13.79 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.363e-06/0.005996, allocations: 3.938 kB / 0.8231 GB, free: 13.79 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.005999, allocations: 3.938 kB / 0.8231 GB, free: 13.79 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.303e-05/0.006082, allocations: 65.91 kB / 0.8231 GB, free: 13.7 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.006084, allocations: 7.984 kB / 0.8231 GB, free: 13.7 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.664e-05/0.006151, allocations: 19.97 kB / 0.8231 GB, free: 13.68 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 2.303e-05/0.006174, allocations: 4 kB / 0.8231 GB, free: 13.67 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.252e-06/0.006175, allocations: 0 / 0.8231 GB, free: 13.67 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.043e-06/0.006182, allocations: 7.938 kB / 0.8232 GB, free: 13.66 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.006183, allocations: 4 kB / 0.8232 GB, free: 13.66 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.006186, allocations: 7.984 kB / 0.8232 GB, free: 13.65 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001114/0.006297, allocations: 89.03 kB / 0.8233 GB, free: 13.55 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.146e-05/0.006308, allocations: 4 kB / 0.8233 GB, free: 13.54 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.343e-05/0.006342, allocations: 7.984 kB / 0.8233 GB, free: 13.54 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.499e-05/0.006357, allocations: 3.938 kB / 0.8233 GB, free: 13.53 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.973e-06/0.006364, allocations: 8.188 kB / 0.8233 GB, free: 13.52 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 7.535e-06/0.006371, allocations: 4.859 kB / 0.8233 GB, free: 13.52 MB / 0.8073 GB Notification: Performance of sort global known variables: time 1e-07/0.006371, allocations: 0 / 0.8233 GB, free: 13.52 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0001209/0.006492, allocations: 35.98 kB / 0.8233 GB, free: 13.48 MB / 0.8073 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.0001264/0.006619, allocations: 108.3 kB / 0.8234 GB, free: 13.36 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 7.354e-05/0.006692, allocations: 40.78 kB / 0.8235 GB, free: 13.32 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 4.007e-06/0.006696, allocations: 0 / 0.8235 GB, free: 13.32 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 2.448e-05/0.006721, allocations: 24.78 kB / 0.8235 GB, free: 13.29 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 6.687e-05/0.006788, allocations: 10.44 kB / 0.8235 GB, free: 13.29 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002656/0.007053, allocations: 145 kB / 0.8236 GB, free: 13.12 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.635e-05/0.00708, allocations: 59.34 kB / 0.8237 GB, free: 13.04 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 5.128e-05/0.007131, allocations: 12 kB / 0.8237 GB, free: 13.03 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.103e-05/0.007192, allocations: 59.36 kB / 0.8238 GB, free: 12.97 MB / 0.8073 GB Notification: Performance of SimCode: time 6.11e-07/0.007192, allocations: 0 / 0.8238 GB, free: 12.97 MB / 0.8073 GB Notification: Performance of Templates: time 0.002433/0.009625, allocations: 1.333 MB / 0.8251 GB, free: 11.64 MB / 0.8073 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.sim & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.ref.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.367702197283506]