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.0008041/0.0008041, allocations: 80.44 kB / 19.93 MB, free: 4.629 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.000779/0.000779, allocations: 173.9 kB / 23.21 MB, free: 1.348 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.8741/0.8741, allocations: 177.1 MB / 203.5 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.735/1.735, allocations: 377.8 MB / 0.6228 GB, free: 8.684 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-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: Performance of FrontEnd - loaded program: time 3.867e-06/3.867e-06, allocations: 0 / 0.9823 GB, free: 2.035 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.042e-05/3.429e-05, allocations: 6.281 kB / 0.9823 GB, free: 2.027 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative): time 0.002601/0.002636, allocations: 1.013 MB / 0.9833 GB, free: 1.016 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.00177/0.004405, allocations: 1.022 MB / 0.9843 GB, free: 15.98 MB / 0.948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001387/0.004544, allocations: 7.844 kB / 0.9843 GB, free: 15.97 MB / 0.948 GB Notification: Performance of NFTyping.typeComponents: time 0.0001584/0.004702, allocations: 19.73 kB / 0.9843 GB, free: 15.95 MB / 0.948 GB Notification: Performance of NFTyping.typeBindings: time 8.831e-05/0.004791, allocations: 27.73 kB / 0.9843 GB, free: 15.93 MB / 0.948 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003922/0.005183, allocations: 71.78 kB / 0.9844 GB, free: 15.86 MB / 0.948 GB Notification: Performance of NFFlatten.flatten: time 0.0002307/0.005413, allocations: 180.1 kB / 0.9846 GB, free: 15.68 MB / 0.948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001945/0.005608, allocations: 56.52 kB / 0.9846 GB, free: 15.62 MB / 0.948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001815/0.005789, allocations: 103.8 kB / 0.9847 GB, free: 15.52 MB / 0.948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001086/0.005898, allocations: 59.78 kB / 0.9848 GB, free: 15.46 MB / 0.948 GB Notification: Performance of NFPackage.collectConstants: time 3.751e-05/0.005936, allocations: 16 kB / 0.9848 GB, free: 15.45 MB / 0.948 GB Notification: Performance of NFFlatten.collectFunctions: time 6.808e-05/0.006004, allocations: 27.98 kB / 0.9848 GB, free: 15.42 MB / 0.948 GB Notification: Performance of NFScalarize.scalarize: time 4.262e-05/0.006046, allocations: 35.84 kB / 0.9848 GB, free: 15.38 MB / 0.948 GB Notification: Performance of NFVerifyModel.verify: time 5.979e-05/0.006106, allocations: 47.89 kB / 0.9849 GB, free: 15.34 MB / 0.948 GB Notification: Performance of NFConvertDAE.convert: time 0.0003139/0.00642, allocations: 203.2 kB / 0.9851 GB, free: 15.14 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.006425, allocations: 4 kB / 0.9851 GB, free: 15.13 MB / 0.948 GB Notification: Performance of FrontEnd: time 2.545e-06/0.006427, allocations: 0 / 0.9851 GB, free: 15.13 MB / 0.948 GB Notification: Performance of Transformations before backend: time 6.593e-06/0.006434, allocations: 0 / 0.9851 GB, free: 15.13 MB / 0.948 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.0008807/0.007314, allocations: 434.2 kB / 0.9855 GB, free: 14.67 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 4.667e-05/0.007361, allocations: 8.031 kB / 0.9855 GB, free: 14.66 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001345/0.007496, allocations: 24.83 kB / 0.9855 GB, free: 14.64 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003611/0.007857, allocations: 163.7 kB / 0.9857 GB, free: 14.46 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.499e-05/0.007882, allocations: 12.38 kB / 0.9857 GB, free: 14.45 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.747e-05/0.007919, allocations: 16.38 kB / 0.9857 GB, free: 14.43 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003665/0.008286, allocations: 172.5 kB / 0.9859 GB, free: 14.25 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.194e-05/0.008298, allocations: 192 / 0.9859 GB, free: 14.25 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.668e-05/0.008324, allocations: 16.12 kB / 0.9859 GB, free: 14.23 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.116e-06/0.008332, allocations: 8 kB / 0.9859 GB, free: 14.23 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002892/0.008622, allocations: 112.6 kB / 0.986 GB, free: 14.12 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001051/0.009672, allocations: 439.9 kB / 0.9864 GB, free: 13.66 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004047/0.01008, allocations: 134.7 kB / 0.9866 GB, free: 13.52 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001699/0.01025, allocations: 76.86 kB / 0.9866 GB, free: 13.44 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 3.607e-05/0.01028, allocations: 8 kB / 0.9866 GB, free: 13.43 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002398/0.01052, allocations: 144.9 kB / 0.9868 GB, free: 13.27 MB / 0.948 GB Notification: Performance of pre-optimization done (n=19): time 2.635e-06/0.01053, allocations: 0 / 0.9868 GB, free: 13.27 MB / 0.948 GB Notification: Performance of matching and sorting (n=19): time 0.0005949/0.01112, allocations: 227.5 kB / 0.987 GB, free: 13.04 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.015e-05/0.01116, allocations: 63.39 kB / 0.987 GB, free: 12.97 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001166/0.01128, allocations: 138.4 kB / 0.9872 GB, free: 12.82 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 2.547e-05/0.0113, allocations: 29.7 kB / 0.9872 GB, free: 12.79 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 6.76e-05/0.01137, allocations: 116.5 kB / 0.9873 GB, free: 12.67 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 4.811e-05/0.01142, allocations: 75.41 kB / 0.9874 GB, free: 12.59 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.303e-05/0.01147, allocations: 37.7 kB / 0.9874 GB, free: 12.55 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 0.0001592/0.01163, allocations: 326.8 kB / 0.9877 GB, free: 12.22 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003013/0.01193, allocations: 67.95 kB / 0.9878 GB, free: 12.16 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002397/0.01217, allocations: 92.11 kB / 0.9879 GB, free: 12.06 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003992/0.01257, allocations: 144.3 kB / 0.988 GB, free: 11.92 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.01257, allocations: 0 / 0.988 GB, free: 11.92 MB / 0.948 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003625/0.01294, allocations: 224.4 kB / 0.9882 GB, free: 11.7 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.842e-05/0.01296, allocations: 4 kB / 0.9882 GB, free: 11.69 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.715e-06/0.01296, allocations: 0 / 0.9882 GB, free: 11.69 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.76e-05/0.01298, allocations: 4 kB / 0.9883 GB, free: 11.69 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001198/0.0131, allocations: 35.92 kB / 0.9883 GB, free: 11.65 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.798e-06/0.01311, allocations: 4 kB / 0.9883 GB, free: 11.65 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.068e-05/0.01318, allocations: 23.92 kB / 0.9883 GB, free: 11.62 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.276e-05/0.01319, allocations: 4 kB / 0.9883 GB, free: 11.62 MB / 0.948 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 9.652e-05/0.01329, allocations: 133.7 kB / 0.9884 GB, free: 11.48 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.85e-05/0.01331, allocations: 19.91 kB / 0.9885 GB, free: 11.46 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003049/0.01361, allocations: 190.6 kB / 0.9886 GB, free: 11.27 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.927e-06/0.01362, allocations: 0 / 0.9886 GB, free: 11.27 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.01362, allocations: 4 kB / 0.9886 GB, free: 11.27 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.01363, allocations: 0 / 0.9886 GB, free: 11.27 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005957/0.01422, allocations: 0.5106 MB / 0.9891 GB, free: 10.7 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.01423, allocations: 0 / 0.9891 GB, free: 10.7 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001049/0.01433, allocations: 39.91 kB / 0.9892 GB, free: 10.66 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.218e-06/0.01434, allocations: 4 kB / 0.9892 GB, free: 10.66 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.325e-05/0.01435, allocations: 7.938 kB / 0.9892 GB, free: 10.65 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.833e-06/0.01436, allocations: 4 kB / 0.9892 GB, free: 10.64 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.749e-06/0.01436, allocations: 7.938 kB / 0.9892 GB, free: 10.64 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003891/0.01475, allocations: 376.8 kB / 0.9896 GB, free: 10.24 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 2.241e-05/0.01477, allocations: 19.92 kB / 0.9896 GB, free: 10.22 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.86e-05/0.01479, allocations: 8 kB / 0.9896 GB, free: 10.21 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.007e-05/0.01487, allocations: 23.92 kB / 0.9896 GB, free: 10.19 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.425e-05/0.01492, allocations: 23.97 kB / 0.9896 GB, free: 10.16 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.105e-05/0.01494, allocations: 7.984 kB / 0.9896 GB, free: 10.16 MB / 0.948 GB Notification: Performance of sorting global known variables: time 5.03e-05/0.01499, allocations: 103.3 kB / 0.9897 GB, free: 10.05 MB / 0.948 GB Notification: Performance of sort global known variables: time 8e-08/0.01499, allocations: 8 kB / 0.9898 GB, free: 10.05 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0001945/0.01518, allocations: 39.89 kB / 0.9898 GB, free: 10.01 MB / 0.948 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.0001309/0.01531, allocations: 107.7 kB / 0.9899 GB, free: 9.895 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0002796/0.01559, allocations: 151.9 kB / 0.99 GB, free: 9.746 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.01559, allocations: 0 / 0.99 GB, free: 9.746 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.0001127/0.01571, allocations: 80.03 kB / 0.9901 GB, free: 9.668 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002566/0.01596, allocations: 31.91 kB / 0.9901 GB, free: 9.637 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005262/0.01649, allocations: 385.2 kB / 0.9905 GB, free: 9.207 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.46e-05/0.01656, allocations: 116.5 kB / 0.9906 GB, free: 9.074 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.087e-05/0.01661, allocations: 24.48 kB / 0.9906 GB, free: 9.051 MB / 0.948 GB Notification: Performance of SimCode: time 4.1e-07/0.01661, allocations: 0 / 0.9906 GB, free: 9.051 MB / 0.948 GB Notification: Performance of Templates: time 0.002591/0.01921, allocations: 1.98 MB / 0.9926 GB, free: 7.074 MB / 0.948 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 -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/jenkins/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: 6.684016289189458]