Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001527/0.001527, allocations: 110 kB / 16.46 MB, free: 6.453 MB / 14.72 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.00165/0.00165, allocations: 213.7 kB / 19.43 MB, free: 3.625 MB / 14.72 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.6/1.6, allocations: 230.6 MB / 252.8 MB, free: 8.973 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.58/3.58, allocations: 0.4899 GB / 0.7915 GB, free: 33.42 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-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.ZeroOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|zerOrdHol.u|zerOrdHol.y",fileNamePrefix="Buildings_12_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_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002293/0.002293, allocations: 70.2 kB / 1.149 GB, free: 26.05 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4192/0.4215, allocations: 176.1 MB / 1.321 GB, free: 2.871 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.001945/0.4235, allocations: 0.6843 MB / 1.322 GB, free: 2.188 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001499/0.425, allocations: 1.108 MB / 1.323 GB, free: 1.066 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.52e-05/0.425, allocations: 0 / 1.323 GB, free: 1.066 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 3.83e-05/0.4251, allocations: 7.938 kB / 1.323 GB, free: 1.059 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 6.206e-05/0.4251, allocations: 3.938 kB / 1.323 GB, free: 1.055 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002845/0.4254, allocations: 47.83 kB / 1.323 GB, free: 1.008 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0001104/0.4255, allocations: 47.91 kB / 1.323 GB, free: 0.9609 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 9.66e-05/0.4256, allocations: 11.97 kB / 1.323 GB, free: 0.9492 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 7.309e-05/0.4257, allocations: 23.88 kB / 1.323 GB, free: 0.9258 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 5.744e-05/0.4257, allocations: 23.91 kB / 1.323 GB, free: 0.9023 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 2.65e-05/0.4258, allocations: 4 kB / 1.323 GB, free: 0.8984 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 7.54e-05/0.4258, allocations: 19.98 kB / 1.323 GB, free: 0.8789 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 2.587e-05/0.4259, allocations: 23.84 kB / 1.323 GB, free: 0.8555 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 3.818e-05/0.4259, allocations: 19.94 kB / 1.323 GB, free: 0.8359 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0001487/0.4261, allocations: 67.7 kB / 1.323 GB, free: 0.7695 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 3.327e-06/0.4261, allocations: 0 / 1.323 GB, free: 0.7695 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.683e-06/0.4261, allocations: 0 / 1.323 GB, free: 0.7695 MB / 1.014 GB Notification: Performance of Transformations before backend: time 4.579e-06/0.4261, allocations: 0 / 1.323 GB, free: 0.7695 MB / 1.014 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.0006719/0.4267, allocations: 367.3 kB / 1.324 GB, free: 368 kB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 5.085e-05/0.4268, allocations: 11.98 kB / 1.324 GB, free: 356 kB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.311e-05/0.4269, allocations: 8.891 kB / 1.324 GB, free: 348 kB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001637/0.427, allocations: 188.2 kB / 1.324 GB, free: 120 kB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.371e-05/0.4271, allocations: 384 / 1.324 GB, free: 120 kB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.823e-05/0.4271, allocations: 8.375 kB / 1.324 GB, free: 112 kB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002249/0.4273, allocations: 66.22 kB / 1.324 GB, free: 40 kB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.268e-05/0.4273, allocations: 192 / 1.324 GB, free: 40 kB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.559e-05/0.4273, allocations: 3.938 kB / 1.324 GB, free: 36 kB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.4273, allocations: 0 / 1.324 GB, free: 36 kB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002272/0.4276, allocations: 48 kB / 1.324 GB, free: 15.98 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005168/0.4281, allocations: 280.8 kB / 1.324 GB, free: 15.66 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001866/0.4283, allocations: 54.48 kB / 1.324 GB, free: 15.6 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001079/0.4284, allocations: 24.97 kB / 1.324 GB, free: 15.57 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.616e-05/0.4284, allocations: 0 / 1.324 GB, free: 15.57 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002467/0.4286, allocations: 83.38 kB / 1.324 GB, free: 15.48 MB / 1.029 GB Notification: Performance of pre-optimization done (n=7): time 1.512e-06/0.4286, allocations: 0 / 1.324 GB, free: 15.48 MB / 1.029 GB Notification: Performance of matching and sorting (n=7): time 0.0004694/0.4291, allocations: 125.5 kB / 1.324 GB, free: 15.35 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.334e-05/0.4292, allocations: 59.34 kB / 1.325 GB, free: 15.28 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.884e-05/0.4293, allocations: 105.8 kB / 1.325 GB, free: 15.16 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.358e-05/0.4293, allocations: 33.7 kB / 1.325 GB, free: 15.12 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 5.027e-05/0.4293, allocations: 80.14 kB / 1.325 GB, free: 15.04 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 4.097e-05/0.4294, allocations: 31.84 kB / 1.325 GB, free: 15.01 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.635e-05/0.4294, allocations: 17.72 kB / 1.325 GB, free: 14.99 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.000151/0.4296, allocations: 322.8 kB / 1.325 GB, free: 14.66 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000114/0.4297, allocations: 23.98 kB / 1.325 GB, free: 14.64 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001365/0.4298, allocations: 60.27 kB / 1.325 GB, free: 14.57 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002553/0.4301, allocations: 104.1 kB / 1.325 GB, free: 14.45 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.4301, allocations: 0 / 1.325 GB, free: 14.45 MB / 1.029 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003004/0.4304, allocations: 109.6 kB / 1.325 GB, free: 14.34 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.672e-05/0.4304, allocations: 4.188 kB / 1.325 GB, free: 14.33 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.592e-06/0.4304, allocations: 4 kB / 1.325 GB, free: 14.33 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.337e-05/0.4304, allocations: 3.938 kB / 1.325 GB, free: 14.32 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001422/0.4306, allocations: 19.92 kB / 1.325 GB, free: 14.3 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.586e-06/0.4306, allocations: 8.125 kB / 1.325 GB, free: 14.3 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.682e-05/0.4307, allocations: 11.94 kB / 1.325 GB, free: 14.29 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.649e-05/0.4307, allocations: 11.98 kB / 1.325 GB, free: 14.28 MB / 1.029 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 9.812e-05/0.4308, allocations: 120.3 kB / 1.326 GB, free: 14.15 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.64e-05/0.4308, allocations: 7.984 kB / 1.326 GB, free: 14.14 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003227/0.4311, allocations: 106 kB / 1.326 GB, free: 14.03 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.414e-06/0.4311, allocations: 4 kB / 1.326 GB, free: 14.03 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.4311, allocations: 0 / 1.326 GB, free: 14.03 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.556e-06/0.4311, allocations: 0 / 1.326 GB, free: 14.03 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005105/0.4316, allocations: 362.4 kB / 1.326 GB, free: 13.62 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.4316, allocations: 4.25 kB / 1.326 GB, free: 13.61 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.75e-05/0.4317, allocations: 7.984 kB / 1.326 GB, free: 13.61 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.218e-06/0.4317, allocations: 8 kB / 1.326 GB, free: 13.6 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.776e-06/0.4317, allocations: 0 / 1.326 GB, free: 13.6 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.4317, allocations: 4 kB / 1.326 GB, free: 13.59 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.001e-06/0.4317, allocations: 0 / 1.326 GB, free: 13.59 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003236/0.432, allocations: 195.9 kB / 1.326 GB, free: 13.39 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 6.563e-05/0.4321, allocations: 88.94 kB / 1.326 GB, free: 13.28 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.899e-05/0.4321, allocations: 4 kB / 1.326 GB, free: 13.28 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001073/0.4322, allocations: 11.98 kB / 1.326 GB, free: 13.27 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.086e-05/0.4323, allocations: 11.98 kB / 1.326 GB, free: 13.25 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.629e-05/0.4323, allocations: 3.938 kB / 1.326 GB, free: 13.25 MB / 1.029 GB Notification: Performance of sorting global known variables: time 5.367e-05/0.4323, allocations: 87.22 kB / 1.326 GB, free: 13.16 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.4323, allocations: 4 kB / 1.326 GB, free: 13.16 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002496/0.4326, allocations: 8 kB / 1.326 GB, free: 13.15 MB / 1.029 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.0001638/0.4328, allocations: 103.2 kB / 1.327 GB, free: 13.04 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002887/0.433, allocations: 75.95 kB / 1.327 GB, free: 12.97 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.433, allocations: 0 / 1.327 GB, free: 12.97 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001251/0.4332, allocations: 35.95 kB / 1.327 GB, free: 12.93 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002641/0.4334, allocations: 9.891 kB / 1.327 GB, free: 12.93 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003687/0.4338, allocations: 145.8 kB / 1.327 GB, free: 12.75 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000338/0.4341, allocations: 0.6887 MB / 1.327 GB, free: 12.04 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.313e-05/0.4342, allocations: 7.984 kB / 1.327 GB, free: 12.03 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.692e-05/0.4342, allocations: 7.438 kB / 1.327 GB, free: 12.02 MB / 1.029 GB Notification: Performance of SimCode: time 3.2e-07/0.4342, allocations: 4 kB / 1.327 GB, free: 12.02 MB / 1.029 GB Notification: Performance of Templates: time 0.00366/0.4379, allocations: 0.8395 MB / 1.328 GB, free: 11.18 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 9.819561473093927]