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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.001258/0.001258, allocations: 108 kB / 15.6 MB, free: 128 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.001373/0.001373, allocations: 196.8 kB / 16.53 MB, free: 6.672 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.494/1.494, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.075/3.075, allocations: 472.6 MB / 0.7451 GB, free: 4.594 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001473/0.001474, allocations: 77.52 kB / 0.9121 GB, free: 33.38 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3755/0.377, allocations: 159.9 MB / 1.068 GB, free: 10.39 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.002403/0.3795, allocations: 0.6678 MB / 1.069 GB, free: 9.723 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001554/0.3811, allocations: 1.071 MB / 1.07 GB, free: 8.641 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.074e-05/0.3811, allocations: 0 / 1.07 GB, free: 8.641 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.702e-05/0.3812, allocations: 7.922 kB / 1.07 GB, free: 8.633 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 7.779e-05/0.3813, allocations: 11.88 kB / 1.07 GB, free: 8.621 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003633/0.3817, allocations: 43.89 kB / 1.07 GB, free: 8.578 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001026/0.3818, allocations: 47.86 kB / 1.07 GB, free: 8.531 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000118/0.3819, allocations: 15.98 kB / 1.07 GB, free: 8.516 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 8.206e-05/0.382, allocations: 27.91 kB / 1.07 GB, free: 8.488 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 5.874e-05/0.3821, allocations: 15.92 kB / 1.07 GB, free: 8.473 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.585e-05/0.3821, allocations: 4 kB / 1.07 GB, free: 8.469 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 7.451e-05/0.3822, allocations: 19.98 kB / 1.07 GB, free: 8.449 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.39e-05/0.3822, allocations: 15.92 kB / 1.07 GB, free: 8.434 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 4.057e-05/0.3822, allocations: 15.94 kB / 1.07 GB, free: 8.418 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.000155/0.3824, allocations: 63.83 kB / 1.07 GB, free: 8.355 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.3824, allocations: 4 kB / 1.07 GB, free: 8.352 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.713e-06/0.3824, allocations: 0 / 1.07 GB, free: 8.352 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.242e-06/0.3824, allocations: 0 / 1.07 GB, free: 8.352 MB / 0.8262 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.0006286/0.3831, allocations: 361.3 kB / 1.071 GB, free: 7.949 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.171e-05/0.3831, allocations: 8.031 kB / 1.071 GB, free: 7.941 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.618e-05/0.3832, allocations: 8.844 kB / 1.071 GB, free: 7.934 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001352/0.3833, allocations: 180.2 kB / 1.071 GB, free: 7.719 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.013e-05/0.3833, allocations: 4.375 kB / 1.071 GB, free: 7.715 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.557e-05/0.3833, allocations: 4.375 kB / 1.071 GB, free: 7.711 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002155/0.3836, allocations: 66.2 kB / 1.071 GB, free: 7.641 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.654e-06/0.3836, allocations: 4.188 kB / 1.071 GB, free: 7.637 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.469e-05/0.3836, allocations: 3.938 kB / 1.071 GB, free: 7.633 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.41e-06/0.3836, allocations: 0 / 1.071 GB, free: 7.633 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001807/0.3838, allocations: 43.95 kB / 1.071 GB, free: 7.59 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000484/0.3843, allocations: 284.7 kB / 1.071 GB, free: 7.262 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001637/0.3845, allocations: 58.48 kB / 1.071 GB, free: 7.195 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001016/0.3846, allocations: 28.97 kB / 1.071 GB, free: 7.164 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.106e-05/0.3846, allocations: 0 / 1.071 GB, free: 7.164 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002231/0.3848, allocations: 83.36 kB / 1.071 GB, free: 7.07 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.322e-06/0.3848, allocations: 3.938 kB / 1.071 GB, free: 7.066 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0004087/0.3853, allocations: 121.7 kB / 1.071 GB, free: 6.941 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.776e-05/0.3853, allocations: 51.41 kB / 1.071 GB, free: 6.879 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.78e-05/0.3854, allocations: 109.8 kB / 1.072 GB, free: 6.762 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.362e-05/0.3854, allocations: 33.7 kB / 1.072 GB, free: 6.723 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.403e-05/0.3855, allocations: 84.05 kB / 1.072 GB, free: 6.637 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.344e-05/0.3855, allocations: 23.73 kB / 1.072 GB, free: 6.613 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.944e-05/0.3855, allocations: 21.66 kB / 1.072 GB, free: 6.586 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001056/0.3857, allocations: 322.8 kB / 1.072 GB, free: 6.262 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001/0.3858, allocations: 19.98 kB / 1.072 GB, free: 6.242 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001147/0.3859, allocations: 68.2 kB / 1.072 GB, free: 6.16 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002098/0.3861, allocations: 104.4 kB / 1.072 GB, free: 6.043 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.3861, allocations: 0 / 1.072 GB, free: 6.043 MB / 0.8262 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002671/0.3864, allocations: 113.6 kB / 1.072 GB, free: 5.926 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.626e-05/0.3864, allocations: 7.938 kB / 1.072 GB, free: 5.918 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.3864, allocations: 4 kB / 1.072 GB, free: 5.914 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.286e-05/0.3864, allocations: 0 / 1.072 GB, free: 5.914 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001142/0.3866, allocations: 16.11 kB / 1.072 GB, free: 5.898 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.588e-06/0.3866, allocations: 8 kB / 1.072 GB, free: 5.891 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.128e-05/0.3867, allocations: 11.89 kB / 1.072 GB, free: 5.879 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.135e-05/0.3867, allocations: 7.938 kB / 1.072 GB, free: 5.871 MB / 0.8262 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.733e-05/0.3868, allocations: 128.7 kB / 1.072 GB, free: 5.738 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.136e-05/0.3868, allocations: 0 / 1.072 GB, free: 5.738 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002841/0.3871, allocations: 114 kB / 1.073 GB, free: 5.621 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.3871, allocations: 4 kB / 1.073 GB, free: 5.617 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.3871, allocations: 0 / 1.073 GB, free: 5.617 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.3871, allocations: 0 / 1.073 GB, free: 5.617 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004423/0.3876, allocations: 358.3 kB / 1.073 GB, free: 5.211 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.3876, allocations: 0 / 1.073 GB, free: 5.211 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.869e-05/0.3876, allocations: 11.98 kB / 1.073 GB, free: 5.199 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.527e-06/0.3877, allocations: 4 kB / 1.073 GB, free: 5.195 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.977e-06/0.3877, allocations: 4 kB / 1.073 GB, free: 5.191 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.3877, allocations: 0 / 1.073 GB, free: 5.191 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.3877, allocations: 0 / 1.073 GB, free: 5.191 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003009/0.388, allocations: 199.4 kB / 1.073 GB, free: 4.98 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.002e-05/0.388, allocations: 84.95 kB / 1.073 GB, free: 4.879 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.262e-05/0.3881, allocations: 4 kB / 1.073 GB, free: 4.875 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.893e-05/0.3882, allocations: 11.98 kB / 1.073 GB, free: 4.863 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.071e-05/0.3882, allocations: 11.98 kB / 1.073 GB, free: 4.852 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.454e-05/0.3882, allocations: 3.938 kB / 1.073 GB, free: 4.848 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.305e-05/0.3883, allocations: 83.28 kB / 1.073 GB, free: 4.766 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.41e-07/0.3883, allocations: 0 / 1.073 GB, free: 4.766 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002417/0.3885, allocations: 12 kB / 1.073 GB, free: 4.754 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.0001734/0.3887, allocations: 115.8 kB / 1.073 GB, free: 4.633 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002755/0.389, allocations: 71.89 kB / 1.074 GB, free: 4.562 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.389, allocations: 7.938 kB / 1.074 GB, free: 4.555 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001158/0.3891, allocations: 39.91 kB / 1.074 GB, free: 4.516 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000256/0.3894, allocations: 4 kB / 1.074 GB, free: 4.512 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003539/0.3898, allocations: 140 kB / 1.074 GB, free: 4.352 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002566/0.39, allocations: 0.6807 MB / 1.074 GB, free: 3.645 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.322e-05/0.3901, allocations: 7.984 kB / 1.074 GB, free: 3.637 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.667e-05/0.3901, allocations: 15.44 kB / 1.074 GB, free: 3.621 MB / 0.8262 GB Notification: Performance of SimCode: time 3.21e-07/0.3901, allocations: 0 / 1.074 GB, free: 3.621 MB / 0.8262 GB Notification: Performance of Templates: time 0.003299/0.3934, allocations: 0.8423 MB / 1.075 GB, free: 2.789 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/jenkins/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