Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.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.001552/0.001552, allocations: 96.42 kB / 19.7 MB, free: 2.133 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.001533/0.001533, allocations: 210.1 kB / 22.99 MB, free: 4.957 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.574/1.574, 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.301/3.301, allocations: 0.49 GB / 0.7959 GB, free: 35.45 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.Controls.OBC.CDL.Reals.Validation.Derivative,tolerance=1e-07,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|der1.y|intWitRes.u|der2.y|der1.T",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative,tolerance=1e-07,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|der1.y|intWitRes.u|der2.y|der1.T",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative") [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.002074/0.002074, allocations: 66.91 kB / 1.155 GB, free: 25.14 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4431/0.4452, allocations: 176.1 MB / 1.327 GB, free: 0.9609 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative): time 0.002502/0.4477, allocations: 0.9976 MB / 1.328 GB, free: 15.96 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.001578/0.4493, allocations: 1.03 MB / 1.329 GB, free: 14.92 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001328/0.4494, allocations: 4 kB / 1.329 GB, free: 14.92 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0001474/0.4495, allocations: 19.73 kB / 1.329 GB, free: 14.9 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 7.46e-05/0.4496, allocations: 23.78 kB / 1.329 GB, free: 14.88 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.000331/0.4499, allocations: 71.86 kB / 1.329 GB, free: 14.8 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0002362/0.4502, allocations: 184 kB / 1.329 GB, free: 14.62 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001655/0.4503, allocations: 56.41 kB / 1.329 GB, free: 14.56 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001211/0.4505, allocations: 75.7 kB / 1.33 GB, free: 14.49 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001155/0.4506, allocations: 79.61 kB / 1.33 GB, free: 14.41 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 3.516e-05/0.4506, allocations: 20 kB / 1.33 GB, free: 14.39 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 6.143e-05/0.4507, allocations: 24 kB / 1.33 GB, free: 14.37 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 4.904e-05/0.4507, allocations: 43.83 kB / 1.33 GB, free: 14.32 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 7.845e-05/0.4508, allocations: 59.66 kB / 1.33 GB, free: 14.27 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002821/0.4511, allocations: 191.1 kB / 1.33 GB, free: 14.08 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.4511, allocations: 0 / 1.33 GB, free: 14.08 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.763e-06/0.4511, allocations: 0 / 1.33 GB, free: 14.08 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.652e-06/0.4511, allocations: 0 / 1.33 GB, free: 14.08 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: 36 * Number of variables: 36 Notification: Performance of Generate backend data structure: time 0.0009499/0.4521, allocations: 430.4 kB / 1.33 GB, free: 13.62 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.959e-05/0.4521, allocations: 8.031 kB / 1.33 GB, free: 13.61 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001188/0.4522, allocations: 28.78 kB / 1.33 GB, free: 13.59 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003178/0.4525, allocations: 167.9 kB / 1.331 GB, free: 13.4 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.235e-05/0.4526, allocations: 12.38 kB / 1.331 GB, free: 13.39 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.714e-05/0.4526, allocations: 20.31 kB / 1.331 GB, free: 13.37 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003874/0.453, allocations: 183.2 kB / 1.331 GB, free: 13.18 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.053e-05/0.453, allocations: 0 / 1.331 GB, free: 13.18 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.082e-05/0.453, allocations: 12 kB / 1.331 GB, free: 13.16 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.783e-06/0.453, allocations: 4 kB / 1.331 GB, free: 13.16 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003116/0.4533, allocations: 103.9 kB / 1.331 GB, free: 13.06 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001151/0.4545, allocations: 432 kB / 1.331 GB, free: 12.61 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004129/0.4549, allocations: 134.7 kB / 1.331 GB, free: 12.46 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001834/0.4551, allocations: 82.64 kB / 1.331 GB, free: 12.38 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 3.439e-05/0.4551, allocations: 8 kB / 1.331 GB, free: 12.38 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002786/0.4554, allocations: 141.8 kB / 1.332 GB, free: 12.22 MB / 1.029 GB Notification: Performance of pre-optimization done (n=19): time 1.453e-06/0.4554, allocations: 0 / 1.332 GB, free: 12.22 MB / 1.029 GB Notification: Performance of matching and sorting (n=19): time 0.0006092/0.456, allocations: 227 kB / 1.332 GB, free: 11.99 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.147e-05/0.4561, allocations: 63.39 kB / 1.332 GB, free: 11.92 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001377/0.4562, allocations: 139.9 kB / 1.332 GB, free: 11.77 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.978e-05/0.4562, allocations: 29.7 kB / 1.332 GB, free: 11.74 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 9.028e-05/0.4563, allocations: 124.4 kB / 1.332 GB, free: 11.61 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 6.914e-05/0.4564, allocations: 71.42 kB / 1.332 GB, free: 11.54 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.539e-05/0.4565, allocations: 37.7 kB / 1.332 GB, free: 11.5 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001622/0.4566, allocations: 322.8 kB / 1.333 GB, free: 11.18 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002308/0.4569, allocations: 71.95 kB / 1.333 GB, free: 11.11 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002352/0.4571, allocations: 87.5 kB / 1.333 GB, free: 11.02 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003604/0.4575, allocations: 139.3 kB / 1.333 GB, free: 10.88 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.4575, allocations: 0 / 1.333 GB, free: 10.88 MB / 1.029 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000549/0.458, allocations: 222.2 kB / 1.333 GB, free: 10.65 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.746e-05/0.458, allocations: 4 kB / 1.333 GB, free: 10.65 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.458, allocations: 0 / 1.333 GB, free: 10.65 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.676e-05/0.4581, allocations: 7.938 kB / 1.333 GB, free: 10.64 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002342/0.4583, allocations: 43.91 kB / 1.333 GB, free: 10.6 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.819e-06/0.4583, allocations: 7.984 kB / 1.333 GB, free: 10.59 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001539/0.4585, allocations: 27.81 kB / 1.333 GB, free: 10.56 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.542e-05/0.4585, allocations: 4 kB / 1.333 GB, free: 10.56 MB / 1.029 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,lesThr.lesHys.y,$PRE.lesThr.lesHys.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * 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 0.0001339/0.4586, allocations: 137.7 kB / 1.333 GB, free: 10.41 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.807e-05/0.4586, allocations: 15.91 kB / 1.333 GB, free: 10.4 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004553/0.4591, allocations: 184.4 kB / 1.333 GB, free: 10.21 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.596e-06/0.4591, allocations: 0 / 1.333 GB, free: 10.21 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.835e-06/0.4591, allocations: 4 kB / 1.333 GB, free: 10.21 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.4591, allocations: 0 / 1.333 GB, free: 10.21 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009083/0.46, allocations: 0.5106 MB / 1.334 GB, free: 9.641 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.46, allocations: 0 / 1.334 GB, free: 9.641 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001959/0.4602, allocations: 39.91 kB / 1.334 GB, free: 9.602 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.302e-06/0.4602, allocations: 4 kB / 1.334 GB, free: 9.598 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.023e-05/0.4602, allocations: 7.938 kB / 1.334 GB, free: 9.59 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.714e-06/0.4602, allocations: 4 kB / 1.334 GB, free: 9.586 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.461e-06/0.4603, allocations: 4.188 kB / 1.334 GB, free: 9.582 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006892/0.4609, allocations: 380.4 kB / 1.334 GB, free: 9.176 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.794e-05/0.461, allocations: 19.78 kB / 1.334 GB, free: 9.156 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.836e-05/0.461, allocations: 8 kB / 1.334 GB, free: 9.148 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001638/0.4612, allocations: 20.03 kB / 1.334 GB, free: 9.129 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.975e-05/0.4612, allocations: 23.95 kB / 1.334 GB, free: 9.105 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.48e-05/0.4612, allocations: 4 kB / 1.334 GB, free: 9.102 MB / 1.029 GB Notification: Performance of sorting global known variables: time 9.279e-05/0.4613, allocations: 114.8 kB / 1.335 GB, free: 8.992 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.4613, allocations: 4 kB / 1.335 GB, free: 8.988 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002982/0.4616, allocations: 31.95 kB / 1.335 GB, free: 8.957 MB / 1.029 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (der2.x,intWitRes.y,der1.x) * Number of discrete variables: 2 ($whenCondition1,lesThr.lesHys.y) * Number of discrete states: 1 (lesThr.lesHys.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 19 * 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.0001474/0.4618, allocations: 111.2 kB / 1.335 GB, free: 8.84 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0004548/0.4622, allocations: 153.3 kB / 1.335 GB, free: 8.691 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.4622, allocations: 0 / 1.335 GB, free: 8.691 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001971/0.4624, allocations: 87.89 kB / 1.335 GB, free: 8.605 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003531/0.4628, allocations: 20 kB / 1.335 GB, free: 8.586 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007736/0.4636, allocations: 382.7 kB / 1.335 GB, free: 8.168 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001234/0.4637, allocations: 112.6 kB / 1.335 GB, free: 8.031 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 7.406e-05/0.4638, allocations: 17.42 kB / 1.335 GB, free: 8.016 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.464e-05/0.4638, allocations: 23.42 kB / 1.336 GB, free: 7.992 MB / 1.029 GB Notification: Performance of SimCode: time 2.9e-07/0.4638, allocations: 0 / 1.336 GB, free: 7.992 MB / 1.029 GB Notification: Performance of Templates: time 0.00623/0.4701, allocations: 1.908 MB / 1.337 GB, free: 6.109 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative -abortSlowSimulation -alarm=400 -s cvode -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Reals_Validation_Derivative.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.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.60183625901118]