Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firOrdHol.u|firOrdHol.y",fileNamePrefix="Buildings_9_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_9_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.009548/0.009549, allocations: 100.2 kB / 15.73 MB, free: 6.008 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.00286/0.00286, allocations: 193 kB / 16.67 MB, free: 5.93 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.459/1.459, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.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.309/2.309, allocations: 390.2 MB / 0.6648 GB, free: 0.6562 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001367/0.001367, allocations: 59.91 kB / 0.9508 GB, free: 7.656 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.121/1.122, allocations: 140.4 MB / 1.088 GB, free: 5.5 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.001992/1.124, allocations: 0.6787 MB / 1.089 GB, free: 5.07 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001341/1.125, allocations: 1.066 MB / 1.09 GB, free: 4.285 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.987e-05/1.125, allocations: 0 / 1.09 GB, free: 4.285 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.565e-05/1.125, allocations: 4.688 kB / 1.09 GB, free: 4.281 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 7.546e-05/1.125, allocations: 13.8 kB / 1.09 GB, free: 4.27 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003329/1.126, allocations: 49.16 kB / 1.09 GB, free: 4.242 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001719/1.126, allocations: 67.31 kB / 1.09 GB, free: 4.211 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001343/1.126, allocations: 11.11 kB / 1.09 GB, free: 4.207 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001014/1.126, allocations: 26.44 kB / 1.09 GB, free: 4.195 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 9.383e-05/1.126, allocations: 38.25 kB / 1.09 GB, free: 4.176 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.599e-05/1.126, allocations: 6 kB / 1.09 GB, free: 4.176 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 9.751e-05/1.126, allocations: 20.86 kB / 1.09 GB, free: 4.172 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.443e-05/1.127, allocations: 20.92 kB / 1.09 GB, free: 4.156 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 5.649e-05/1.127, allocations: 26.61 kB / 1.09 GB, free: 4.141 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002274/1.127, allocations: 81.42 kB / 1.09 GB, free: 4.105 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/1.127, allocations: 0 / 1.09 GB, free: 4.105 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.544e-06/1.127, allocations: 0 / 1.09 GB, free: 4.105 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.103e-05/1.127, allocations: 1.797 kB / 1.09 GB, free: 4.105 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0007831/1.128, allocations: 375.5 kB / 1.09 GB, free: 3.738 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.801e-05/1.128, allocations: 12.92 kB / 1.09 GB, free: 3.734 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.059e-05/1.128, allocations: 9.438 kB / 1.09 GB, free: 3.73 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001287/1.128, allocations: 181.6 kB / 1.091 GB, free: 3.52 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.523e-05/1.128, allocations: 3.844 kB / 1.091 GB, free: 3.52 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.742e-05/1.128, allocations: 10.81 kB / 1.091 GB, free: 3.516 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002779/1.128, allocations: 84.45 kB / 1.091 GB, free: 3.465 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.46e-05/1.128, allocations: 0.9062 kB / 1.091 GB, free: 3.465 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.048e-05/1.128, allocations: 5.375 kB / 1.091 GB, free: 3.461 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.715e-06/1.128, allocations: 0.8438 kB / 1.091 GB, free: 3.461 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002508/1.129, allocations: 58.27 kB / 1.091 GB, free: 3.445 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006414/1.129, allocations: 308.3 kB / 1.091 GB, free: 3.152 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002438/1.13, allocations: 84.84 kB / 1.091 GB, free: 3.105 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001465/1.13, allocations: 48.19 kB / 1.091 GB, free: 3.082 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.558e-05/1.13, allocations: 1.781 kB / 1.091 GB, free: 3.082 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000244/1.13, allocations: 90.45 kB / 1.091 GB, free: 3.02 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=10): time 1.613e-06/1.13, allocations: 1 kB / 1.091 GB, free: 3.02 MB / 0.8575 GB Notification: Performance of matching and sorting (n=10): time 0.0006015/1.131, allocations: 175.5 kB / 1.091 GB, free: 2.945 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.39e-05/1.131, allocations: 55.8 kB / 1.091 GB, free: 2.883 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.265e-05/1.131, allocations: 105.1 kB / 1.092 GB, free: 2.781 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.556e-05/1.131, allocations: 32.89 kB / 1.092 GB, free: 2.746 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.657e-05/1.131, allocations: 87.33 kB / 1.092 GB, free: 2.656 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.941e-05/1.131, allocations: 29.91 kB / 1.092 GB, free: 2.633 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.972e-05/1.131, allocations: 31 kB / 1.092 GB, free: 2.609 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 8.451e-05/1.131, allocations: 319.7 kB / 1.092 GB, free: 2.293 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001423/1.131, allocations: 44.59 kB / 1.092 GB, free: 2.277 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001701/1.131, allocations: 67.62 kB / 1.092 GB, free: 2.238 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002868/1.132, allocations: 106.8 kB / 1.092 GB, free: 2.18 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.038e-06/1.132, allocations: 4.656 kB / 1.092 GB, free: 2.176 MB / 0.8575 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003479/1.132, allocations: 137.4 kB / 1.092 GB, free: 2.113 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.014e-05/1.132, allocations: 7.469 kB / 1.092 GB, free: 2.113 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/1.132, allocations: 1.406 kB / 1.092 GB, free: 2.113 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.675e-05/1.132, allocations: 2.469 kB / 1.092 GB, free: 2.113 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001369/1.132, allocations: 22.73 kB / 1.092 GB, free: 2.109 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.016e-06/1.132, allocations: 1.469 kB / 1.092 GB, free: 2.109 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.284e-05/1.132, allocations: 12.19 kB / 1.092 GB, free: 2.105 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.794e-05/1.132, allocations: 4.5 kB / 1.092 GB, free: 2.105 MB / 0.8575 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 8.312e-05/1.132, allocations: 133.2 kB / 1.092 GB, free: 1.973 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.614e-05/1.132, allocations: 10.98 kB / 1.093 GB, free: 1.965 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000364/1.133, allocations: 144.2 kB / 1.093 GB, free: 1.898 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-06/1.133, allocations: 1.672 kB / 1.093 GB, free: 1.898 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/1.133, allocations: 0 / 1.093 GB, free: 1.898 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/1.133, allocations: 5.734 kB / 1.093 GB, free: 1.895 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004991/1.133, allocations: 412.2 kB / 1.093 GB, free: 1.547 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/1.133, allocations: 0 / 1.093 GB, free: 1.547 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.5e-05/1.133, allocations: 11.59 kB / 1.093 GB, free: 1.547 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/1.133, allocations: 256 / 1.093 GB, free: 1.547 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.395e-05/1.133, allocations: 3.188 kB / 1.093 GB, free: 1.547 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.053e-06/1.133, allocations: 4 kB / 1.093 GB, free: 1.543 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/1.133, allocations: 4.844 kB / 1.093 GB, free: 1.539 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003488/1.134, allocations: 243.4 kB / 1.093 GB, free: 1.367 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.65e-05/1.134, allocations: 84.27 kB / 1.093 GB, free: 1.27 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.052e-05/1.134, allocations: 1.578 kB / 1.093 GB, free: 1.27 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001069/1.134, allocations: 9.016 kB / 1.093 GB, free: 1.27 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.33e-05/1.134, allocations: 10.2 kB / 1.093 GB, free: 1.266 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.227e-05/1.134, allocations: 14.7 kB / 1.093 GB, free: 1.254 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.284e-05/1.134, allocations: 82.81 kB / 1.093 GB, free: 1.18 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.31e-07/1.134, allocations: 0 / 1.093 GB, free: 1.18 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002432/1.134, allocations: 19.67 kB / 1.094 GB, free: 1.176 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: 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.0001419/1.134, allocations: 106.5 kB / 1.094 GB, free: 1.086 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003397/1.135, allocations: 93.73 kB / 1.094 GB, free: 1.066 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/1.135, allocations: 4.062 kB / 1.094 GB, free: 1.062 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001604/1.135, allocations: 55.44 kB / 1.094 GB, free: 1.043 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002856/1.135, allocations: 11.23 kB / 1.094 GB, free: 1.039 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004267/1.136, allocations: 158.5 kB / 1.094 GB, free: 0.9023 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001927/1.136, allocations: 0.6893 MB / 1.095 GB, free: 208 kB / 0.8575 GB Notification: Performance of simCode: alias equations: time 4.398e-05/1.136, allocations: 11.28 kB / 1.095 GB, free: 204 kB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.411e-05/1.136, allocations: 13.11 kB / 1.095 GB, free: 196 kB / 0.8575 GB Notification: Performance of SimCode: time 1.193e-06/1.136, allocations: 0 / 1.095 GB, free: 196 kB / 0.8575 GB Notification: Performance of Templates: time 0.004068/1.14, allocations: 1.032 MB / 1.096 GB, free: 84 kB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches