Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.0009563/0.0009563, allocations: 80.8 kB / 20.75 MB, free: 3.742 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.0009392/0.0009392, allocations: 165 kB / 24.17 MB, free: 332 kB / 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.9997/0.9997, allocations: 177.2 MB / 204.6 MB, free: 5.48 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo): time 2.043/2.043, allocations: 377.9 MB / 0.624 GB, free: 8.367 MB / 0.5886 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-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.Discrete.Validation.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|firOrdHol.u|firOrdHol.y",fileNamePrefix="Buildings_12_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_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.925e-06/2.925e-06, allocations: 0 / 0.76 GB, free: 6.605 MB / 0.7136 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.082e-05/3.374e-05, allocations: 5.266 kB / 0.76 GB, free: 6.602 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.001625/0.001659, allocations: 0.7443 MB / 0.7608 GB, free: 5.879 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.001239/0.002898, allocations: 1.138 MB / 0.7619 GB, free: 4.73 MB / 0.7136 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.672e-05/0.002944, allocations: 3.938 kB / 0.7619 GB, free: 4.727 MB / 0.7136 GB Notification: Performance of NFTyping.typeComponents: time 2.74e-05/0.002972, allocations: 4.812 kB / 0.7619 GB, free: 4.723 MB / 0.7136 GB Notification: Performance of NFTyping.typeBindings: time 7.224e-05/0.003044, allocations: 10.72 kB / 0.7619 GB, free: 4.715 MB / 0.7136 GB Notification: Performance of NFTyping.typeClassSections: time 0.000236/0.00328, allocations: 53.03 kB / 0.7619 GB, free: 4.664 MB / 0.7136 GB Notification: Performance of NFFlatten.flatten: time 9.446e-05/0.003375, allocations: 68.92 kB / 0.762 GB, free: 4.605 MB / 0.7136 GB Notification: Performance of NFFlatten.resolveConnections: time 6.835e-05/0.003443, allocations: 13.47 kB / 0.762 GB, free: 4.594 MB / 0.7136 GB Notification: Performance of NFEvalConstants.evaluate: time 8.427e-05/0.003527, allocations: 42.69 kB / 0.7621 GB, free: 4.555 MB / 0.7136 GB Notification: Performance of NFSimplifyModel.simplify: time 4.661e-05/0.003574, allocations: 25.83 kB / 0.7621 GB, free: 4.531 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 1.495e-05/0.003589, allocations: 9.25 kB / 0.7621 GB, free: 4.523 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 6.878e-05/0.003658, allocations: 23.97 kB / 0.7621 GB, free: 4.5 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 1.816e-05/0.003676, allocations: 15.92 kB / 0.7621 GB, free: 4.484 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 2.617e-05/0.003702, allocations: 23.97 kB / 0.7622 GB, free: 4.461 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 0.0001105/0.003812, allocations: 64.98 kB / 0.7622 GB, free: 4.398 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 2.184e-06/0.003815, allocations: 0 / 0.7622 GB, free: 4.398 MB / 0.7136 GB Notification: Performance of FrontEnd: time 7.41e-07/0.003815, allocations: 0 / 0.7622 GB, free: 4.398 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 3.256e-06/0.003819, allocations: 0.9062 kB / 0.7622 GB, free: 4.398 MB / 0.7136 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.0003904/0.004209, allocations: 277.5 kB / 0.7625 GB, free: 4.102 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.105e-05/0.00425, allocations: 17.73 kB / 0.7625 GB, free: 4.086 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.935e-05/0.004349, allocations: 8.875 kB / 0.7625 GB, free: 4.078 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.108e-05/0.00444, allocations: 113.7 kB / 0.7626 GB, free: 3.941 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.956e-05/0.00446, allocations: 4.375 kB / 0.7626 GB, free: 3.938 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.206e-05/0.004472, allocations: 12.31 kB / 0.7626 GB, free: 3.926 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000128/0.0046, allocations: 75.58 kB / 0.7627 GB, free: 3.844 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.815e-06/0.004608, allocations: 0.75 kB / 0.7627 GB, free: 3.844 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.025e-06/0.004616, allocations: 384 / 0.7627 GB, free: 3.844 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.072e-06/0.004622, allocations: 1.125 kB / 0.7627 GB, free: 3.844 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.375e-05/0.004656, allocations: 19.92 kB / 0.7627 GB, free: 3.824 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002792/0.004935, allocations: 181 kB / 0.7629 GB, free: 3.633 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 7.031e-05/0.005005, allocations: 47.28 kB / 0.7629 GB, free: 3.578 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.11e-05/0.005026, allocations: 19.03 kB / 0.763 GB, free: 3.559 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.45e-05/0.005041, allocations: 4 kB / 0.763 GB, free: 3.555 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.811e-05/0.005119, allocations: 71.31 kB / 0.763 GB, free: 3.473 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=10): time 2.785e-06/0.005122, allocations: 4.172 kB / 0.763 GB, free: 3.469 MB / 0.7136 GB Notification: Performance of matching and sorting (n=10): time 0.0001399/0.005262, allocations: 77.55 kB / 0.7631 GB, free: 3.387 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.465e-05/0.005296, allocations: 61.06 kB / 0.7632 GB, free: 3.316 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.767e-05/0.005354, allocations: 114.7 kB / 0.7633 GB, free: 3.191 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.296e-05/0.005367, allocations: 25.81 kB / 0.7633 GB, free: 3.16 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 3.409e-05/0.005401, allocations: 96.3 kB / 0.7634 GB, free: 3.059 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 2.275e-05/0.005424, allocations: 23.78 kB / 0.7634 GB, free: 3.035 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.812e-05/0.005462, allocations: 36.56 kB / 0.7635 GB, free: 2.996 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 7.458e-05/0.005536, allocations: 322.8 kB / 0.7638 GB, free: 2.672 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.779e-05/0.005554, allocations: 8 kB / 0.7638 GB, free: 2.664 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.211e-05/0.005586, allocations: 34.56 kB / 0.7638 GB, free: 2.621 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.63e-05/0.005643, allocations: 54.47 kB / 0.7639 GB, free: 2.559 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.005645, allocations: 256 / 0.7639 GB, free: 2.559 MB / 0.7136 GB Notification: Performance of matching and sorting (n=16) (initialization): time 8.761e-05/0.005732, allocations: 80.36 kB / 0.7639 GB, free: 2.477 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.183e-05/0.005744, allocations: 8 kB / 0.7639 GB, free: 2.469 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.005749, allocations: 4 kB / 0.7639 GB, free: 2.465 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.506e-05/0.005764, allocations: 7.922 kB / 0.764 GB, free: 2.457 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.163e-05/0.005846, allocations: 20 kB / 0.764 GB, free: 2.438 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.529e-06/0.00585, allocations: 7.984 kB / 0.764 GB, free: 2.43 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.759e-05/0.005878, allocations: 12.73 kB / 0.764 GB, free: 2.418 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.124e-06/0.005885, allocations: 0 / 0.764 GB, free: 2.418 MB / 0.7136 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 6.631e-05/0.005951, allocations: 126.8 kB / 0.7641 GB, free: 2.285 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.035e-05/0.005962, allocations: 11.92 kB / 0.7641 GB, free: 2.273 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.271e-05/0.006054, allocations: 70.86 kB / 0.7642 GB, free: 2.199 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.996e-06/0.006057, allocations: 3.938 kB / 0.7642 GB, free: 2.195 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.964e-06/0.006059, allocations: 1.562 kB / 0.7642 GB, free: 2.195 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.006063, allocations: 0 / 0.7642 GB, free: 2.195 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001839/0.006247, allocations: 226.7 kB / 0.7644 GB, free: 1.949 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.006248, allocations: 0 / 0.7644 GB, free: 1.949 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.253e-05/0.006281, allocations: 13.27 kB / 0.7644 GB, free: 1.938 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.006283, allocations: 0 / 0.7644 GB, free: 1.938 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.544e-06/0.00629, allocations: 7.938 kB / 0.7644 GB, free: 1.93 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.006292, allocations: 0.6562 kB / 0.7644 GB, free: 1.93 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.006292, allocations: 0 / 0.7644 GB, free: 1.93 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.886e-05/0.006391, allocations: 164.3 kB / 0.7646 GB, free: 1.754 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 5.129e-06/0.006396, allocations: 4 kB / 0.7646 GB, free: 1.75 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.353e-05/0.00641, allocations: 4.5 kB / 0.7646 GB, free: 1.746 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.569e-05/0.006456, allocations: 11.41 kB / 0.7646 GB, free: 1.738 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.23e-05/0.006488, allocations: 7.984 kB / 0.7646 GB, free: 1.73 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.274e-06/0.006495, allocations: 7.984 kB / 0.7646 GB, free: 1.723 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 1.309e-05/0.006508, allocations: 12.84 kB / 0.7646 GB, free: 1.707 MB / 0.7136 GB Notification: Performance of sort global known variables: time 5e-08/0.006508, allocations: 0 / 0.7646 GB, free: 1.707 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0001419/0.00665, allocations: 20 kB / 0.7647 GB, free: 1.688 MB / 0.7136 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.0001075/0.006758, allocations: 88.34 kB / 0.7647 GB, free: 1.594 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 9.163e-05/0.006849, allocations: 56.38 kB / 0.7648 GB, free: 1.539 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 4.429e-06/0.006854, allocations: 8 kB / 0.7648 GB, free: 1.531 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 3.656e-05/0.00689, allocations: 28.83 kB / 0.7648 GB, free: 1.5 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001473/0.007038, allocations: 12.11 kB / 0.7648 GB, free: 1.488 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003716/0.007409, allocations: 161 kB / 0.765 GB, free: 1.305 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.357e-05/0.007443, allocations: 60.34 kB / 0.7651 GB, free: 1.227 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 2.686e-05/0.00747, allocations: 10.14 kB / 0.7651 GB, free: 1.219 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.963e-05/0.007519, allocations: 63.36 kB / 0.7651 GB, free: 1.156 MB / 0.7136 GB Notification: Performance of SimCode: time 5.81e-07/0.00752, allocations: 0 / 0.7651 GB, free: 1.156 MB / 0.7136 GB Notification: Performance of Templates: time 0.002638/0.01016, allocations: 1.127 MB / 0.7662 GB, free: 96 kB / 0.7136 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.17505681887269]