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.009132/0.009133, allocations: 100.8 kB / 15.73 MB, free: 6.051 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.001656/0.001656, allocations: 192.8 kB / 16.67 MB, free: 5.969 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.476/1.476, allocations: 222.9 MB / 240.4 MB, free: 15.14 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.375/2.375, allocations: 390.2 MB / 0.6648 GB, free: 0.6367 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001364/0.001364, allocations: 63.91 kB / 0.9508 GB, free: 7.641 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.949/0.9503, allocations: 140.4 MB / 1.088 GB, free: 5.52 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.001811/0.9522, allocations: 0.6863 MB / 1.089 GB, free: 5.082 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.00126/0.9535, allocations: 1.063 MB / 1.09 GB, free: 4.297 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.051e-05/0.9535, allocations: 1.156 kB / 1.09 GB, free: 4.297 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.692e-05/0.9536, allocations: 4.453 kB / 1.09 GB, free: 4.293 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 7.273e-05/0.9537, allocations: 5.547 kB / 1.09 GB, free: 4.289 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002761/0.9539, allocations: 52.05 kB / 1.09 GB, free: 4.258 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001076/0.9541, allocations: 72.86 kB / 1.09 GB, free: 4.223 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 9.516e-05/0.9542, allocations: 15.73 kB / 1.09 GB, free: 4.215 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 6.974e-05/0.9542, allocations: 26.25 kB / 1.09 GB, free: 4.203 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.379e-05/0.9543, allocations: 28.52 kB / 1.09 GB, free: 4.191 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.773e-05/0.9543, allocations: 7.312 kB / 1.09 GB, free: 4.191 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 6.9e-05/0.9544, allocations: 20.06 kB / 1.09 GB, free: 4.188 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.513e-05/0.9544, allocations: 22.52 kB / 1.09 GB, free: 4.172 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.031e-05/0.9545, allocations: 25.64 kB / 1.09 GB, free: 4.156 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001722/0.9547, allocations: 76.47 kB / 1.09 GB, free: 4.129 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.9547, allocations: 0 / 1.09 GB, free: 4.129 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.473e-06/0.9547, allocations: 0.8125 kB / 1.09 GB, free: 4.129 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.733e-06/0.9547, allocations: 0.75 kB / 1.09 GB, free: 4.129 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.0005794/0.9553, allocations: 376.6 kB / 1.09 GB, free: 3.758 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.843e-05/0.9553, allocations: 10.16 kB / 1.09 GB, free: 3.758 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.259e-05/0.9554, allocations: 8.438 kB / 1.09 GB, free: 3.754 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.547e-05/0.9555, allocations: 184.2 kB / 1.091 GB, free: 3.539 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.288e-05/0.9555, allocations: 3.609 kB / 1.091 GB, free: 3.539 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.954e-05/0.9555, allocations: 9.438 kB / 1.091 GB, free: 3.535 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002416/0.9558, allocations: 83 kB / 1.091 GB, free: 3.488 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.875e-06/0.9558, allocations: 192 / 1.091 GB, free: 3.488 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.708e-05/0.9558, allocations: 5.359 kB / 1.091 GB, free: 3.484 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.769e-06/0.9558, allocations: 1.031 kB / 1.091 GB, free: 3.484 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002201/0.956, allocations: 54.05 kB / 1.091 GB, free: 3.473 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004596/0.9565, allocations: 310.8 kB / 1.091 GB, free: 3.176 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002149/0.9567, allocations: 89.8 kB / 1.091 GB, free: 3.125 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001355/0.9569, allocations: 40.48 kB / 1.091 GB, free: 3.109 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.568e-05/0.9569, allocations: 5.312 kB / 1.091 GB, free: 3.105 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002225/0.9571, allocations: 94.92 kB / 1.091 GB, free: 3.039 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=10): time 1.593e-06/0.9571, allocations: 0 / 1.091 GB, free: 3.039 MB / 0.8575 GB Notification: Performance of matching and sorting (n=10): time 0.0005453/0.9577, allocations: 172.4 kB / 1.091 GB, free: 2.969 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.794e-05/0.9577, allocations: 56.28 kB / 1.091 GB, free: 2.906 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.387e-05/0.9578, allocations: 109.3 kB / 1.091 GB, free: 2.801 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.035e-05/0.9578, allocations: 31.33 kB / 1.092 GB, free: 2.766 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.675e-05/0.9579, allocations: 91.39 kB / 1.092 GB, free: 2.672 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.019e-05/0.9579, allocations: 26.16 kB / 1.092 GB, free: 2.652 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.754e-05/0.958, allocations: 32.25 kB / 1.092 GB, free: 2.629 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 7.14e-05/0.9581, allocations: 319.1 kB / 1.092 GB, free: 2.312 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001358/0.9582, allocations: 36.03 kB / 1.092 GB, free: 2.305 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001451/0.9584, allocations: 68.81 kB / 1.092 GB, free: 2.262 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002525/0.9586, allocations: 106.2 kB / 1.092 GB, free: 2.203 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.9586, allocations: 0.6562 kB / 1.092 GB, free: 2.203 MB / 0.8575 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003203/0.959, allocations: 141.7 kB / 1.092 GB, free: 2.137 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.057e-05/0.959, allocations: 5.609 kB / 1.092 GB, free: 2.137 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.103e-06/0.959, allocations: 4.766 kB / 1.092 GB, free: 2.133 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.509e-05/0.959, allocations: 1.688 kB / 1.092 GB, free: 2.133 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001421/0.9592, allocations: 27.47 kB / 1.092 GB, free: 2.125 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.375e-06/0.9592, allocations: 6.125 kB / 1.092 GB, free: 2.121 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.187e-05/0.9593, allocations: 7.828 kB / 1.092 GB, free: 2.121 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.59e-05/0.9593, allocations: 4.656 kB / 1.092 GB, free: 2.121 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 7.718e-05/0.9594, allocations: 137 kB / 1.092 GB, free: 1.984 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.882e-05/0.9594, allocations: 8.281 kB / 1.093 GB, free: 1.98 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003597/0.9598, allocations: 151.3 kB / 1.093 GB, free: 1.906 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.379e-06/0.9598, allocations: 1.031 kB / 1.093 GB, free: 1.906 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.653e-06/0.9598, allocations: 1.641 kB / 1.093 GB, free: 1.906 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.9598, allocations: 0.5156 kB / 1.093 GB, free: 1.906 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004981/0.9603, allocations: 416 kB / 1.093 GB, free: 1.555 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.9603, allocations: 1.031 kB / 1.093 GB, free: 1.555 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.207e-05/0.9604, allocations: 18.55 kB / 1.093 GB, free: 1.547 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.855e-06/0.9604, allocations: 1 kB / 1.093 GB, free: 1.547 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.263e-05/0.9604, allocations: 2.797 kB / 1.093 GB, free: 1.547 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.9604, allocations: 0 / 1.093 GB, free: 1.547 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.9604, allocations: 1.625 kB / 1.093 GB, free: 1.547 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003507/0.9608, allocations: 238.6 kB / 1.093 GB, free: 1.379 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.701e-05/0.9608, allocations: 83.23 kB / 1.093 GB, free: 1.281 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.219e-05/0.9608, allocations: 2.234 kB / 1.093 GB, free: 1.281 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001104/0.961, allocations: 9.688 kB / 1.093 GB, free: 1.281 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.186e-05/0.961, allocations: 5.328 kB / 1.093 GB, free: 1.281 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.219e-05/0.961, allocations: 11.52 kB / 1.093 GB, free: 1.273 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.178e-05/0.9611, allocations: 86.92 kB / 1.093 GB, free: 1.195 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.01e-07/0.9611, allocations: 0 / 1.093 GB, free: 1.195 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002592/0.9613, allocations: 20.08 kB / 1.094 GB, free: 1.191 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.0001655/0.9615, allocations: 109.7 kB / 1.094 GB, free: 1.098 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003318/0.9618, allocations: 93.72 kB / 1.094 GB, free: 1.078 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.9619, allocations: 0 / 1.094 GB, free: 1.078 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001484/0.962, allocations: 59.78 kB / 1.094 GB, free: 1.055 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002666/0.9623, allocations: 15.66 kB / 1.094 GB, free: 1.051 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003288/0.9626, allocations: 160.5 kB / 1.094 GB, free: 0.9102 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001177/0.9628, allocations: 0.6861 MB / 1.095 GB, free: 220 kB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.945e-05/0.9628, allocations: 7.094 kB / 1.095 GB, free: 220 kB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.011e-05/0.9628, allocations: 12.47 kB / 1.095 GB, free: 212 kB / 0.8575 GB Notification: Performance of SimCode: time 2.2e-07/0.9628, allocations: 12.81 kB / 1.095 GB, free: 200 kB / 0.8575 GB Notification: Performance of Templates: time 0.004036/0.9669, allocations: 1.033 MB / 1.096 GB, free: 88 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