Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.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.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firOrdHol.u|firOrdHol.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firOrdHol.u|firOrdHol.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00237/0.00237, 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.003347/0.003347, allocations: 195.3 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.466/1.466, allocations: 222.9 MB / 240.2 MB, free: 4.402 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.703/2.703, allocations: 437 MB / 0.7104 GB, free: 5.141 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001796/0.001797, allocations: 67.89 kB / 0.8692 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8162/0.818, allocations: 151.6 MB / 1.017 GB, free: 2.535 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.002158/0.8202, allocations: 0.6867 MB / 1.018 GB, free: 1.852 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001397/0.8216, allocations: 1.066 MB / 1.019 GB, free: 0.7695 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.303e-05/0.8217, allocations: 0 / 1.019 GB, free: 0.7695 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.657e-05/0.8217, allocations: 7.922 kB / 1.019 GB, free: 0.7617 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 7.066e-05/0.8218, allocations: 15.8 kB / 1.019 GB, free: 0.7461 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002979/0.8221, allocations: 43.89 kB / 1.019 GB, free: 0.7031 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001015/0.8222, allocations: 71.83 kB / 1.019 GB, free: 0.6328 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001137/0.8224, allocations: 7.984 kB / 1.019 GB, free: 0.625 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 8.229e-05/0.8225, allocations: 31.92 kB / 1.019 GB, free: 0.5938 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 6.87e-05/0.8225, allocations: 35.89 kB / 1.019 GB, free: 0.5586 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.977e-05/0.8226, allocations: 15.88 kB / 1.019 GB, free: 0.543 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 7.668e-05/0.8226, allocations: 15.98 kB / 1.019 GB, free: 0.5273 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.175e-05/0.8227, allocations: 11.98 kB / 1.019 GB, free: 0.5156 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 5.65e-05/0.8227, allocations: 35.84 kB / 1.019 GB, free: 492 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001384/0.8229, allocations: 67.83 kB / 1.019 GB, free: 424 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.8229, allocations: 0 / 1.019 GB, free: 424 kB / 0.7637 GB Notification: Performance of FrontEnd: time 3.075e-06/0.8229, allocations: 0 / 1.019 GB, free: 424 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 8.405e-06/0.8229, allocations: 3.938 kB / 1.019 GB, free: 420 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0007082/0.8236, allocations: 389.3 kB / 1.02 GB, free: 15.98 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.997e-05/0.8237, allocations: 12.03 kB / 1.02 GB, free: 15.96 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.064e-05/0.8237, allocations: 12.78 kB / 1.02 GB, free: 15.95 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001192/0.8239, allocations: 164.3 kB / 1.02 GB, free: 15.76 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.832e-05/0.8239, allocations: 8.375 kB / 1.02 GB, free: 15.75 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.652e-05/0.8239, allocations: 4.375 kB / 1.02 GB, free: 15.75 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002285/0.8242, allocations: 82.2 kB / 1.02 GB, free: 15.66 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.011e-05/0.8242, allocations: 4.188 kB / 1.02 GB, free: 15.66 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.573e-05/0.8242, allocations: 3.938 kB / 1.02 GB, free: 15.65 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.17e-06/0.8242, allocations: 0 / 1.02 GB, free: 15.65 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002106/0.8244, allocations: 55.89 kB / 1.02 GB, free: 15.6 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005307/0.825, allocations: 316.7 kB / 1.02 GB, free: 15.24 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001976/0.8252, allocations: 82.48 kB / 1.02 GB, free: 15.15 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001217/0.8253, allocations: 40.83 kB / 1.02 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.635e-05/0.8253, allocations: 0 / 1.02 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002584/0.8256, allocations: 95.48 kB / 1.021 GB, free: 15 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=10): time 3.847e-06/0.8256, allocations: 112 / 1.021 GB, free: 15 MB / 0.7794 GB Notification: Performance of matching and sorting (n=10): time 0.0005144/0.8261, allocations: 173.5 kB / 1.021 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.423e-05/0.8262, allocations: 59.78 kB / 1.021 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.258e-05/0.8263, allocations: 109.8 kB / 1.021 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.409e-05/0.8263, allocations: 29.7 kB / 1.021 GB, free: 14.6 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.374e-05/0.8264, allocations: 84.38 kB / 1.021 GB, free: 14.51 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.251e-05/0.8264, allocations: 39.56 kB / 1.021 GB, free: 14.47 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.037e-05/0.8265, allocations: 33.7 kB / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001345/0.8266, allocations: 318.8 kB / 1.021 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001174/0.8267, allocations: 35.97 kB / 1.021 GB, free: 14.08 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001336/0.8269, allocations: 62.53 kB / 1.021 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002512/0.8271, allocations: 106.4 kB / 1.022 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.8272, allocations: 0 / 1.022 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003119/0.8275, allocations: 141.4 kB / 1.022 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.944e-05/0.8275, allocations: 7.984 kB / 1.022 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.552e-06/0.8275, allocations: 4.062 kB / 1.022 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.101e-05/0.8275, allocations: 4 kB / 1.022 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001397/0.8277, allocations: 19.92 kB / 1.022 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.226e-05/0.8277, allocations: 7.984 kB / 1.022 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.606e-05/0.8278, allocations: 11.98 kB / 1.022 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.328e-05/0.8278, allocations: 7.984 kB / 1.022 GB, free: 13.69 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 12 (firOrdHol.firstTrigger,$PRE.firOrdHol.firstTrigger,firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.c,$PRE.firOrdHol.c,firOrdHol.pre_uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.uSample,$PRE.firOrdHol.uSample,firOrdHol.tSample,$PRE.firOrdHol.tSample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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.0001043/0.8279, allocations: 117.8 kB / 1.022 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.647e-05/0.8279, allocations: 11.91 kB / 1.022 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003605/0.8283, allocations: 150.1 kB / 1.022 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.875e-06/0.8283, allocations: 0 / 1.022 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.692e-06/0.8283, allocations: 4 kB / 1.022 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.8283, allocations: 0 / 1.022 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005249/0.8289, allocations: 406.4 kB / 1.022 GB, free: 12.94 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.674e-06/0.8289, allocations: 3.938 kB / 1.022 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.858e-05/0.829, allocations: 15.98 kB / 1.022 GB, free: 12.92 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.829, allocations: 0 / 1.022 GB, free: 12.92 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.352e-05/0.829, allocations: 4 kB / 1.022 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.008e-06/0.829, allocations: 3.984 kB / 1.022 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.829, allocations: 0 / 1.022 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003576/0.8294, allocations: 239.4 kB / 1.023 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.953e-05/0.8294, allocations: 85.02 kB / 1.023 GB, free: 12.56 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.432e-05/0.8294, allocations: 11.98 kB / 1.023 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001009/0.8295, allocations: 4 kB / 1.023 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.841e-05/0.8296, allocations: 7.984 kB / 1.023 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.037e-06/0.8296, allocations: 3.938 kB / 1.023 GB, free: 12.53 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.35e-05/0.8297, allocations: 91.27 kB / 1.023 GB, free: 12.44 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8297, allocations: 0 / 1.023 GB, free: 12.44 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002591/0.8299, allocations: 16 kB / 1.023 GB, free: 12.43 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: 7 (firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.firstTrigger,firOrdHol.tSample,firOrdHol.uSample,firOrdHol.pre_uSample,firOrdHol.c) * Number of discrete states: 2 (firOrdHol.uSample,firOrdHol.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0001614/0.8301, allocations: 115.2 kB / 1.023 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.000323/0.8304, allocations: 107.8 kB / 1.023 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.8305, allocations: 0 / 1.023 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001403/0.8306, allocations: 47.97 kB / 1.023 GB, free: 12.15 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002728/0.8309, allocations: 8 kB / 1.023 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004057/0.8313, allocations: 158.8 kB / 1.023 GB, free: 11.96 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002739/0.8316, allocations: 0.6885 MB / 1.024 GB, free: 11.25 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.67e-05/0.8316, allocations: 4.438 kB / 1.024 GB, free: 11.24 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.195e-05/0.8317, allocations: 15.42 kB / 1.024 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of SimCode: time 2.11e-07/0.8317, allocations: 4 kB / 1.024 GB, free: 11.22 MB / 0.7794 GB Notification: Performance of Templates: time 0.003652/0.8353, allocations: 1.031 MB / 1.025 GB, free: 10.2 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches