Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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.Examples.ZeroOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|zerOrdHol.u|zerOrdHol.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|zerOrdHol.u|zerOrdHol.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006657/0.006656, allocations: 102 kB / 15.73 MB, free: 6.039 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001217/0.001217, allocations: 194.9 kB / 16.68 MB, free: 5.961 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.491/1.491, allocations: 222.9 MB / 240.4 MB, free: 4.168 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.524/2.524, allocations: 390.2 MB / 0.6648 GB, free: 156 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001337/0.001337, allocations: 57.97 kB / 0.9508 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3156/0.317, allocations: 140.4 MB / 1.088 GB, free: 1.535 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.001925/0.319, allocations: 0.6694 MB / 1.089 GB, free: 0.8633 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001358/0.3204, allocations: 1.064 MB / 1.09 GB, free: 15.79 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.105e-05/0.3204, allocations: 0 / 1.09 GB, free: 15.79 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.814e-05/0.3205, allocations: 3.938 kB / 1.09 GB, free: 15.78 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 6.816e-05/0.3206, allocations: 11.92 kB / 1.09 GB, free: 15.77 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003205/0.3209, allocations: 43.84 kB / 1.09 GB, free: 15.73 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001003/0.321, allocations: 43.91 kB / 1.09 GB, free: 15.68 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001019/0.3211, allocations: 11.98 kB / 1.09 GB, free: 15.67 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 7.407e-05/0.3212, allocations: 19.92 kB / 1.09 GB, free: 15.65 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.043e-05/0.3212, allocations: 27.91 kB / 1.09 GB, free: 15.62 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.596e-05/0.3213, allocations: 4 kB / 1.09 GB, free: 15.62 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 6.389e-05/0.3213, allocations: 15.98 kB / 1.09 GB, free: 15.61 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.126e-05/0.3214, allocations: 19.92 kB / 1.09 GB, free: 15.59 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.888e-05/0.3214, allocations: 19.92 kB / 1.09 GB, free: 15.57 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001567/0.3216, allocations: 63.72 kB / 1.09 GB, free: 15.5 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.3216, allocations: 0 / 1.09 GB, free: 15.5 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.703e-06/0.3216, allocations: 0 / 1.09 GB, free: 15.5 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.636e-06/0.3216, allocations: 0 / 1.09 GB, free: 15.5 MB / 0.8575 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.0005952/0.3222, allocations: 363.4 kB / 1.09 GB, free: 15.1 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.837e-05/0.3223, allocations: 16.03 kB / 1.09 GB, free: 15.08 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.513e-05/0.3223, allocations: 0.9375 kB / 1.09 GB, free: 15.08 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001586/0.3225, allocations: 172.2 kB / 1.09 GB, free: 14.88 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.443e-05/0.3225, allocations: 4.375 kB / 1.09 GB, free: 14.87 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.006e-05/0.3225, allocations: 8.359 kB / 1.09 GB, free: 14.86 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002036/0.3227, allocations: 66.22 kB / 1.09 GB, free: 14.79 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.072e-05/0.3227, allocations: 4.125 kB / 1.09 GB, free: 14.79 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.328e-05/0.3227, allocations: 3.938 kB / 1.09 GB, free: 14.79 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.005e-06/0.3228, allocations: 0 / 1.09 GB, free: 14.79 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001753/0.3229, allocations: 47.95 kB / 1.091 GB, free: 14.74 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004445/0.3234, allocations: 272.9 kB / 1.091 GB, free: 14.42 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001598/0.3236, allocations: 62.42 kB / 1.091 GB, free: 14.35 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001005/0.3237, allocations: 32.95 kB / 1.091 GB, free: 14.32 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.415e-05/0.3237, allocations: 16 kB / 1.091 GB, free: 14.3 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000175/0.3239, allocations: 71.38 kB / 1.091 GB, free: 14.22 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.363e-06/0.3239, allocations: 0 / 1.091 GB, free: 14.22 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0003938/0.3243, allocations: 121.5 kB / 1.091 GB, free: 14.09 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.985e-05/0.3243, allocations: 59.41 kB / 1.091 GB, free: 14.02 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.553e-05/0.3244, allocations: 109.8 kB / 1.091 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.269e-05/0.3245, allocations: 29.7 kB / 1.091 GB, free: 13.87 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.416e-05/0.3245, allocations: 84.08 kB / 1.091 GB, free: 13.79 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.594e-05/0.3245, allocations: 27.64 kB / 1.091 GB, free: 13.76 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.404e-05/0.3246, allocations: 25.7 kB / 1.091 GB, free: 13.73 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001034/0.3247, allocations: 318.8 kB / 1.092 GB, free: 13.41 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001082/0.3248, allocations: 27.97 kB / 1.092 GB, free: 13.38 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001121/0.3249, allocations: 64.2 kB / 1.092 GB, free: 13.3 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002023/0.3251, allocations: 100.1 kB / 1.092 GB, free: 13.19 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.3251, allocations: 0 / 1.092 GB, free: 13.19 MB / 0.8575 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002656/0.3254, allocations: 113.5 kB / 1.092 GB, free: 13.07 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.328e-05/0.3254, allocations: 4 kB / 1.092 GB, free: 13.07 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.3255, allocations: 4 kB / 1.092 GB, free: 13.06 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.378e-05/0.3255, allocations: 128 / 1.092 GB, free: 13.06 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001297/0.3256, allocations: 19.98 kB / 1.092 GB, free: 13.04 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.775e-06/0.3256, allocations: 4 kB / 1.092 GB, free: 13.04 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.862e-05/0.3257, allocations: 7.906 kB / 1.092 GB, free: 13.03 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.553e-05/0.3257, allocations: 8.297 kB / 1.092 GB, free: 13.02 MB / 0.8575 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 8.53e-05/0.3258, allocations: 121.7 kB / 1.092 GB, free: 12.89 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.299e-05/0.3258, allocations: 4 kB / 1.092 GB, free: 12.89 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002755/0.3261, allocations: 110 kB / 1.092 GB, free: 12.78 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.425e-06/0.3261, allocations: 0 / 1.092 GB, free: 12.78 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.02e-06/0.3261, allocations: 0 / 1.092 GB, free: 12.78 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.466e-06/0.3261, allocations: 0 / 1.092 GB, free: 12.78 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004349/0.3266, allocations: 366.4 kB / 1.093 GB, free: 12.36 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-06/0.3266, allocations: 3.984 kB / 1.093 GB, free: 12.36 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.156e-05/0.3267, allocations: 8 kB / 1.093 GB, free: 12.35 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/0.3267, allocations: 4 kB / 1.093 GB, free: 12.35 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.488e-06/0.3267, allocations: 48 / 1.093 GB, free: 12.35 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.115e-06/0.3267, allocations: 4.172 kB / 1.093 GB, free: 12.34 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.365e-06/0.3267, allocations: 3.984 kB / 1.093 GB, free: 12.34 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002933/0.327, allocations: 203.2 kB / 1.093 GB, free: 12.12 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.323e-05/0.327, allocations: 85.09 kB / 1.093 GB, free: 12.02 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.829e-05/0.3271, allocations: 0 / 1.093 GB, free: 12.02 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.886e-05/0.3272, allocations: 11.98 kB / 1.093 GB, free: 12.01 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.261e-05/0.3272, allocations: 8 kB / 1.093 GB, free: 12 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.771e-05/0.3272, allocations: 4.188 kB / 1.093 GB, free: 12 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.729e-05/0.3273, allocations: 91.27 kB / 1.093 GB, free: 11.91 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3273, allocations: 0 / 1.093 GB, free: 11.91 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.000248/0.3275, allocations: 23.84 kB / 1.093 GB, free: 11.89 MB / 0.8575 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.0001386/0.3277, allocations: 103.7 kB / 1.093 GB, free: 11.78 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002692/0.328, allocations: 79.88 kB / 1.093 GB, free: 11.7 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.328, allocations: 0 / 1.093 GB, free: 11.7 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001096/0.3281, allocations: 35.91 kB / 1.093 GB, free: 11.66 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002648/0.3284, allocations: 11.98 kB / 1.093 GB, free: 11.65 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003231/0.3287, allocations: 125.4 kB / 1.093 GB, free: 11.5 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002217/0.3289, allocations: 0.6926 MB / 1.094 GB, free: 10.78 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.069e-05/0.329, allocations: 4 kB / 1.094 GB, free: 10.78 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.25e-05/0.329, allocations: 7.438 kB / 1.094 GB, free: 10.77 MB / 0.8575 GB Notification: Performance of SimCode: time 2.4e-07/0.329, allocations: 0 / 1.094 GB, free: 10.77 MB / 0.8575 GB Notification: Performance of Templates: time 0.00338/0.3324, allocations: 0.8666 MB / 1.095 GB, free: 9.91 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches