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.001117/0.001117, allocations: 73.88 kB / 20.65 MB, free: 3.844 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.001175/0.001175, allocations: 169 kB / 24.06 MB, free: 452 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 1.069/1.069, allocations: 177.1 MB / 204.5 MB, free: 5.5 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.263/2.263, allocations: 429.5 MB / 0.6743 GB, free: 3.887 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 1.583e-06/1.583e-06, allocations: 0.6562 kB / 0.8794 GB, free: 6.012 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.673e-05/1.831e-05, allocations: 6.328 kB / 0.8794 GB, free: 6.008 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.001204/0.001222, allocations: 0.6955 MB / 0.8801 GB, free: 5.336 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001017/0.002239, allocations: 1.119 MB / 0.8812 GB, free: 4.207 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.652e-05/0.002275, allocations: 0.8438 kB / 0.8812 GB, free: 4.207 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 2.512e-05/0.0023, allocations: 7.875 kB / 0.8812 GB, free: 4.199 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 5.777e-05/0.002358, allocations: 4.734 kB / 0.8812 GB, free: 4.195 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002277/0.002586, allocations: 52.67 kB / 0.8812 GB, free: 4.145 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 7.821e-05/0.002664, allocations: 55.8 kB / 0.8813 GB, free: 4.09 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 6.973e-05/0.002734, allocations: 3.984 kB / 0.8813 GB, free: 4.086 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 7.113e-05/0.002805, allocations: 32.5 kB / 0.8813 GB, free: 4.055 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 4.084e-05/0.002846, allocations: 21.34 kB / 0.8813 GB, free: 4.035 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 1.393e-05/0.00286, allocations: 4 kB / 0.8813 GB, free: 4.031 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 5.374e-05/0.002913, allocations: 19.98 kB / 0.8813 GB, free: 4.012 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 2.126e-05/0.002935, allocations: 11.98 kB / 0.8814 GB, free: 4 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 2.203e-05/0.002957, allocations: 16.52 kB / 0.8814 GB, free: 3.984 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 9.98e-05/0.003056, allocations: 51.81 kB / 0.8814 GB, free: 3.934 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 2.514e-06/0.003059, allocations: 4.75 kB / 0.8814 GB, free: 3.93 MB / 0.8386 GB Notification: Performance of FrontEnd: time 5.71e-07/0.00306, allocations: 0 / 0.8814 GB, free: 3.93 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.196e-06/0.003063, allocations: 1.094 kB / 0.8814 GB, free: 3.93 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.0003768/0.003439, allocations: 393.1 kB / 0.8818 GB, free: 3.508 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.23e-05/0.003472, allocations: 15.97 kB / 0.8818 GB, free: 3.492 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.81e-05/0.00355, allocations: 10.09 kB / 0.8818 GB, free: 3.484 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.962e-05/0.00362, allocations: 116.6 kB / 0.8819 GB, free: 3.344 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.797e-06/0.003628, allocations: 384 / 0.8819 GB, free: 3.344 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.073e-05/0.003639, allocations: 9.344 kB / 0.8819 GB, free: 3.336 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.147e-05/0.003731, allocations: 62.88 kB / 0.882 GB, free: 3.266 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.222e-06/0.003737, allocations: 1.219 kB / 0.882 GB, free: 3.266 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.344e-06/0.003744, allocations: 4.375 kB / 0.882 GB, free: 3.262 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.649e-06/0.003749, allocations: 4.375 kB / 0.882 GB, free: 3.258 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.615e-05/0.003775, allocations: 17.03 kB / 0.882 GB, free: 3.242 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002548/0.00403, allocations: 244.5 kB / 0.8823 GB, free: 2.977 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 6.312e-05/0.004093, allocations: 40.14 kB / 0.8823 GB, free: 2.926 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.297e-05/0.004116, allocations: 23.73 kB / 0.8823 GB, free: 2.898 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.56e-05/0.004131, allocations: 5.031 kB / 0.8823 GB, free: 2.895 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.907e-05/0.0042, allocations: 61.03 kB / 0.8824 GB, free: 2.82 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=7): time 1.062e-06/0.004201, allocations: 0 / 0.8824 GB, free: 2.82 MB / 0.8386 GB Notification: Performance of matching and sorting (n=7): time 0.0001436/0.004345, allocations: 78.3 kB / 0.8825 GB, free: 2.738 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.026e-05/0.004375, allocations: 55.34 kB / 0.8825 GB, free: 2.672 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.376e-05/0.004439, allocations: 169.3 kB / 0.8827 GB, free: 2.492 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.113e-05/0.00445, allocations: 25.7 kB / 0.8827 GB, free: 2.461 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 4.241e-05/0.004493, allocations: 134.9 kB / 0.8828 GB, free: 2.324 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.977e-05/0.004512, allocations: 23.78 kB / 0.8829 GB, free: 2.301 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.287e-05/0.004545, allocations: 27.38 kB / 0.8829 GB, free: 2.266 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001056/0.004651, allocations: 0.4884 MB / 0.8834 GB, free: 1.766 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.37e-05/0.004665, allocations: 4 kB / 0.8834 GB, free: 1.762 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.718e-05/0.004712, allocations: 62.59 kB / 0.8834 GB, free: 1.68 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.2e-05/0.004774, allocations: 72.98 kB / 0.8835 GB, free: 1.59 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.417e-06/0.004777, allocations: 4 kB / 0.8835 GB, free: 1.586 MB / 0.8386 GB Notification: Performance of matching and sorting (n=10) (initialization): time 9.152e-05/0.004869, allocations: 74.72 kB / 0.8836 GB, free: 1.508 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 9.588e-06/0.004878, allocations: 4 kB / 0.8836 GB, free: 1.504 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/0.004886, allocations: 11.92 kB / 0.8836 GB, free: 1.492 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.587e-06/0.004894, allocations: 1.375 kB / 0.8836 GB, free: 1.492 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.279e-05/0.004957, allocations: 19.94 kB / 0.8836 GB, free: 1.473 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.166e-06/0.00496, allocations: 0 / 0.8836 GB, free: 1.473 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.867e-05/0.004989, allocations: 11.94 kB / 0.8836 GB, free: 1.461 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.755e-06/0.004997, allocations: 8.125 kB / 0.8836 GB, free: 1.453 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.561e-05/0.005072, allocations: 168.5 kB / 0.8838 GB, free: 1.277 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.157e-06/0.005081, allocations: 4 kB / 0.8838 GB, free: 1.273 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.479e-05/0.005176, allocations: 81.97 kB / 0.8839 GB, free: 1.184 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.005178, allocations: 0 / 0.8839 GB, free: 1.184 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.523e-06/0.005179, allocations: 0 / 0.8839 GB, free: 1.184 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.005182, allocations: 0 / 0.8839 GB, free: 1.184 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001857/0.005368, allocations: 302 kB / 0.8842 GB, free: 0.8555 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.005369, allocations: 0 / 0.8842 GB, free: 0.8555 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.802e-05/0.005397, allocations: 11.98 kB / 0.8842 GB, free: 0.8438 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.0054, allocations: 7.938 kB / 0.8842 GB, free: 0.8359 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.019e-06/0.005405, allocations: 3.938 kB / 0.8842 GB, free: 0.832 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.41e-07/0.005406, allocations: 4 kB / 0.8842 GB, free: 0.8281 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.005406, allocations: 0 / 0.8842 GB, free: 0.8281 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001013/0.005508, allocations: 216.4 kB / 0.8844 GB, free: 0.5977 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 5.902e-06/0.005513, allocations: 3.953 kB / 0.8844 GB, free: 0.5938 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.312e-05/0.005527, allocations: 7.938 kB / 0.8844 GB, free: 0.5859 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.312e-05/0.00557, allocations: 4 kB / 0.8844 GB, free: 0.582 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.414e-05/0.005594, allocations: 3.984 kB / 0.8844 GB, free: 0.5781 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.035e-05/0.005604, allocations: 4 kB / 0.8844 GB, free: 0.5742 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 3.573e-05/0.00564, allocations: 131.2 kB / 0.8845 GB, free: 456 kB / 0.8386 GB Notification: Performance of sort global known variables: time 7e-08/0.00564, allocations: 4 kB / 0.8845 GB, free: 452 kB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0001604/0.0058, allocations: 12 kB / 0.8845 GB, free: 440 kB / 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 9.339e-05/0.005894, allocations: 99.19 kB / 0.8846 GB, free: 332 kB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 8.469e-05/0.005978, allocations: 51.64 kB / 0.8847 GB, free: 276 kB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 8.52e-07/0.005979, allocations: 0 / 0.8847 GB, free: 276 kB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 3.112e-05/0.00601, allocations: 19.69 kB / 0.8847 GB, free: 252 kB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001783/0.006189, allocations: 16.42 kB / 0.8847 GB, free: 236 kB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003357/0.006524, allocations: 162 kB / 0.8849 GB, free: 44 kB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.13e-05/0.006566, allocations: 59.41 kB / 0.8849 GB, free: 15.96 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 2.187e-05/0.006587, allocations: 4 kB / 0.8849 GB, free: 15.96 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.715e-05/0.006635, allocations: 74.2 kB / 0.885 GB, free: 15.88 MB / 0.8542 GB Notification: Performance of SimCode: time 7.31e-07/0.006635, allocations: 0 / 0.885 GB, free: 15.88 MB / 0.8542 GB Notification: Performance of Templates: time 0.002403/0.009038, allocations: 0.9967 MB / 0.886 GB, free: 14.91 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.5966716120019555]