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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001421/0.001421, allocations: 110.5 kB / 17.6 MB, free: 4.684 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001499/0.001499, allocations: 186.8 kB / 20.78 MB, free: 1.52 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.622/1.622, allocations: 225.6 MB / 249.4 MB, free: 3.172 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 3.084/3.084, allocations: 476.7 MB / 0.7629 GB, free: 15.17 MB / 0.6075 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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: Performance of FrontEnd - loaded program: time 0.002103/0.002103, allocations: 67.83 kB / 1.107 GB, free: 4.637 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.387/1.389, allocations: 168.7 MB / 1.272 GB, free: 7.941 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.002347/1.391, allocations: 0.6986 MB / 1.273 GB, free: 7.512 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001872/1.393, allocations: 1.076 MB / 1.274 GB, free: 6.723 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.311e-05/1.393, allocations: 0.9062 kB / 1.274 GB, free: 6.723 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 3.87e-05/1.393, allocations: 4.453 kB / 1.274 GB, free: 6.719 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 8.392e-05/1.394, allocations: 10.17 kB / 1.274 GB, free: 6.711 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003635/1.394, allocations: 52.77 kB / 1.274 GB, free: 6.68 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0001583/1.394, allocations: 73.33 kB / 1.274 GB, free: 6.645 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001124/1.394, allocations: 8.797 kB / 1.274 GB, free: 6.641 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 9.459e-05/1.394, allocations: 26.8 kB / 1.274 GB, free: 6.629 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 8.525e-05/1.394, allocations: 29.62 kB / 1.274 GB, free: 6.617 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 3.084e-05/1.394, allocations: 6.219 kB / 1.274 GB, free: 6.617 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 9.771e-05/1.394, allocations: 24.38 kB / 1.274 GB, free: 6.609 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 3.007e-05/1.394, allocations: 19.7 kB / 1.274 GB, free: 6.598 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 5.083e-05/1.395, allocations: 24.44 kB / 1.274 GB, free: 6.582 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001934/1.395, allocations: 77.89 kB / 1.274 GB, free: 6.555 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/1.395, allocations: 3.938 kB / 1.274 GB, free: 6.551 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.493e-06/1.395, allocations: 0 / 1.274 GB, free: 6.551 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 6.102e-06/1.395, allocations: 0 / 1.274 GB, free: 6.551 MB / 0.9981 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.0006224/1.395, allocations: 381 kB / 1.274 GB, free: 6.18 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.247e-05/1.395, allocations: 8.75 kB / 1.274 GB, free: 6.18 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.106e-05/1.395, allocations: 8.922 kB / 1.274 GB, free: 6.176 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.869e-05/1.396, allocations: 174.3 kB / 1.275 GB, free: 5.969 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.47e-05/1.396, allocations: 4.438 kB / 1.275 GB, free: 5.969 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.348e-05/1.396, allocations: 6.906 kB / 1.275 GB, free: 5.969 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002359/1.396, allocations: 82.3 kB / 1.275 GB, free: 5.922 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.042e-05/1.396, allocations: 0.8125 kB / 1.275 GB, free: 5.922 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.371e-05/1.396, allocations: 4.75 kB / 1.275 GB, free: 5.918 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.378e-06/1.396, allocations: 0.9062 kB / 1.275 GB, free: 5.918 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002068/1.396, allocations: 54.23 kB / 1.275 GB, free: 5.906 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004932/1.397, allocations: 315.3 kB / 1.275 GB, free: 5.605 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002146/1.397, allocations: 81.16 kB / 1.275 GB, free: 5.559 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001158/1.397, allocations: 37.48 kB / 1.275 GB, free: 5.543 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.542e-05/1.397, allocations: 1.766 kB / 1.275 GB, free: 5.543 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002829/1.397, allocations: 103.8 kB / 1.275 GB, free: 5.469 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=10): time 1.333e-06/1.397, allocations: 0 / 1.275 GB, free: 5.469 MB / 0.9981 GB Notification: Performance of matching and sorting (n=10): time 0.0005251/1.398, allocations: 172 kB / 1.275 GB, free: 5.398 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.462e-05/1.398, allocations: 57.97 kB / 1.275 GB, free: 5.332 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.14e-05/1.398, allocations: 109.5 kB / 1.276 GB, free: 5.227 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.888e-05/1.398, allocations: 32.52 kB / 1.276 GB, free: 5.191 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 3.744e-05/1.398, allocations: 86.92 kB / 1.276 GB, free: 5.102 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 3.302e-05/1.398, allocations: 30.27 kB / 1.276 GB, free: 5.078 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.188e-05/1.398, allocations: 34.95 kB / 1.276 GB, free: 5.051 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 7.82e-05/1.398, allocations: 320 kB / 1.276 GB, free: 4.734 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001304/1.398, allocations: 37.17 kB / 1.276 GB, free: 4.727 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001457/1.398, allocations: 65.38 kB / 1.276 GB, free: 4.688 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002489/1.399, allocations: 102.7 kB / 1.276 GB, free: 4.633 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/1.399, allocations: 0.6875 kB / 1.276 GB, free: 4.633 MB / 0.9981 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003379/1.399, allocations: 145.3 kB / 1.276 GB, free: 4.562 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.802e-05/1.399, allocations: 7.562 kB / 1.276 GB, free: 4.562 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.596e-06/1.399, allocations: 0.6562 kB / 1.276 GB, free: 4.562 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.239e-05/1.399, allocations: 1.969 kB / 1.276 GB, free: 4.562 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001478/1.399, allocations: 25.31 kB / 1.276 GB, free: 4.559 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.059e-05/1.399, allocations: 0.9062 kB / 1.276 GB, free: 4.559 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.904e-05/1.399, allocations: 12.78 kB / 1.276 GB, free: 4.555 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.694e-05/1.399, allocations: 4.031 kB / 1.276 GB, free: 4.555 MB / 0.9981 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.0001037/1.399, allocations: 135.9 kB / 1.277 GB, free: 4.418 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.543e-05/1.399, allocations: 6.922 kB / 1.277 GB, free: 4.414 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003768/1.4, allocations: 146 kB / 1.277 GB, free: 4.34 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/1.4, allocations: 2.031 kB / 1.277 GB, free: 4.34 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/1.4, allocations: 4 kB / 1.277 GB, free: 4.336 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/1.4, allocations: 0 / 1.277 GB, free: 4.336 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004899/1.4, allocations: 412.3 kB / 1.277 GB, free: 3.988 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/1.4, allocations: 0 / 1.277 GB, free: 3.988 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.478e-05/1.4, allocations: 18.53 kB / 1.277 GB, free: 3.98 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/1.4, allocations: 1.562 kB / 1.277 GB, free: 3.98 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.323e-05/1.4, allocations: 5.016 kB / 1.277 GB, free: 3.98 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/1.4, allocations: 0 / 1.277 GB, free: 3.98 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/1.4, allocations: 0.7188 kB / 1.277 GB, free: 3.98 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003221/1.401, allocations: 237.7 kB / 1.277 GB, free: 3.812 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.849e-05/1.401, allocations: 84.06 kB / 1.277 GB, free: 3.715 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.914e-05/1.401, allocations: 5.094 kB / 1.277 GB, free: 3.711 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001075/1.401, allocations: 10.34 kB / 1.277 GB, free: 3.711 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.02e-05/1.401, allocations: 4.469 kB / 1.277 GB, free: 3.711 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.634e-05/1.401, allocations: 12.11 kB / 1.277 GB, free: 3.703 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 3.653e-05/1.401, allocations: 83.47 kB / 1.278 GB, free: 3.629 MB / 0.9981 GB Notification: Performance of sort global known variables: time 7e-08/1.401, allocations: 4 kB / 1.278 GB, free: 3.625 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002845/1.401, allocations: 19.12 kB / 1.278 GB, free: 3.621 MB / 0.9981 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.0001861/1.401, allocations: 105.6 kB / 1.278 GB, free: 3.531 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0004631/1.402, allocations: 101.1 kB / 1.278 GB, free: 3.504 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/1.402, allocations: 0 / 1.278 GB, free: 3.504 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002095/1.402, allocations: 46.64 kB / 1.278 GB, free: 3.488 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00046/1.403, allocations: 14.58 kB / 1.278 GB, free: 3.484 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005216/1.403, allocations: 167.8 kB / 1.278 GB, free: 3.352 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001518/1.403, allocations: 0.685 MB / 1.279 GB, free: 2.656 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 5.578e-05/1.403, allocations: 8.516 kB / 1.279 GB, free: 2.656 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.435e-05/1.403, allocations: 15.92 kB / 1.279 GB, free: 2.645 MB / 0.9981 GB Notification: Performance of SimCode: time 4.5e-07/1.403, allocations: 12.78 kB / 1.279 GB, free: 2.633 MB / 0.9981 GB Notification: Performance of Templates: time 0.005902/1.409, allocations: 1.055 MB / 1.28 GB, free: 2.523 MB / 0.9981 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/jenkins/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: 10.39042057376355]