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.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.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.001662/0.001662, allocations: 104.1 kB / 15.88 MB, free: 4 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.001882/0.001882, allocations: 196.5 kB / 16.79 MB, free: 6.832 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.427/1.427, allocations: 222.9 MB / 240.5 MB, free: 4.551 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.741/2.741, allocations: 437 MB / 0.7106 GB, free: 5.344 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0016/0.0016, allocations: 63.91 kB / 0.8692 GB, free: 5.184 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7362/0.7379, allocations: 151.6 MB / 1.017 GB, free: 2.797 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.001987/0.7399, allocations: 0.7599 MB / 1.018 GB, free: 2.043 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001318/0.7412, allocations: 1.066 MB / 1.019 GB, free: 0.9609 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.993e-05/0.7413, allocations: 3.938 kB / 1.019 GB, free: 0.957 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.095e-05/0.7413, allocations: 0 / 1.019 GB, free: 0.957 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 6.659e-05/0.7414, allocations: 7.938 kB / 1.019 GB, free: 0.9492 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002564/0.7417, allocations: 39.95 kB / 1.019 GB, free: 0.9102 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 8.378e-05/0.7418, allocations: 59.84 kB / 1.019 GB, free: 0.8516 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 9.272e-05/0.7419, allocations: 23.95 kB / 1.019 GB, free: 0.8281 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 6.742e-05/0.7419, allocations: 19.92 kB / 1.019 GB, free: 0.8086 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 5.68e-05/0.742, allocations: 31.84 kB / 1.019 GB, free: 0.7773 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.51e-05/0.742, allocations: 4 kB / 1.019 GB, free: 0.7734 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 7.02e-05/0.7421, allocations: 23.97 kB / 1.019 GB, free: 0.75 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.201e-05/0.7421, allocations: 15.98 kB / 1.019 GB, free: 0.7344 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 3.872e-05/0.7422, allocations: 19.88 kB / 1.019 GB, free: 0.7148 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001186/0.7423, allocations: 59.88 kB / 1.019 GB, free: 0.6562 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 5.981e-06/0.7423, allocations: 0 / 1.019 GB, free: 0.6562 MB / 0.7637 GB Notification: Performance of FrontEnd: time 9.62e-07/0.7423, allocations: 3.938 kB / 1.019 GB, free: 0.6523 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 4.388e-06/0.7423, allocations: 0 / 1.019 GB, free: 0.6523 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0006169/0.7429, allocations: 385.3 kB / 1.02 GB, free: 232 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.667e-05/0.743, allocations: 8.031 kB / 1.02 GB, free: 224 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.198e-05/0.743, allocations: 16.78 kB / 1.02 GB, free: 208 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.74e-05/0.7431, allocations: 164.4 kB / 1.02 GB, free: 4 kB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.248e-05/0.7432, allocations: 4.359 kB / 1.02 GB, free: 0 / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.799e-05/0.7432, allocations: 8.422 kB / 1.02 GB, free: 15.99 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002219/0.7434, allocations: 78.17 kB / 1.02 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.546e-06/0.7435, allocations: 192 / 1.02 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.583e-05/0.7435, allocations: 7.922 kB / 1.02 GB, free: 15.9 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.349e-06/0.7435, allocations: 0 / 1.02 GB, free: 15.9 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000205/0.7437, allocations: 63.89 kB / 1.02 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005142/0.7442, allocations: 308.7 kB / 1.02 GB, free: 15.49 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001916/0.7444, allocations: 90.39 kB / 1.02 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001211/0.7446, allocations: 48.83 kB / 1.02 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.616e-05/0.7446, allocations: 8.109 kB / 1.021 GB, free: 15.33 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002602/0.7449, allocations: 87.36 kB / 1.021 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=10): time 1.713e-06/0.7449, allocations: 4 kB / 1.021 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of matching and sorting (n=10): time 0.0004951/0.7454, allocations: 165.6 kB / 1.021 GB, free: 15.06 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.462e-05/0.7454, allocations: 59.39 kB / 1.021 GB, free: 14.99 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.739e-05/0.7455, allocations: 109.8 kB / 1.021 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.257e-05/0.7456, allocations: 33.7 kB / 1.021 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.077e-05/0.7456, allocations: 84.48 kB / 1.021 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.896e-05/0.7457, allocations: 31.58 kB / 1.021 GB, free: 14.71 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.215e-05/0.7457, allocations: 29.72 kB / 1.021 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001171/0.7458, allocations: 318.8 kB / 1.021 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000131/0.746, allocations: 39.97 kB / 1.021 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001376/0.7461, allocations: 66.48 kB / 1.021 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002325/0.7464, allocations: 98.47 kB / 1.022 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.7464, allocations: 4 kB / 1.022 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003192/0.7467, allocations: 137.5 kB / 1.022 GB, free: 14 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.611e-05/0.7467, allocations: 4 kB / 1.022 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.419e-06/0.7467, allocations: 0 / 1.022 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.398e-05/0.7468, allocations: 4 kB / 1.022 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001347/0.7469, allocations: 31.86 kB / 1.022 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.826e-06/0.7469, allocations: 3.984 kB / 1.022 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.897e-05/0.747, allocations: 8.062 kB / 1.022 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.641e-05/0.747, allocations: 8 kB / 1.022 GB, free: 13.94 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.000113/0.7471, allocations: 130.5 kB / 1.022 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.445e-05/0.7471, allocations: 4.281 kB / 1.022 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003479/0.7475, allocations: 153.8 kB / 1.022 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.7475, allocations: 0 / 1.022 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.477e-06/0.7475, allocations: 4 kB / 1.022 GB, free: 13.63 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/0.7475, allocations: 0 / 1.022 GB, free: 13.63 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005082/0.748, allocations: 414.3 kB / 1.022 GB, free: 13.17 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.7481, allocations: 0 / 1.022 GB, free: 13.17 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.954e-05/0.7481, allocations: 11.98 kB / 1.022 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.893e-06/0.7481, allocations: 0 / 1.022 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.054e-05/0.7481, allocations: 0 / 1.022 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.7482, allocations: 0 / 1.022 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.7482, allocations: 8.25 kB / 1.022 GB, free: 13.15 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003468/0.7485, allocations: 239.3 kB / 1.023 GB, free: 12.9 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.919e-05/0.7486, allocations: 81.02 kB / 1.023 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.148e-05/0.7486, allocations: 8 kB / 1.023 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000109/0.7487, allocations: 7.984 kB / 1.023 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.494e-05/0.7488, allocations: 15.98 kB / 1.023 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.193e-05/0.7488, allocations: 7.938 kB / 1.023 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.797e-05/0.7488, allocations: 83.27 kB / 1.023 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1e-07/0.7488, allocations: 0 / 1.023 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002498/0.7491, allocations: 20 kB / 1.023 GB, free: 12.66 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.0001421/0.7492, allocations: 104.5 kB / 1.023 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003002/0.7496, allocations: 99.81 kB / 1.023 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.7496, allocations: 4.281 kB / 1.023 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.000134/0.7497, allocations: 47.91 kB / 1.023 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002669/0.75, allocations: 17.88 kB / 1.023 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003837/0.7504, allocations: 206.2 kB / 1.023 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002533/0.7506, allocations: 0.6887 MB / 1.024 GB, free: 11.44 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.491e-05/0.7507, allocations: 11.44 kB / 1.024 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of SimCode: time 2.11e-07/0.7507, allocations: 0 / 1.024 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of Templates: time 0.002509/0.7532, allocations: 1.093 MB / 1.025 GB, free: 10.34 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/jenkins1/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