Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.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.001316/0.001316, allocations: 104.4 kB / 19.7 MB, free: 2.125 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.001458/0.001458, allocations: 213.5 kB / 22.99 MB, free: 4.945 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.475/1.475, allocations: 230.6 MB / 256.8 MB, free: 7.812 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.767/2.767, allocations: 476 MB / 0.7707 GB, free: 4.773 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.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.Discrete.Validation.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|firOrdHol.u|firOrdHol.y",fileNamePrefix="Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|firOrdHol.u|firOrdHol.y",fileNamePrefix="Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold") [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.002165/0.002165, allocations: 67.09 kB / 1.118 GB, free: 41.05 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3582/0.3604, allocations: 170 MB / 1.284 GB, free: 11.98 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.002136/0.3625, allocations: 0.665 MB / 1.284 GB, free: 11.32 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001581/0.3641, allocations: 1.094 MB / 1.285 GB, free: 10.21 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.535e-05/0.3641, allocations: 4 kB / 1.285 GB, free: 10.21 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 2.758e-05/0.3641, allocations: 3.938 kB / 1.286 GB, free: 10.21 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 5.387e-05/0.3642, allocations: 3.938 kB / 1.286 GB, free: 10.2 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002721/0.3645, allocations: 59.75 kB / 1.286 GB, free: 10.14 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001155/0.3646, allocations: 67.83 kB / 1.286 GB, free: 10.08 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 7.853e-05/0.3647, allocations: 8 kB / 1.286 GB, free: 10.07 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 6.64e-05/0.3647, allocations: 27.92 kB / 1.286 GB, free: 10.04 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 5.49e-05/0.3648, allocations: 31.89 kB / 1.286 GB, free: 10.01 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.902e-05/0.3648, allocations: 4 kB / 1.286 GB, free: 10.01 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 6.486e-05/0.3649, allocations: 31.92 kB / 1.286 GB, free: 9.977 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.552e-05/0.3649, allocations: 15.98 kB / 1.286 GB, free: 9.961 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 3.577e-05/0.3649, allocations: 19.92 kB / 1.286 GB, free: 9.941 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001579/0.3651, allocations: 83.67 kB / 1.286 GB, free: 9.859 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.3651, allocations: 0 / 1.286 GB, free: 9.859 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.683e-06/0.3651, allocations: 7.875 kB / 1.286 GB, free: 9.852 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 4.309e-06/0.3651, allocations: 0 / 1.286 GB, free: 9.852 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0006565/0.3658, allocations: 322.1 kB / 1.286 GB, free: 9.504 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.028e-05/0.3658, allocations: 8.031 kB / 1.286 GB, free: 9.496 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.177e-05/0.3659, allocations: 8.922 kB / 1.286 GB, free: 9.488 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001099/0.366, allocations: 114.5 kB / 1.286 GB, free: 9.352 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.533e-05/0.366, allocations: 4.375 kB / 1.286 GB, free: 9.348 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.067e-05/0.366, allocations: 12.31 kB / 1.286 GB, free: 9.336 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002116/0.3662, allocations: 78.2 kB / 1.286 GB, free: 9.254 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.628e-06/0.3662, allocations: 192 / 1.286 GB, free: 9.254 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.358e-05/0.3663, allocations: 7.938 kB / 1.286 GB, free: 9.246 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.982e-06/0.3663, allocations: 8 kB / 1.286 GB, free: 9.238 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002042/0.3665, allocations: 55.89 kB / 1.286 GB, free: 9.184 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004712/0.3669, allocations: 236.5 kB / 1.287 GB, free: 8.922 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001986/0.3671, allocations: 70.55 kB / 1.287 GB, free: 8.844 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001191/0.3673, allocations: 40.77 kB / 1.287 GB, free: 8.801 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.307e-05/0.3673, allocations: 8.125 kB / 1.287 GB, free: 8.793 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002408/0.3675, allocations: 95.36 kB / 1.287 GB, free: 8.688 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=10): time 1.422e-06/0.3675, allocations: 0 / 1.287 GB, free: 8.688 MB / 0.9825 GB Notification: Performance of matching and sorting (n=10): time 0.0005272/0.3681, allocations: 173.5 kB / 1.287 GB, free: 8.512 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.017e-05/0.3681, allocations: 55.41 kB / 1.287 GB, free: 8.445 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001034/0.3682, allocations: 105.8 kB / 1.287 GB, free: 8.332 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.575e-05/0.3682, allocations: 29.7 kB / 1.287 GB, free: 8.297 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 6.059e-05/0.3683, allocations: 96.33 kB / 1.287 GB, free: 8.195 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 4.454e-05/0.3683, allocations: 31.77 kB / 1.287 GB, free: 8.164 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.614e-05/0.3684, allocations: 33.7 kB / 1.287 GB, free: 8.125 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001471/0.3685, allocations: 315.3 kB / 1.288 GB, free: 7.809 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001211/0.3687, allocations: 39.91 kB / 1.288 GB, free: 7.77 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001571/0.3688, allocations: 72.86 kB / 1.288 GB, free: 7.691 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002488/0.3691, allocations: 102.5 kB / 1.288 GB, free: 7.582 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.3691, allocations: 3.938 kB / 1.288 GB, free: 7.578 MB / 0.9825 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003599/0.3694, allocations: 141.5 kB / 1.288 GB, free: 7.434 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.371e-05/0.3694, allocations: 5.719 kB / 1.288 GB, free: 7.43 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.179e-06/0.3694, allocations: 4 kB / 1.288 GB, free: 7.426 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.796e-05/0.3695, allocations: 0 / 1.288 GB, free: 7.426 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001311/0.3696, allocations: 27.92 kB / 1.288 GB, free: 7.398 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.801e-06/0.3696, allocations: 0 / 1.288 GB, free: 7.398 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.47e-05/0.3697, allocations: 16.05 kB / 1.288 GB, free: 7.383 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.205e-05/0.3697, allocations: 7.938 kB / 1.288 GB, free: 7.375 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 12 (firOrdHol.firstTrigger,$PRE.firOrdHol.firstTrigger,firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.c,$PRE.firOrdHol.c,firOrdHol.pre_uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.uSample,$PRE.firOrdHol.uSample,firOrdHol.tSample,$PRE.firOrdHol.tSample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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.0001217/0.3698, allocations: 129.7 kB / 1.288 GB, free: 7.238 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.695e-05/0.3698, allocations: 7.953 kB / 1.288 GB, free: 7.23 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003644/0.3702, allocations: 141.9 kB / 1.288 GB, free: 7.082 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.519e-06/0.3702, allocations: 4 kB / 1.288 GB, free: 7.078 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.3702, allocations: 0 / 1.288 GB, free: 7.078 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.3702, allocations: 0 / 1.288 GB, free: 7.078 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005372/0.3707, allocations: 354 kB / 1.289 GB, free: 6.695 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/0.3707, allocations: 4 kB / 1.289 GB, free: 6.691 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.677e-05/0.3708, allocations: 7.984 kB / 1.289 GB, free: 6.684 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.3708, allocations: 4 kB / 1.289 GB, free: 6.68 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.203e-05/0.3708, allocations: 4 kB / 1.289 GB, free: 6.676 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.512e-06/0.3708, allocations: 256 / 1.289 GB, free: 6.676 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.989e-06/0.3708, allocations: 4 kB / 1.289 GB, free: 6.672 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003796/0.3712, allocations: 243.5 kB / 1.289 GB, free: 6.418 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.075e-05/0.3712, allocations: 7.953 kB / 1.289 GB, free: 6.41 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.884e-05/0.3712, allocations: 96 / 1.289 GB, free: 6.41 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001059/0.3713, allocations: 15.92 kB / 1.289 GB, free: 6.395 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.367e-05/0.3714, allocations: 11.98 kB / 1.289 GB, free: 6.383 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.344e-06/0.3714, allocations: 0 / 1.289 GB, free: 6.383 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 6.1e-05/0.3715, allocations: 87.27 kB / 1.289 GB, free: 6.297 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8e-08/0.3715, allocations: 4 kB / 1.289 GB, free: 6.293 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002445/0.3717, allocations: 12 kB / 1.289 GB, free: 6.281 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 (firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.firstTrigger,firOrdHol.tSample,firOrdHol.uSample,firOrdHol.pre_uSample,firOrdHol.c) * Number of discrete states: 2 (firOrdHol.uSample,firOrdHol.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0001411/0.3718, allocations: 115.7 kB / 1.289 GB, free: 6.16 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003202/0.3722, allocations: 99.75 kB / 1.289 GB, free: 6.062 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.3722, allocations: 0 / 1.289 GB, free: 6.062 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001334/0.3723, allocations: 39.97 kB / 1.289 GB, free: 6.023 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000254/0.3726, allocations: 17.53 kB / 1.289 GB, free: 6.008 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003982/0.373, allocations: 192.5 kB / 1.29 GB, free: 5.785 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.008e-05/0.373, allocations: 71.33 kB / 1.29 GB, free: 5.695 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.103e-05/0.3731, allocations: 11.44 kB / 1.29 GB, free: 5.684 MB / 0.9825 GB Notification: Performance of SimCode: time 3.6e-07/0.3731, allocations: 3.938 kB / 1.29 GB, free: 5.68 MB / 0.9825 GB Notification: Performance of Templates: time 0.002903/0.376, allocations: 1.113 MB / 1.291 GB, free: 4.574 MB / 0.9825 GB " [Timeout remaining time 299] make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.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.11732957419008]