Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001599/0.001599, allocations: 100.3 kB / 19.7 MB, free: 2.012 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.001792/0.001792, allocations: 219.3 kB / 23 MB, free: 4.914 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.491/1.491, 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 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.265/3.265, allocations: 0.5107 GB / 0.8166 GB, free: 17.8 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 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.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_latest_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_latest_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.002073/0.002073, allocations: 73.8 kB / 1.187 GB, free: 13.4 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.356/0.3581, allocations: 181.9 MB / 1.365 GB, free: 13.51 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative): time 0.002495/0.3606, allocations: 1.002 MB / 1.366 GB, free: 12.5 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001594/0.3621, allocations: 1.031 MB / 1.367 GB, free: 11.46 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001191/0.3623, allocations: 0 / 1.367 GB, free: 11.46 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0001475/0.3624, allocations: 19.73 kB / 1.367 GB, free: 11.44 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 6.83e-05/0.3625, allocations: 23.78 kB / 1.367 GB, free: 11.42 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.000369/0.3629, allocations: 79.83 kB / 1.367 GB, free: 11.34 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0002355/0.3631, allocations: 172.1 kB / 1.367 GB, free: 11.17 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000196/0.3633, allocations: 60.41 kB / 1.367 GB, free: 11.11 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001178/0.3634, allocations: 75.64 kB / 1.367 GB, free: 11.03 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001372/0.3635, allocations: 71.67 kB / 1.367 GB, free: 10.96 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 3.33e-05/0.3636, allocations: 16 kB / 1.367 GB, free: 10.95 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 7.522e-05/0.3636, allocations: 23.94 kB / 1.367 GB, free: 10.92 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 4.86e-05/0.3637, allocations: 39.89 kB / 1.367 GB, free: 10.88 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 7.352e-05/0.3638, allocations: 63.66 kB / 1.367 GB, free: 10.82 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0003037/0.3641, allocations: 191.1 kB / 1.367 GB, free: 10.63 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.3641, allocations: 4 kB / 1.367 GB, free: 10.63 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.894e-06/0.3641, allocations: 0 / 1.367 GB, free: 10.63 MB / 1.061 GB Notification: Performance of Transformations before backend: time 7.163e-06/0.3641, allocations: 0 / 1.367 GB, free: 10.63 MB / 1.061 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.0009043/0.365, allocations: 423.4 kB / 1.368 GB, free: 10.18 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.75e-05/0.365, allocations: 16.02 kB / 1.368 GB, free: 10.16 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001078/0.3651, allocations: 16.84 kB / 1.368 GB, free: 10.15 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003528/0.3655, allocations: 168.7 kB / 1.368 GB, free: 9.961 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.605e-05/0.3655, allocations: 8.375 kB / 1.368 GB, free: 9.953 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.154e-05/0.3656, allocations: 20.38 kB / 1.368 GB, free: 9.934 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003744/0.3659, allocations: 179.3 kB / 1.368 GB, free: 9.746 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.596e-05/0.366, allocations: 4 kB / 1.368 GB, free: 9.742 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.039e-05/0.366, allocations: 4 kB / 1.368 GB, free: 9.738 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.484e-06/0.366, allocations: 4 kB / 1.368 GB, free: 9.734 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002873/0.3663, allocations: 107.9 kB / 1.368 GB, free: 9.629 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001091/0.3674, allocations: 439.9 kB / 1.369 GB, free: 9.168 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000461/0.3678, allocations: 130.7 kB / 1.369 GB, free: 9.031 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001834/0.368, allocations: 88.73 kB / 1.369 GB, free: 8.941 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.742e-05/0.368, allocations: 0 / 1.369 GB, free: 8.941 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003286/0.3684, allocations: 152.9 kB / 1.369 GB, free: 8.773 MB / 1.061 GB Notification: Performance of pre-optimization done (n=19): time 1.492e-06/0.3684, allocations: 0 / 1.369 GB, free: 8.773 MB / 1.061 GB Notification: Performance of matching and sorting (n=19): time 0.0006359/0.369, allocations: 227.7 kB / 1.369 GB, free: 8.547 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.18e-05/0.369, allocations: 51.41 kB / 1.369 GB, free: 8.484 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001431/0.3692, allocations: 138.4 kB / 1.37 GB, free: 8.34 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 3.227e-05/0.3692, allocations: 37.64 kB / 1.37 GB, free: 8.297 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 9.618e-05/0.3693, allocations: 128.4 kB / 1.37 GB, free: 8.168 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 6.395e-05/0.3694, allocations: 63.44 kB / 1.37 GB, free: 8.105 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.423e-05/0.3695, allocations: 41.7 kB / 1.37 GB, free: 8.059 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001557/0.3696, allocations: 326.8 kB / 1.37 GB, free: 7.73 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002113/0.3698, allocations: 67.95 kB / 1.37 GB, free: 7.664 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002203/0.37, allocations: 87.77 kB / 1.37 GB, free: 7.574 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003621/0.3704, allocations: 153.3 kB / 1.37 GB, free: 7.422 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.3704, allocations: 0 / 1.37 GB, free: 7.422 MB / 1.061 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005158/0.3709, allocations: 209.4 kB / 1.371 GB, free: 7.211 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.777e-05/0.3709, allocations: 8 kB / 1.371 GB, free: 7.203 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.3709, allocations: 0 / 1.371 GB, free: 7.203 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.43e-05/0.371, allocations: 0 / 1.371 GB, free: 7.203 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002224/0.3712, allocations: 47.91 kB / 1.371 GB, free: 7.156 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.442e-06/0.3712, allocations: 0 / 1.371 GB, free: 7.156 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001404/0.3713, allocations: 23.88 kB / 1.371 GB, free: 7.133 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.619e-05/0.3713, allocations: 8 kB / 1.371 GB, free: 7.125 MB / 1.061 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.0001211/0.3715, allocations: 129.8 kB / 1.371 GB, free: 6.988 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.534e-05/0.3715, allocations: 15.89 kB / 1.371 GB, free: 6.973 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004371/0.3719, allocations: 192.5 kB / 1.371 GB, free: 6.777 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.511e-06/0.3719, allocations: 4 kB / 1.371 GB, free: 6.773 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.598e-06/0.3719, allocations: 0 / 1.371 GB, free: 6.773 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.961e-06/0.3719, allocations: 3.984 kB / 1.371 GB, free: 6.77 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008535/0.3728, allocations: 0.5028 MB / 1.372 GB, free: 6.211 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.04e-06/0.3728, allocations: 4 kB / 1.372 GB, free: 6.207 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001824/0.373, allocations: 35.91 kB / 1.372 GB, free: 6.172 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.181e-06/0.373, allocations: 4 kB / 1.372 GB, free: 6.168 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.089e-05/0.373, allocations: 11.94 kB / 1.372 GB, free: 6.156 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.987e-06/0.373, allocations: 4 kB / 1.372 GB, free: 6.152 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.373, allocations: 8.188 kB / 1.372 GB, free: 6.145 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007514/0.3738, allocations: 376.4 kB / 1.372 GB, free: 5.742 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 2.951e-05/0.3738, allocations: 27.77 kB / 1.372 GB, free: 5.715 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.605e-05/0.3738, allocations: 4 kB / 1.372 GB, free: 5.711 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001568/0.374, allocations: 16.03 kB / 1.372 GB, free: 5.695 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.881e-05/0.374, allocations: 24.05 kB / 1.372 GB, free: 5.672 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.606e-05/0.3741, allocations: 8 kB / 1.372 GB, free: 5.664 MB / 1.061 GB Notification: Performance of sorting global known variables: time 9.059e-05/0.3742, allocations: 117.1 kB / 1.372 GB, free: 5.551 MB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/0.3742, allocations: 0 / 1.372 GB, free: 5.551 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002846/0.3744, allocations: 35.95 kB / 1.372 GB, free: 5.516 MB / 1.061 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.0001451/0.3746, allocations: 111.1 kB / 1.372 GB, free: 5.398 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.000482/0.3751, allocations: 155.8 kB / 1.372 GB, free: 5.246 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.3751, allocations: 0 / 1.372 GB, free: 5.246 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001951/0.3753, allocations: 83.95 kB / 1.372 GB, free: 5.164 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000354/0.3756, allocations: 28.27 kB / 1.373 GB, free: 5.141 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007444/0.3764, allocations: 415 kB / 1.373 GB, free: 4.688 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001253/0.3765, allocations: 116.6 kB / 1.373 GB, free: 4.547 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.849e-05/0.3766, allocations: 19.44 kB / 1.373 GB, free: 4.527 MB / 1.061 GB Notification: Performance of SimCode: time 3.81e-07/0.3766, allocations: 0 / 1.373 GB, free: 4.527 MB / 1.061 GB Notification: Performance of Templates: time 0.00408/0.3806, allocations: 1.965 MB / 1.375 GB, free: 2.562 MB / 1.061 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_Derivative.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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: 11.24916025903076]