Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.7 kB / 17.08 MB, free: 5.984 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.001535/0.001535, allocations: 195.6 kB / 20.03 MB, free: 3.059 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.541/1.541, allocations: 222.9 MB / 245.7 MB, free: 4.23 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.019/3.019, allocations: 489.3 MB / 0.7687 GB, free: 3.812 MB / 0.6075 GB " [Timeout remaining time 176] Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_latest_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_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.003115/0.003115, allocations: 59.91 kB / 1.103 GB, free: 0.832 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.1/1.103, allocations: 163.8 MB / 1.263 GB, free: 7.988 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.001822/1.105, allocations: 0.6853 MB / 1.263 GB, free: 7.57 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.00139/1.107, allocations: 1.068 MB / 1.264 GB, free: 6.785 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.94e-05/1.107, allocations: 1.344 kB / 1.264 GB, free: 6.785 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 2.786e-05/1.107, allocations: 5.375 kB / 1.264 GB, free: 6.781 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 6.569e-05/1.107, allocations: 9.672 kB / 1.264 GB, free: 6.773 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.000291/1.107, allocations: 52.61 kB / 1.264 GB, free: 6.742 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0001314/1.107, allocations: 69.28 kB / 1.264 GB, free: 6.711 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001017/1.107, allocations: 11.52 kB / 1.264 GB, free: 6.707 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 7.757e-05/1.108, allocations: 30.39 kB / 1.264 GB, free: 6.691 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 7.237e-05/1.108, allocations: 37.72 kB / 1.264 GB, free: 6.672 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 2.162e-05/1.108, allocations: 6.438 kB / 1.264 GB, free: 6.672 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 7.747e-05/1.108, allocations: 15.66 kB / 1.265 GB, free: 6.672 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 2.726e-05/1.108, allocations: 18.25 kB / 1.265 GB, free: 6.66 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 5.158e-05/1.108, allocations: 33.98 kB / 1.265 GB, free: 6.637 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001692/1.108, allocations: 73.55 kB / 1.265 GB, free: 6.613 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 6.021e-06/1.108, allocations: 0 / 1.265 GB, free: 6.613 MB / 0.9981 GB Notification: Performance of FrontEnd: time 3.878e-06/1.108, allocations: 0.9062 kB / 1.265 GB, free: 6.613 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 6.072e-06/1.108, allocations: 3.938 kB / 1.265 GB, free: 6.609 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.0006241/1.109, allocations: 385 kB / 1.265 GB, free: 6.234 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.014e-05/1.109, allocations: 9.922 kB / 1.265 GB, free: 6.234 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.313e-05/1.109, allocations: 8.547 kB / 1.265 GB, free: 6.23 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.781e-05/1.109, allocations: 171.7 kB / 1.265 GB, free: 6.027 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.43e-05/1.109, allocations: 8.438 kB / 1.265 GB, free: 6.023 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.256e-05/1.109, allocations: 5.625 kB / 1.265 GB, free: 6.023 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002309/1.109, allocations: 78.31 kB / 1.265 GB, free: 5.98 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.818e-06/1.109, allocations: 192 / 1.265 GB, free: 5.98 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.487e-05/1.109, allocations: 9.359 kB / 1.265 GB, free: 5.973 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.249e-06/1.109, allocations: 0.875 kB / 1.265 GB, free: 5.973 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002231/1.109, allocations: 58.03 kB / 1.265 GB, free: 5.957 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004838/1.11, allocations: 311.8 kB / 1.266 GB, free: 5.66 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002095/1.11, allocations: 81.05 kB / 1.266 GB, free: 5.617 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001405/1.11, allocations: 44.36 kB / 1.266 GB, free: 5.598 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.249e-05/1.11, allocations: 6.375 kB / 1.266 GB, free: 5.594 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002296/1.111, allocations: 90.52 kB / 1.266 GB, free: 5.531 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=10): time 2.395e-06/1.111, allocations: 112 / 1.266 GB, free: 5.531 MB / 0.9981 GB Notification: Performance of matching and sorting (n=10): time 0.0005435/1.111, allocations: 176.2 kB / 1.266 GB, free: 5.457 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.492e-05/1.111, allocations: 59.3 kB / 1.266 GB, free: 5.391 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.489e-05/1.111, allocations: 114 kB / 1.266 GB, free: 5.281 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.725e-05/1.111, allocations: 32.39 kB / 1.266 GB, free: 5.246 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 3.32e-05/1.111, allocations: 83.5 kB / 1.266 GB, free: 5.16 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 2.811e-05/1.111, allocations: 34 kB / 1.266 GB, free: 5.133 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.458e-05/1.111, allocations: 34.75 kB / 1.266 GB, free: 5.105 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 5.569e-05/1.111, allocations: 319.6 kB / 1.267 GB, free: 4.789 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001327/1.112, allocations: 36.19 kB / 1.267 GB, free: 4.781 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001493/1.112, allocations: 64.97 kB / 1.267 GB, free: 4.742 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002506/1.112, allocations: 102.7 kB / 1.267 GB, free: 4.688 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/1.112, allocations: 0 / 1.267 GB, free: 4.688 MB / 0.9981 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003372/1.112, allocations: 149.2 kB / 1.267 GB, free: 4.613 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.75e-05/1.112, allocations: 7.375 kB / 1.267 GB, free: 4.613 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.458e-06/1.112, allocations: 1.062 kB / 1.267 GB, free: 4.613 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.708e-05/1.112, allocations: 1.812 kB / 1.267 GB, free: 4.613 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001381/1.113, allocations: 19.45 kB / 1.267 GB, free: 4.613 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.993e-06/1.113, allocations: 5.906 kB / 1.267 GB, free: 4.609 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.274e-05/1.113, allocations: 11.98 kB / 1.267 GB, free: 4.605 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.422e-05/1.113, allocations: 7.875 kB / 1.267 GB, free: 4.602 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 7.214e-05/1.113, allocations: 124.8 kB / 1.267 GB, free: 4.477 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.544e-05/1.113, allocations: 11.45 kB / 1.267 GB, free: 4.469 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003731/1.113, allocations: 144.4 kB / 1.267 GB, free: 4.395 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/1.113, allocations: 0.9062 kB / 1.267 GB, free: 4.395 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/1.113, allocations: 0 / 1.267 GB, free: 4.395 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/1.113, allocations: 1.688 kB / 1.267 GB, free: 4.395 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000517/1.114, allocations: 412.3 kB / 1.268 GB, free: 4.047 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.955e-06/1.114, allocations: 4.5 kB / 1.268 GB, free: 4.043 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.187e-05/1.114, allocations: 10.42 kB / 1.268 GB, free: 4.043 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.287e-06/1.114, allocations: 1.469 kB / 1.268 GB, free: 4.043 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.605e-05/1.114, allocations: 5.875 kB / 1.268 GB, free: 4.039 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/1.114, allocations: 5.484 kB / 1.268 GB, free: 4.035 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/1.114, allocations: 0.6875 kB / 1.268 GB, free: 4.035 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003742/1.114, allocations: 230.4 kB / 1.268 GB, free: 3.875 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.789e-05/1.114, allocations: 83.95 kB / 1.268 GB, free: 3.777 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.28e-05/1.114, allocations: 10.45 kB / 1.268 GB, free: 3.77 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001105/1.114, allocations: 8.406 kB / 1.268 GB, free: 3.77 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.935e-05/1.114, allocations: 6.719 kB / 1.268 GB, free: 3.77 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.272e-05/1.114, allocations: 7.141 kB / 1.268 GB, free: 3.766 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 3.146e-05/1.114, allocations: 94.25 kB / 1.268 GB, free: 3.68 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1e-07/1.114, allocations: 0 / 1.268 GB, free: 3.68 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002581/1.115, allocations: 20.06 kB / 1.268 GB, free: 3.676 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.0001405/1.115, allocations: 112.8 kB / 1.268 GB, free: 3.582 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0003505/1.115, allocations: 106.4 kB / 1.268 GB, free: 3.551 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.003e-06/1.115, allocations: 0 / 1.268 GB, free: 3.551 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001544/1.115, allocations: 55.27 kB / 1.268 GB, free: 3.531 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002667/1.116, allocations: 11.02 kB / 1.268 GB, free: 3.527 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003686/1.116, allocations: 191.5 kB / 1.269 GB, free: 3.359 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001257/1.116, allocations: 0.6855 MB / 1.269 GB, free: 2.664 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.619e-05/1.116, allocations: 12.56 kB / 1.269 GB, free: 2.656 MB / 0.9981 GB Notification: Performance of SimCode: time 2.31e-07/1.116, allocations: 0.75 kB / 1.269 GB, free: 2.656 MB / 0.9981 GB Notification: Performance of Templates: time 0.003425/1.12, allocations: 1.104 MB / 1.27 GB, free: 2.566 MB / 0.9981 GB " [Timeout remaining time 299] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_latest_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.72629274893552]