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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,variableFilter="time|zerOrdHol.u|zerOrdHol.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008702/0.0008703, allocations: 99.58 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001088/0.001088, allocations: 181 kB / 16.92 MB, free: 6.918 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.572/1.572, allocations: 223.3 MB / 241 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.894/2.894, allocations: 462.7 MB / 0.7371 GB, free: 15.61 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003728/0.0003728, allocations: 12.36 kB / 0.9034 GB, free: 36.54 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3445/0.3448, allocations: 159.6 MB / 1.059 GB, free: 5.004 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.0009368/0.3458, allocations: 411.1 kB / 1.06 GB, free: 4.605 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001609/0.3475, allocations: 1.057 MB / 1.061 GB, free: 3.535 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.331e-05/0.3475, allocations: 0 / 1.061 GB, free: 3.535 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.006e-05/0.3476, allocations: 4 kB / 1.061 GB, free: 3.531 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.388e-05/0.3476, allocations: 3.938 kB / 1.061 GB, free: 3.527 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.000276/0.3479, allocations: 35.89 kB / 1.061 GB, free: 3.492 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 8.398e-05/0.348, allocations: 39.92 kB / 1.061 GB, free: 3.453 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 9.92e-05/0.3481, allocations: 15.98 kB / 1.061 GB, free: 3.438 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 8.335e-05/0.3482, allocations: 19.92 kB / 1.061 GB, free: 3.418 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.277e-05/0.3483, allocations: 23.91 kB / 1.061 GB, free: 3.395 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.398e-05/0.3483, allocations: 0 / 1.061 GB, free: 3.395 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.957e-05/0.3484, allocations: 15.98 kB / 1.061 GB, free: 3.379 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.06e-05/0.3484, allocations: 7.938 kB / 1.061 GB, free: 3.371 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.359e-05/0.3485, allocations: 45.61 kB / 1.061 GB, free: 3.32 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001115/0.3486, allocations: 39.92 kB / 1.061 GB, free: 3.281 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.3486, allocations: 3.938 kB / 1.061 GB, free: 3.277 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.723e-06/0.3486, allocations: 0 / 1.061 GB, free: 3.277 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.717e-06/0.3486, allocations: 4 kB / 1.061 GB, free: 3.273 MB / 0.8106 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.0005869/0.3492, allocations: 367.6 kB / 1.061 GB, free: 2.863 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.541e-05/0.3493, allocations: 12.03 kB / 1.061 GB, free: 2.852 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.564e-05/0.3493, allocations: 0.9375 kB / 1.061 GB, free: 2.852 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001126/0.3494, allocations: 176.2 kB / 1.062 GB, free: 2.641 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.567e-05/0.3495, allocations: 8.375 kB / 1.062 GB, free: 2.633 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.657e-05/0.3495, allocations: 8.312 kB / 1.062 GB, free: 2.625 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002203/0.3497, allocations: 78.2 kB / 1.062 GB, free: 2.543 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.624e-06/0.3497, allocations: 192 / 1.062 GB, free: 2.543 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.457e-05/0.3497, allocations: 3.938 kB / 1.062 GB, free: 2.539 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.909e-06/0.3497, allocations: 0 / 1.062 GB, free: 2.539 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002053/0.35, allocations: 67.88 kB / 1.062 GB, free: 2.473 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004853/0.3504, allocations: 272.9 kB / 1.062 GB, free: 2.156 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001792/0.3506, allocations: 66.5 kB / 1.062 GB, free: 2.082 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001119/0.3508, allocations: 36.95 kB / 1.062 GB, free: 2.043 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.457e-05/0.3508, allocations: 4 kB / 1.062 GB, free: 2.039 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002129/0.351, allocations: 87.31 kB / 1.062 GB, free: 1.941 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 3.036e-06/0.351, allocations: 7.922 kB / 1.062 GB, free: 1.934 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0004508/0.3515, allocations: 141.6 kB / 1.062 GB, free: 1.789 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.272e-05/0.3515, allocations: 55.41 kB / 1.062 GB, free: 1.723 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.759e-05/0.3516, allocations: 105.8 kB / 1.062 GB, free: 1.609 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.005e-05/0.3517, allocations: 29.7 kB / 1.062 GB, free: 1.574 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.681e-05/0.3517, allocations: 80.14 kB / 1.063 GB, free: 1.492 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.794e-05/0.3517, allocations: 23.73 kB / 1.063 GB, free: 1.469 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.425e-05/0.3518, allocations: 17.72 kB / 1.063 GB, free: 1.445 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001135/0.3519, allocations: 314.8 kB / 1.063 GB, free: 1.129 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001143/0.352, allocations: 35.91 kB / 1.063 GB, free: 1.094 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001291/0.3522, allocations: 64.27 kB / 1.063 GB, free: 1.016 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002263/0.3524, allocations: 112.1 kB / 1.063 GB, free: 0.8906 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.3524, allocations: 0 / 1.063 GB, free: 0.8906 MB / 0.8106 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002987/0.3527, allocations: 125.4 kB / 1.063 GB, free: 0.7617 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.095e-05/0.3527, allocations: 8.938 kB / 1.063 GB, free: 0.7539 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.3528, allocations: 4.125 kB / 1.063 GB, free: 0.75 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.57e-05/0.3528, allocations: 4 kB / 1.063 GB, free: 0.7461 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001154/0.3529, allocations: 15.98 kB / 1.063 GB, free: 0.7305 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.226e-06/0.3529, allocations: 4 kB / 1.063 GB, free: 0.7266 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.473e-05/0.353, allocations: 11.98 kB / 1.063 GB, free: 0.7148 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.387e-05/0.353, allocations: 8 kB / 1.063 GB, free: 0.707 MB / 0.8106 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.194e-05/0.3531, allocations: 125.7 kB / 1.063 GB, free: 0.5742 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.354e-05/0.3531, allocations: 3.906 kB / 1.063 GB, free: 0.5703 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003175/0.3535, allocations: 114 kB / 1.063 GB, free: 464 kB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.599e-06/0.3535, allocations: 0 / 1.063 GB, free: 464 kB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.3535, allocations: 3.938 kB / 1.063 GB, free: 460 kB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.526e-06/0.3535, allocations: 4 kB / 1.063 GB, free: 456 kB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004636/0.354, allocations: 374.4 kB / 1.064 GB, free: 24 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.354, allocations: 0 / 1.064 GB, free: 24 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.952e-05/0.354, allocations: 15.98 kB / 1.064 GB, free: 8 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.3541, allocations: 4 kB / 1.064 GB, free: 4 kB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.326e-06/0.3541, allocations: 0 / 1.064 GB, free: 4 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.3541, allocations: 0 / 1.064 GB, free: 4 kB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.3541, allocations: 0 / 1.064 GB, free: 4 kB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003424/0.3544, allocations: 223.3 kB / 1.064 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.676e-05/0.3545, allocations: 77.11 kB / 1.064 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.723e-05/0.3545, allocations: 192 / 1.064 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001017/0.3546, allocations: 15.98 kB / 1.064 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.804e-05/0.3547, allocations: 8.188 kB / 1.064 GB, free: 15.65 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.722e-05/0.3547, allocations: 7.938 kB / 1.064 GB, free: 15.64 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.443e-05/0.3547, allocations: 91.27 kB / 1.064 GB, free: 15.55 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.6e-07/0.3547, allocations: 4 kB / 1.064 GB, free: 15.55 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002452/0.355, allocations: 12 kB / 1.064 GB, free: 15.54 MB / 0.8262 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.0001584/0.3551, allocations: 105.4 kB / 1.064 GB, free: 15.43 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002762/0.3554, allocations: 83.89 kB / 1.064 GB, free: 15.35 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.3554, allocations: 0 / 1.064 GB, free: 15.35 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001208/0.3556, allocations: 47.91 kB / 1.065 GB, free: 15.3 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002574/0.3558, allocations: 6.031 kB / 1.065 GB, free: 15.3 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003635/0.3562, allocations: 183.5 kB / 1.065 GB, free: 15.08 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002361/0.3565, allocations: 0.6848 MB / 1.065 GB, free: 14.37 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.136e-05/0.3565, allocations: 19.36 kB / 1.065 GB, free: 14.35 MB / 0.8262 GB Notification: Performance of SimCode: time 5.11e-07/0.3565, allocations: 0 / 1.065 GB, free: 14.35 MB / 0.8262 GB Notification: Performance of Templates: time 0.002668/0.3592, allocations: 0.8874 MB / 1.066 GB, free: 13.47 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.makefile (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=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe 2>&1) 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches