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.001037/0.001037, allocations: 88.7 kB / 20.2 MB, free: 4.23 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.001224/0.001224, allocations: 161.3 kB / 23.51 MB, free: 0.918 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 0.956/0.956, allocations: 177.2 MB / 203.9 MB, free: 5.598 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.062/2.062, allocations: 428.5 MB / 0.6727 GB, free: 4.914 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.924e-06/1.924e-06, allocations: 0 / 0.877 GB, free: 7.922 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.465e-05/3.658e-05, allocations: 2.312 kB / 0.877 GB, free: 7.918 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.001286/0.001322, allocations: 0.6794 MB / 0.8777 GB, free: 7.266 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.00106/0.002382, allocations: 1.092 MB / 0.8787 GB, free: 6.164 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.73e-05/0.00243, allocations: 0 / 0.8787 GB, free: 6.164 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 2.494e-05/0.002455, allocations: 5.031 kB / 0.8788 GB, free: 6.16 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 6.595e-05/0.002521, allocations: 12.09 kB / 0.8788 GB, free: 6.148 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002865/0.002807, allocations: 47.7 kB / 0.8788 GB, free: 6.102 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 8.786e-05/0.002895, allocations: 60.77 kB / 0.8789 GB, free: 6.043 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 9.431e-05/0.002989, allocations: 7.984 kB / 0.8789 GB, free: 6.035 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 8.023e-05/0.003069, allocations: 28.48 kB / 0.8789 GB, free: 6.008 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 4.87e-05/0.003118, allocations: 27.89 kB / 0.8789 GB, free: 5.98 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 1.557e-05/0.003134, allocations: 5.875 kB / 0.8789 GB, free: 5.977 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 5.638e-05/0.00319, allocations: 12 kB / 0.8789 GB, free: 5.965 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 2.058e-05/0.003211, allocations: 7.984 kB / 0.879 GB, free: 5.957 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 2.817e-05/0.003239, allocations: 15.98 kB / 0.879 GB, free: 5.941 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0001294/0.003368, allocations: 71.75 kB / 0.879 GB, free: 5.871 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 1.743e-06/0.00337, allocations: 5.344 kB / 0.879 GB, free: 5.867 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.012e-06/0.003371, allocations: 0 / 0.879 GB, free: 5.867 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.436e-06/0.003374, allocations: 0 / 0.879 GB, free: 5.867 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.0004436/0.003818, allocations: 291.8 kB / 0.8793 GB, free: 5.551 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.798e-05/0.003856, allocations: 12.03 kB / 0.8793 GB, free: 5.539 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001055/0.003961, allocations: 14.47 kB / 0.8793 GB, free: 5.527 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.058e-05/0.004042, allocations: 117.7 kB / 0.8795 GB, free: 5.387 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.157e-06/0.004051, allocations: 384 / 0.8795 GB, free: 5.387 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.291e-05/0.004064, allocations: 8.312 kB / 0.8795 GB, free: 5.379 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001419/0.004206, allocations: 68.66 kB / 0.8795 GB, free: 5.309 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.312e-06/0.004212, allocations: 192 / 0.8795 GB, free: 5.309 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.969e-06/0.004222, allocations: 384 / 0.8795 GB, free: 5.309 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.559e-06/0.004227, allocations: 384 / 0.8795 GB, free: 5.309 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.549e-05/0.004322, allocations: 47.89 kB / 0.8796 GB, free: 5.262 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003187/0.004641, allocations: 218.6 kB / 0.8798 GB, free: 5.02 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001027/0.004744, allocations: 50.55 kB / 0.8798 GB, free: 4.961 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.467e-05/0.004798, allocations: 28.95 kB / 0.8799 GB, free: 4.93 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.641e-05/0.004815, allocations: 4.719 kB / 0.8799 GB, free: 4.926 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001224/0.004937, allocations: 85.03 kB / 0.8799 GB, free: 4.832 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=7): time 1.322e-06/0.004938, allocations: 3.938 kB / 0.88 GB, free: 4.828 MB / 0.8386 GB Notification: Performance of matching and sorting (n=7): time 0.0002695/0.005208, allocations: 126.8 kB / 0.8801 GB, free: 4.699 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.989e-05/0.005238, allocations: 51.41 kB / 0.8801 GB, free: 4.637 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.548e-05/0.005303, allocations: 117.8 kB / 0.8802 GB, free: 4.512 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.222e-05/0.005315, allocations: 29.7 kB / 0.8803 GB, free: 4.477 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 3.302e-05/0.005349, allocations: 80.14 kB / 0.8803 GB, free: 4.395 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.126e-05/0.00537, allocations: 27.78 kB / 0.8804 GB, free: 4.367 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.205e-05/0.005402, allocations: 21.72 kB / 0.8804 GB, free: 4.34 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 7.681e-05/0.005479, allocations: 318.8 kB / 0.8807 GB, free: 4.02 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.049e-05/0.005529, allocations: 23.98 kB / 0.8807 GB, free: 3.996 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.458e-05/0.005594, allocations: 60.2 kB / 0.8808 GB, free: 3.922 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001192/0.005713, allocations: 96.19 kB / 0.8809 GB, free: 3.812 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.285e-06/0.005715, allocations: 0 / 0.8809 GB, free: 3.812 MB / 0.8386 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001627/0.005878, allocations: 121.5 kB / 0.881 GB, free: 3.688 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.327e-05/0.005891, allocations: 9.781 kB / 0.881 GB, free: 3.68 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.005898, allocations: 8 kB / 0.881 GB, free: 3.672 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.205e-05/0.00591, allocations: 0 / 0.881 GB, free: 3.672 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.993e-05/0.00598, allocations: 15.98 kB / 0.881 GB, free: 3.656 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.942e-06/0.005986, allocations: 4 kB / 0.881 GB, free: 3.652 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.783e-05/0.006023, allocations: 15.94 kB / 0.881 GB, free: 3.637 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.556e-06/0.006032, allocations: 4 kB / 0.881 GB, free: 3.633 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 6.272e-05/0.006095, allocations: 117.8 kB / 0.8811 GB, free: 3.508 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.719e-06/0.006104, allocations: 7.938 kB / 0.8812 GB, free: 3.5 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001614/0.006266, allocations: 114 kB / 0.8813 GB, free: 3.383 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.006268, allocations: 4 kB / 0.8813 GB, free: 3.379 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.006272, allocations: 3.938 kB / 0.8813 GB, free: 3.375 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.895e-06/0.006275, allocations: 0 / 0.8813 GB, free: 3.375 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002492/0.006524, allocations: 306 kB / 0.8816 GB, free: 3.039 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.006525, allocations: 0 / 0.8816 GB, free: 3.039 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.017e-05/0.006556, allocations: 11.98 kB / 0.8816 GB, free: 3.027 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.006558, allocations: 0 / 0.8816 GB, free: 3.027 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.183e-06/0.006565, allocations: 4 kB / 0.8816 GB, free: 3.023 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.006566, allocations: 4 kB / 0.8816 GB, free: 3.02 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.006568, allocations: 0 / 0.8816 GB, free: 3.02 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001552/0.006723, allocations: 199.8 kB / 0.8818 GB, free: 2.809 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 9.188e-06/0.006732, allocations: 11.89 kB / 0.8818 GB, free: 2.797 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.338e-05/0.006745, allocations: 3.984 kB / 0.8818 GB, free: 2.793 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.693e-05/0.006792, allocations: 8.25 kB / 0.8818 GB, free: 2.785 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.46e-05/0.006837, allocations: 7.984 kB / 0.8818 GB, free: 2.777 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.231e-05/0.006849, allocations: 12 kB / 0.8818 GB, free: 2.766 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 3.092e-05/0.00688, allocations: 87.27 kB / 0.8819 GB, free: 2.68 MB / 0.8386 GB Notification: Performance of sort global known variables: time 6e-08/0.00688, allocations: 0 / 0.8819 GB, free: 2.68 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0001711/0.007051, allocations: 12 kB / 0.8819 GB, free: 2.668 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.0001039/0.007155, allocations: 99.19 kB / 0.882 GB, free: 2.562 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001582/0.007313, allocations: 71.88 kB / 0.8821 GB, free: 2.492 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.322e-06/0.007315, allocations: 0 / 0.8821 GB, free: 2.492 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 5.797e-05/0.007373, allocations: 40.23 kB / 0.8821 GB, free: 2.453 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001888/0.007561, allocations: 15.92 kB / 0.8821 GB, free: 2.438 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002763/0.007838, allocations: 140.5 kB / 0.8823 GB, free: 2.273 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.009e-05/0.007888, allocations: 73.75 kB / 0.8823 GB, free: 2.184 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 2.554e-05/0.007913, allocations: 4 kB / 0.8823 GB, free: 2.18 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.326e-05/0.007937, allocations: 12.5 kB / 0.8823 GB, free: 2.164 MB / 0.8386 GB Notification: Performance of SimCode: time 5.61e-07/0.007937, allocations: 4 kB / 0.8823 GB, free: 2.16 MB / 0.8386 GB Notification: Performance of Templates: time 0.002287/0.01022, allocations: 0.8869 MB / 0.8832 GB, free: 1.285 MB / 0.8386 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=800 -s cvode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe 2>&1) [Timeout 800] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.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: 5.165435183793306]