Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.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.001266/0.001266, allocations: 93.06 kB / 19.65 MB, free: 280 kB / 13.93 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.001922/0.001922, allocations: 165 kB / 23.01 MB, free: 1.555 MB / 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 1.002/1.002, allocations: 177.1 MB / 203.4 MB, free: 5.602 MB / 186.7 MB " [Timeout remaining time 179] 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 2.194/2.194, allocations: 429.5 MB / 0.6732 GB, free: 4.039 MB / 0.6355 GB " [Timeout remaining time 177] Using package Buildings with version 14.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.Discrete.Validation.ZeroOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|zerOrdHol.u|zerOrdHol.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|zerOrdHol.u|zerOrdHol.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.114e-06/2.114e-06, allocations: 0 / 0.8781 GB, free: 6.336 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.134e-05/2.345e-05, allocations: 3.156 kB / 0.8781 GB, free: 6.332 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.001447/0.00147, allocations: 0.6957 MB / 0.8788 GB, free: 5.66 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001172/0.002642, allocations: 1.123 MB / 0.8799 GB, free: 4.527 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.409e-05/0.002686, allocations: 0 / 0.8799 GB, free: 4.527 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 3.157e-05/0.002718, allocations: 3.938 kB / 0.8799 GB, free: 4.523 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 7.265e-05/0.00279, allocations: 8.969 kB / 0.8799 GB, free: 4.516 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003214/0.003112, allocations: 55.64 kB / 0.88 GB, free: 4.461 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 9.858e-05/0.00321, allocations: 56.83 kB / 0.88 GB, free: 4.406 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 9.542e-05/0.003306, allocations: 7.984 kB / 0.88 GB, free: 4.398 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 7.35e-05/0.003379, allocations: 27.98 kB / 0.8801 GB, free: 4.371 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 4.658e-05/0.003426, allocations: 20.42 kB / 0.8801 GB, free: 4.352 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 1.689e-05/0.003443, allocations: 4.594 kB / 0.8801 GB, free: 4.348 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 5.83e-05/0.003501, allocations: 20 kB / 0.8801 GB, free: 4.328 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 2.04e-05/0.003522, allocations: 9.047 kB / 0.8801 GB, free: 4.32 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 2.972e-05/0.003551, allocations: 19.91 kB / 0.8801 GB, free: 4.301 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0001332/0.003684, allocations: 51.88 kB / 0.8802 GB, free: 4.25 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 2.284e-06/0.003687, allocations: 0.5938 kB / 0.8802 GB, free: 4.25 MB / 0.8386 GB Notification: Performance of FrontEnd: time 5.71e-07/0.003687, allocations: 4.875 kB / 0.8802 GB, free: 4.246 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.518e-06/0.003692, allocations: 4 kB / 0.8802 GB, free: 4.242 MB / 0.8386 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004684/0.00416, allocations: 389.5 kB / 0.8806 GB, free: 3.824 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.889e-05/0.004199, allocations: 11.97 kB / 0.8806 GB, free: 3.812 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.225e-05/0.004291, allocations: 14.41 kB / 0.8806 GB, free: 3.801 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.51e-05/0.004376, allocations: 112.6 kB / 0.8807 GB, free: 3.664 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.383e-05/0.00439, allocations: 8.359 kB / 0.8807 GB, free: 3.656 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.302e-05/0.004403, allocations: 384 / 0.8807 GB, free: 3.656 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001306/0.004534, allocations: 67.94 kB / 0.8808 GB, free: 3.582 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.161e-05/0.004546, allocations: 192 / 0.8808 GB, free: 3.582 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.181e-05/0.004557, allocations: 5.094 kB / 0.8808 GB, free: 3.578 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.564e-06/0.004565, allocations: 384 / 0.8808 GB, free: 3.578 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.977e-05/0.004605, allocations: 20.55 kB / 0.8808 GB, free: 3.559 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003448/0.004949, allocations: 267.8 kB / 0.8811 GB, free: 3.262 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 8.409e-05/0.005034, allocations: 42.5 kB / 0.8811 GB, free: 3.211 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.543e-05/0.005059, allocations: 19.8 kB / 0.8811 GB, free: 3.188 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.07e-05/0.00508, allocations: 4 kB / 0.8811 GB, free: 3.184 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.041e-05/0.00516, allocations: 72.92 kB / 0.8812 GB, free: 3.098 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=7): time 1.383e-06/0.005161, allocations: 0 / 0.8812 GB, free: 3.098 MB / 0.8386 GB Notification: Performance of matching and sorting (n=7): time 0.00018/0.005342, allocations: 73.64 kB / 0.8813 GB, free: 3.02 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.358e-05/0.005375, allocations: 51.41 kB / 0.8813 GB, free: 2.957 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.242e-05/0.005448, allocations: 165.9 kB / 0.8815 GB, free: 2.777 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.172e-05/0.005459, allocations: 29.7 kB / 0.8815 GB, free: 2.742 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 4.409e-05/0.005503, allocations: 134.9 kB / 0.8816 GB, free: 2.605 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.107e-05/0.005524, allocations: 19.8 kB / 0.8816 GB, free: 2.586 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.523e-05/0.00556, allocations: 35.36 kB / 0.8817 GB, free: 2.543 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001052/0.005665, allocations: 496.1 kB / 0.8822 GB, free: 2.047 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.181e-05/0.005687, allocations: 8.25 kB / 0.8822 GB, free: 2.039 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.439e-05/0.005731, allocations: 62.36 kB / 0.8822 GB, free: 1.957 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.711e-05/0.005798, allocations: 74.36 kB / 0.8823 GB, free: 1.863 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.0058, allocations: 0 / 0.8823 GB, free: 1.863 MB / 0.8386 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001088/0.005909, allocations: 89.55 kB / 0.8824 GB, free: 1.77 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.335e-05/0.005922, allocations: 7.938 kB / 0.8824 GB, free: 1.762 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.381e-06/0.005928, allocations: 3.938 kB / 0.8824 GB, free: 1.758 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.635e-05/0.005944, allocations: 4 kB / 0.8824 GB, free: 1.754 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.135e-05/0.006015, allocations: 12 kB / 0.8824 GB, free: 1.742 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.593e-06/0.006022, allocations: 3.984 kB / 0.8824 GB, free: 1.738 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.786e-05/0.00605, allocations: 8.078 kB / 0.8824 GB, free: 1.73 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.767e-06/0.006059, allocations: 12 kB / 0.8824 GB, free: 1.719 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 6 (zerOrdHol.firstTrigger,$PRE.zerOrdHol.firstTrigger,zerOrdHol.sampleTrigger,$whenCondition1,$PRE.zerOrdHol.ySample,zerOrdHol.ySample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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.041e-05/0.006129, allocations: 166.7 kB / 0.8826 GB, free: 1.547 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.118e-05/0.00614, allocations: 11.94 kB / 0.8826 GB, free: 1.535 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001119/0.006252, allocations: 74.17 kB / 0.8827 GB, free: 1.453 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.923e-06/0.006254, allocations: 0 / 0.8827 GB, free: 1.453 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.006257, allocations: 0 / 0.8827 GB, free: 1.453 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-06/0.00626, allocations: 0 / 0.8827 GB, free: 1.453 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002058/0.006466, allocations: 337.2 kB / 0.883 GB, free: 1.082 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.006467, allocations: 0 / 0.883 GB, free: 1.082 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.576e-05/0.006493, allocations: 8 kB / 0.883 GB, free: 1.074 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.312e-06/0.006494, allocations: 4 kB / 0.883 GB, free: 1.07 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.442e-06/0.006501, allocations: 0 / 0.883 GB, free: 1.07 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/0.006503, allocations: 7.984 kB / 0.883 GB, free: 1.062 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.006504, allocations: 0 / 0.883 GB, free: 1.062 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001081/0.006612, allocations: 216.3 kB / 0.8832 GB, free: 0.832 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 7.674e-06/0.00662, allocations: 11.95 kB / 0.8832 GB, free: 0.8203 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.536e-05/0.006635, allocations: 0 / 0.8832 GB, free: 0.8203 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.292e-05/0.006678, allocations: 7.984 kB / 0.8832 GB, free: 0.8125 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.351e-05/0.006711, allocations: 7.984 kB / 0.8832 GB, free: 0.8047 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.799e-06/0.006721, allocations: 0 / 0.8832 GB, free: 0.8047 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 4.166e-05/0.006763, allocations: 135.2 kB / 0.8834 GB, free: 0.6719 MB / 0.8386 GB Notification: Performance of sort global known variables: time 6e-08/0.006763, allocations: 0 / 0.8834 GB, free: 0.6719 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.000161/0.006924, allocations: 12 kB / 0.8834 GB, free: 0.6602 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (zerOrdHol.sampleTrigger,$whenCondition1,zerOrdHol.ySample,zerOrdHol.firstTrigger) * Number of discrete states: 1 (zerOrdHol.ySample) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001089/0.007033, allocations: 107.2 kB / 0.8835 GB, free: 0.5469 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001034/0.007136, allocations: 43.86 kB / 0.8835 GB, free: 0.5 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.232e-06/0.007137, allocations: 0 / 0.8835 GB, free: 0.5 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 3.498e-05/0.007172, allocations: 27.61 kB / 0.8836 GB, free: 480 kB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001906/0.007363, allocations: 22.12 kB / 0.8836 GB, free: 460 kB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004633/0.007826, allocations: 162 kB / 0.8837 GB, free: 268 kB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.271e-05/0.007869, allocations: 55.36 kB / 0.8838 GB, free: 192 kB / 0.8386 GB Notification: Performance of simCode: alias equations: time 2.285e-05/0.007892, allocations: 4 kB / 0.8838 GB, free: 188 kB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.064e-05/0.007922, allocations: 20.48 kB / 0.8838 GB, free: 168 kB / 0.8386 GB Notification: Performance of SimCode: time 1.022e-06/0.007923, allocations: 0 / 0.8838 GB, free: 168 kB / 0.8386 GB Notification: Performance of Templates: time 0.002608/0.01053, allocations: 0.8825 MB / 0.8847 GB, free: 15.29 MB / 0.8542 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold.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.6221370422281325]