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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.001194/0.001195, allocations: 100.1 kB / 15.88 MB, free: 12 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.001327/0.001327, allocations: 196.1 kB / 16.79 MB, free: 6.809 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.441/1.441, allocations: 222.9 MB / 240.5 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.696/2.696, allocations: 437 MB / 0.7106 GB, free: 5.371 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001606/0.001606, allocations: 63.91 kB / 0.8692 GB, free: 5.219 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6887/0.6904, allocations: 151.6 MB / 1.017 GB, free: 2.848 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.002393/0.6928, allocations: 0.7459 MB / 1.018 GB, free: 2.105 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001546/0.6944, allocations: 1.05 MB / 1.019 GB, free: 1.039 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.998e-05/0.6944, allocations: 4 kB / 1.019 GB, free: 1.035 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.998e-05/0.6945, allocations: 3.984 kB / 1.019 GB, free: 1.031 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 8.119e-05/0.6946, allocations: 7.922 kB / 1.019 GB, free: 1.023 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002944/0.6949, allocations: 43.84 kB / 1.019 GB, free: 0.9805 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 9.799e-05/0.695, allocations: 43.91 kB / 1.019 GB, free: 0.9375 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001034/0.6951, allocations: 11.94 kB / 1.019 GB, free: 0.9258 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 7.841e-05/0.6952, allocations: 19.92 kB / 1.019 GB, free: 0.9062 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 5.964e-05/0.6953, allocations: 19.92 kB / 1.019 GB, free: 0.8867 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.873e-05/0.6953, allocations: 4 kB / 1.019 GB, free: 0.8828 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 7.967e-05/0.6954, allocations: 15.97 kB / 1.019 GB, free: 0.8672 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.985e-05/0.6954, allocations: 11.98 kB / 1.019 GB, free: 0.8555 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 4.26e-05/0.6955, allocations: 23.86 kB / 1.019 GB, free: 0.832 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001169/0.6956, allocations: 43.92 kB / 1.019 GB, free: 0.7891 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.6956, allocations: 0 / 1.019 GB, free: 0.7891 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.102e-06/0.6956, allocations: 0 / 1.019 GB, free: 0.7891 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 3.968e-06/0.6956, allocations: 0 / 1.019 GB, free: 0.7891 MB / 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.0006743/0.6963, allocations: 373.3 kB / 1.02 GB, free: 384 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 4.482e-05/0.6964, allocations: 12.03 kB / 1.02 GB, free: 372 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.439e-05/0.6964, allocations: 0.9375 kB / 1.02 GB, free: 372 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001195/0.6965, allocations: 172.3 kB / 1.02 GB, free: 160 kB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.095e-05/0.6966, allocations: 384 / 1.02 GB, free: 160 kB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.706e-05/0.6966, allocations: 8.375 kB / 1.02 GB, free: 152 kB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002253/0.6968, allocations: 70.16 kB / 1.02 GB, free: 76 kB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.207e-06/0.6968, allocations: 192 / 1.02 GB, free: 76 kB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.552e-05/0.6969, allocations: 3.938 kB / 1.02 GB, free: 72 kB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.156e-05/0.6969, allocations: 3.984 kB / 1.02 GB, free: 68 kB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001937/0.6971, allocations: 43.89 kB / 1.02 GB, free: 24 kB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005026/0.6976, allocations: 280.9 kB / 1.02 GB, free: 15.7 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001844/0.6978, allocations: 62.36 kB / 1.02 GB, free: 15.63 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001044/0.6979, allocations: 32.95 kB / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.449e-05/0.6979, allocations: 4.078 kB / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002413/0.6982, allocations: 79.36 kB / 1.02 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.593e-06/0.6982, allocations: 0 / 1.02 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0004472/0.6986, allocations: 129.5 kB / 1.02 GB, free: 15.37 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.466e-05/0.6987, allocations: 55.41 kB / 1.021 GB, free: 15.3 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.852e-05/0.6988, allocations: 101.9 kB / 1.021 GB, free: 15.19 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.932e-05/0.6988, allocations: 33.69 kB / 1.021 GB, free: 15.15 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.674e-05/0.6989, allocations: 88.08 kB / 1.021 GB, free: 15.06 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.448e-05/0.6989, allocations: 11.81 kB / 1.021 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.991e-05/0.699, allocations: 25.7 kB / 1.021 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001275/0.6991, allocations: 318.8 kB / 1.021 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001051/0.6992, allocations: 27.97 kB / 1.021 GB, free: 14.67 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001219/0.6993, allocations: 60.27 kB / 1.021 GB, free: 14.6 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002188/0.6996, allocations: 96.12 kB / 1.021 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.6996, allocations: 0 / 1.021 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000291/0.6999, allocations: 117.4 kB / 1.021 GB, free: 14.37 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.652e-05/0.6999, allocations: 4 kB / 1.021 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.6999, allocations: 4 kB / 1.021 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.509e-05/0.6999, allocations: 0 / 1.021 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001204/0.7001, allocations: 24.05 kB / 1.021 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.428e-06/0.7001, allocations: 4 kB / 1.021 GB, free: 14.33 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.476e-05/0.7002, allocations: 8 kB / 1.021 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.706e-05/0.7002, allocations: 7.984 kB / 1.021 GB, free: 14.32 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 9.633e-05/0.7003, allocations: 123.8 kB / 1.022 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.704e-05/0.7003, allocations: 7.906 kB / 1.022 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003031/0.7006, allocations: 114.2 kB / 1.022 GB, free: 14.06 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.045e-06/0.7006, allocations: 0 / 1.022 GB, free: 14.06 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.7006, allocations: 256 / 1.022 GB, free: 14.06 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.7006, allocations: 0 / 1.022 GB, free: 14.06 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004634/0.7011, allocations: 362.5 kB / 1.022 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.11e-06/0.7011, allocations: 4 kB / 1.022 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.642e-05/0.7012, allocations: 11.92 kB / 1.022 GB, free: 13.63 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.058e-06/0.7012, allocations: 7.938 kB / 1.022 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.294e-05/0.7012, allocations: 8 kB / 1.022 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.348e-06/0.7012, allocations: 4.172 kB / 1.022 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.7012, allocations: 0 / 1.022 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003156/0.7016, allocations: 195.3 kB / 1.022 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.119e-05/0.7016, allocations: 81.09 kB / 1.022 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.207e-05/0.7017, allocations: 8 kB / 1.022 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001011/0.7018, allocations: 8 kB / 1.022 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.623e-05/0.7018, allocations: 12.02 kB / 1.022 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.57e-05/0.7018, allocations: 3.938 kB / 1.022 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.683e-05/0.7019, allocations: 87.27 kB / 1.022 GB, free: 13.19 MB / 0.7794 GB Notification: Performance of sort global known variables: time 2.1e-07/0.7019, allocations: 0 / 1.022 GB, free: 13.19 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002502/0.7021, allocations: 12 kB / 1.022 GB, free: 13.18 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.0001713/0.7023, allocations: 111.2 kB / 1.023 GB, free: 13.06 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002743/0.7026, allocations: 71.88 kB / 1.023 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.7026, allocations: 8 kB / 1.023 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001207/0.7027, allocations: 31.97 kB / 1.023 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002841/0.703, allocations: 9.703 kB / 1.023 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003964/0.7034, allocations: 185.7 kB / 1.023 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002623/0.7037, allocations: 0.6809 MB / 1.024 GB, free: 12.02 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.145e-05/0.7038, allocations: 15.38 kB / 1.024 GB, free: 12.01 MB / 0.7794 GB Notification: Performance of SimCode: time 4.2e-07/0.7038, allocations: 0 / 1.024 GB, free: 12.01 MB / 0.7794 GB Notification: Performance of Templates: time 0.002656/0.7064, allocations: 0.8996 MB / 1.024 GB, free: 11.12 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=480 -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/jenkins1/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