Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001994/0.001994, allocations: 108 kB / 15.6 MB, free: 132 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.002367/0.002367, allocations: 195.9 kB / 16.53 MB, free: 6.391 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.66/1.66, allocations: 222.9 MB / 240.2 MB, free: 4.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.987/2.987, allocations: 437 MB / 0.7104 GB, free: 5.023 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00194/0.00194, allocations: 67.89 kB / 0.8692 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.868/0.8699, allocations: 151.6 MB / 1.017 GB, free: 2.477 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.002199/0.8722, allocations: 0.6733 MB / 1.018 GB, free: 1.805 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001562/0.8737, allocations: 1.058 MB / 1.019 GB, free: 0.7305 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.132e-05/0.8738, allocations: 0 / 1.019 GB, free: 0.7305 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.506e-05/0.8739, allocations: 3.938 kB / 1.019 GB, free: 0.7266 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 7.346e-05/0.8739, allocations: 7.938 kB / 1.019 GB, free: 0.7188 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003267/0.8743, allocations: 47.83 kB / 1.019 GB, free: 0.6719 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001016/0.8744, allocations: 55.78 kB / 1.019 GB, free: 0.6172 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001105/0.8745, allocations: 12 kB / 1.019 GB, free: 0.6055 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 7.408e-05/0.8746, allocations: 19.92 kB / 1.019 GB, free: 0.5859 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 5.907e-05/0.8747, allocations: 23.91 kB / 1.019 GB, free: 0.5625 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.614e-05/0.8747, allocations: 4 kB / 1.019 GB, free: 0.5586 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 7.664e-05/0.8748, allocations: 19.98 kB / 1.019 GB, free: 0.5391 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.121e-05/0.8748, allocations: 7.984 kB / 1.019 GB, free: 0.5312 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 5.448e-05/0.8748, allocations: 31.86 kB / 1.019 GB, free: 0.5 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001519/0.875, allocations: 51.84 kB / 1.019 GB, free: 460 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.875, allocations: 0 / 1.019 GB, free: 460 kB / 0.7637 GB Notification: Performance of FrontEnd: time 1.773e-06/0.875, allocations: 0 / 1.019 GB, free: 460 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 9.428e-06/0.875, allocations: 0 / 1.019 GB, free: 460 kB / 0.7637 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.000702/0.8757, allocations: 373.3 kB / 1.02 GB, free: 36 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.682e-05/0.8758, allocations: 8.031 kB / 1.02 GB, free: 28 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.265e-05/0.8758, allocations: 8.922 kB / 1.02 GB, free: 20 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001784/0.876, allocations: 172.2 kB / 1.02 GB, free: 15.81 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.682e-05/0.876, allocations: 4.375 kB / 1.02 GB, free: 15.81 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.903e-05/0.8761, allocations: 4.312 kB / 1.02 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002264/0.8763, allocations: 70.16 kB / 1.02 GB, free: 15.73 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.081e-05/0.8763, allocations: 192 / 1.02 GB, free: 15.73 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.74e-05/0.8763, allocations: 7.938 kB / 1.02 GB, free: 15.72 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.006e-06/0.8764, allocations: 4 kB / 1.02 GB, free: 15.72 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001944/0.8766, allocations: 43.95 kB / 1.02 GB, free: 15.68 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005211/0.8771, allocations: 276.9 kB / 1.02 GB, free: 15.36 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001918/0.8773, allocations: 66.42 kB / 1.02 GB, free: 15.28 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001061/0.8774, allocations: 28.97 kB / 1.02 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.136e-05/0.8774, allocations: 4 kB / 1.02 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002658/0.8777, allocations: 75.38 kB / 1.02 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.543e-06/0.8777, allocations: 0 / 1.02 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0005559/0.8783, allocations: 129.5 kB / 1.02 GB, free: 15.03 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.739e-05/0.8784, allocations: 59.41 kB / 1.021 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001326/0.8785, allocations: 105.8 kB / 1.021 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.587e-05/0.8785, allocations: 25.7 kB / 1.021 GB, free: 14.81 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.125e-05/0.8786, allocations: 92.08 kB / 1.021 GB, free: 14.72 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.396e-05/0.8787, allocations: 11.8 kB / 1.021 GB, free: 14.71 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.685e-05/0.8787, allocations: 25.72 kB / 1.021 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0002758/0.879, allocations: 314.8 kB / 1.021 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001555/0.8792, allocations: 27.98 kB / 1.021 GB, free: 14.33 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000182/0.8794, allocations: 60.27 kB / 1.021 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003438/0.8797, allocations: 104 kB / 1.021 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.8798, allocations: 0 / 1.021 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004266/0.8802, allocations: 117.5 kB / 1.021 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.998e-05/0.8802, allocations: 4 kB / 1.021 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.8802, allocations: 0 / 1.021 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.479e-05/0.8803, allocations: 4 kB / 1.021 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001628/0.8804, allocations: 24.05 kB / 1.021 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.289e-05/0.8805, allocations: 3.984 kB / 1.021 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001128/0.8806, allocations: 12 kB / 1.021 GB, free: 13.97 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.383e-05/0.8806, allocations: 0 / 1.021 GB, free: 13.97 MB / 0.7794 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 0.0001599/0.8808, allocations: 127.3 kB / 1.022 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.373e-05/0.8808, allocations: 7.891 kB / 1.022 GB, free: 13.83 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004186/0.8812, allocations: 110 kB / 1.022 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.041e-06/0.8813, allocations: 4 kB / 1.022 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.096e-05/0.8813, allocations: 192 / 1.022 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.639e-06/0.8813, allocations: 3.938 kB / 1.022 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000699/0.882, allocations: 358.4 kB / 1.022 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.882, allocations: 3.938 kB / 1.022 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.242e-05/0.8821, allocations: 11.98 kB / 1.022 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.394e-06/0.8821, allocations: 4 kB / 1.022 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.878e-06/0.8822, allocations: 0 / 1.022 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.238e-06/0.8822, allocations: 4.25 kB / 1.022 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.8822, allocations: 0 / 1.022 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004485/0.8826, allocations: 203.3 kB / 1.022 GB, free: 13.06 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 6.456e-05/0.8827, allocations: 81.11 kB / 1.022 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.569e-05/0.8827, allocations: 0 / 1.022 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001595/0.8829, allocations: 19.98 kB / 1.022 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.762e-05/0.883, allocations: 3.984 kB / 1.022 GB, free: 12.94 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.102e-05/0.883, allocations: 7.938 kB / 1.022 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 7.264e-05/0.8831, allocations: 83.28 kB / 1.022 GB, free: 12.85 MB / 0.7794 GB Notification: Performance of sort global known variables: time 3.035e-06/0.8831, allocations: 0 / 1.022 GB, free: 12.85 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0004685/0.8836, allocations: 15.94 kB / 1.022 GB, free: 12.84 MB / 0.7794 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.0002193/0.8838, allocations: 111.2 kB / 1.023 GB, free: 12.72 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004011/0.8842, allocations: 76.44 kB / 1.023 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.8842, allocations: 0 / 1.023 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.000174/0.8844, allocations: 31.97 kB / 1.023 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004398/0.8849, allocations: 4 kB / 1.023 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005014/0.8854, allocations: 150.4 kB / 1.023 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006262/0.886, allocations: 0.6807 MB / 1.023 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 5.936e-05/0.8861, allocations: 7.984 kB / 1.023 GB, free: 11.72 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.278e-05/0.8862, allocations: 11.44 kB / 1.023 GB, free: 11.71 MB / 0.7794 GB Notification: Performance of SimCode: time 3.71e-07/0.8862, allocations: 0 / 1.023 GB, free: 11.71 MB / 0.7794 GB Notification: Performance of Templates: time 0.005909/0.8921, allocations: 0.8332 MB / 1.024 GB, free: 10.89 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches