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.001511/0.001511, allocations: 108 kB / 15.61 MB, free: 152 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.001982/0.001982, allocations: 195.5 kB / 16.53 MB, free: 6.664 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.555/1.555, allocations: 222.9 MB / 240.2 MB, free: 4.367 MB / 190.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.526/2.526, allocations: 390.2 MB / 0.6647 GB, free: 432 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001571/0.001571, allocations: 59.91 kB / 0.8125 GB, free: 14.46 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9445/0.9461, allocations: 140.4 MB / 0.9496 GB, free: 9.105 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.002131/0.9483, allocations: 0.6822 MB / 0.9503 GB, free: 8.578 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001366/0.9497, allocations: 1.061 MB / 0.9513 GB, free: 7.723 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.674e-05/0.9498, allocations: 0.875 kB / 0.9513 GB, free: 7.723 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.289e-05/0.9498, allocations: 3.938 kB / 0.9513 GB, free: 7.719 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.682e-05/0.9499, allocations: 9.328 kB / 0.9513 GB, free: 7.711 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003561/0.9503, allocations: 45.7 kB / 0.9514 GB, free: 7.676 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001179/0.9504, allocations: 75.08 kB / 0.9514 GB, free: 7.629 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001243/0.9505, allocations: 9.25 kB / 0.9514 GB, free: 7.625 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.671e-05/0.9506, allocations: 26.2 kB / 0.9515 GB, free: 7.609 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.925e-05/0.9507, allocations: 40.72 kB / 0.9515 GB, free: 7.578 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.304e-05/0.9508, allocations: 7 kB / 0.9515 GB, free: 7.578 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.408e-05/0.9508, allocations: 13 kB / 0.9515 GB, free: 7.578 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.774e-05/0.9509, allocations: 17.33 kB / 0.9515 GB, free: 7.562 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.778e-05/0.9509, allocations: 32.08 kB / 0.9516 GB, free: 7.539 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001625/0.9511, allocations: 71.19 kB / 0.9516 GB, free: 7.484 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.992e-06/0.9511, allocations: 0 / 0.9516 GB, free: 7.484 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.024e-06/0.9511, allocations: 5.406 kB / 0.9516 GB, free: 7.48 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.784e-06/0.9511, allocations: 0 / 0.9516 GB, free: 7.48 MB / 0.7169 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.0007058/0.9519, allocations: 384 kB / 0.952 GB, free: 7.086 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.922e-05/0.9519, allocations: 9.5 kB / 0.952 GB, free: 7.086 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.33e-05/0.952, allocations: 4.969 kB / 0.952 GB, free: 7.086 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001208/0.9521, allocations: 174.9 kB / 0.9522 GB, free: 6.879 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.81e-05/0.9521, allocations: 11.06 kB / 0.9522 GB, free: 6.871 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.378e-05/0.9522, allocations: 8.5 kB / 0.9522 GB, free: 6.867 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002417/0.9524, allocations: 79.17 kB / 0.9523 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.08e-05/0.9524, allocations: 1.344 kB / 0.9523 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.529e-05/0.9525, allocations: 7.875 kB / 0.9523 GB, free: 6.801 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.374e-06/0.9525, allocations: 2.156 kB / 0.9523 GB, free: 6.801 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002196/0.9527, allocations: 52.7 kB / 0.9523 GB, free: 6.777 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000541/0.9532, allocations: 313.4 kB / 0.9526 GB, free: 6.449 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002015/0.9535, allocations: 83.12 kB / 0.9527 GB, free: 6.395 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001192/0.9536, allocations: 41.81 kB / 0.9528 GB, free: 6.371 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.935e-05/0.9536, allocations: 5.328 kB / 0.9528 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002745/0.9539, allocations: 95.91 kB / 0.9529 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=10): time 1.432e-06/0.9539, allocations: 0 / 0.9529 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10): time 0.000572/0.9545, allocations: 168.4 kB / 0.953 GB, free: 6.195 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.136e-05/0.9545, allocations: 59.28 kB / 0.9531 GB, free: 6.129 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.403e-05/0.9546, allocations: 109.4 kB / 0.9532 GB, free: 6.02 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.989e-05/0.9547, allocations: 35.2 kB / 0.9532 GB, free: 5.98 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.887e-05/0.9547, allocations: 90.95 kB / 0.9533 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.608e-05/0.9547, allocations: 26.61 kB / 0.9533 GB, free: 5.863 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.698e-05/0.9548, allocations: 36.31 kB / 0.9534 GB, free: 5.832 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.135e-05/0.9548, allocations: 324.5 kB / 0.9537 GB, free: 5.508 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001149/0.955, allocations: 36.78 kB / 0.9537 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001286/0.9551, allocations: 65.89 kB / 0.9538 GB, free: 5.445 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002303/0.9553, allocations: 103.7 kB / 0.9539 GB, free: 5.379 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.9553, allocations: 0 / 0.9539 GB, free: 5.379 MB / 0.7169 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003023/0.9557, allocations: 145.6 kB / 0.954 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.959e-05/0.9557, allocations: 5.25 kB / 0.954 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.143e-06/0.9557, allocations: 1.25 kB / 0.954 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.694e-05/0.9557, allocations: 1.125 kB / 0.954 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001448/0.9559, allocations: 22.66 kB / 0.954 GB, free: 5.285 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.426e-05/0.9559, allocations: 6.688 kB / 0.954 GB, free: 5.281 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.588e-05/0.956, allocations: 16.83 kB / 0.954 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.491e-05/0.956, allocations: 3.281 kB / 0.9541 GB, free: 5.27 MB / 0.7169 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 9.13e-05/0.9561, allocations: 124.7 kB / 0.9542 GB, free: 5.145 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.578e-05/0.9561, allocations: 10.25 kB / 0.9542 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003481/0.9565, allocations: 145.2 kB / 0.9543 GB, free: 5.051 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.077e-06/0.9565, allocations: 1.438 kB / 0.9543 GB, free: 5.051 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.632e-06/0.9565, allocations: 0 / 0.9543 GB, free: 5.051 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-06/0.9565, allocations: 3.984 kB / 0.9543 GB, free: 5.047 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004808/0.957, allocations: 412.1 kB / 0.9547 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.957, allocations: 0 / 0.9547 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.048e-05/0.9571, allocations: 12.17 kB / 0.9547 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.784e-06/0.9571, allocations: 0 / 0.9547 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.277e-05/0.9571, allocations: 5.5 kB / 0.9547 GB, free: 4.656 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.779e-06/0.9571, allocations: 1.469 kB / 0.9547 GB, free: 4.656 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.9571, allocations: 3.938 kB / 0.9547 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003505/0.9575, allocations: 232.7 kB / 0.955 GB, free: 4.473 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.761e-05/0.9575, allocations: 86.38 kB / 0.955 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.561e-05/0.9576, allocations: 10.22 kB / 0.9551 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001077/0.9577, allocations: 8.859 kB / 0.9551 GB, free: 4.359 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.985e-05/0.9577, allocations: 3.75 kB / 0.9551 GB, free: 4.359 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.3e-05/0.9578, allocations: 10.61 kB / 0.9551 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.391e-05/0.9578, allocations: 88.66 kB / 0.9552 GB, free: 4.27 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.21e-07/0.9578, allocations: 4 kB / 0.9552 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002548/0.9581, allocations: 19.38 kB / 0.9552 GB, free: 4.262 MB / 0.7169 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.0001694/0.9582, allocations: 108.5 kB / 0.9553 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003559/0.9586, allocations: 102.7 kB / 0.9554 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.043e-06/0.9586, allocations: 0.8438 kB / 0.9554 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001534/0.9588, allocations: 59.14 kB / 0.9554 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002919/0.9591, allocations: 5.438 kB / 0.9554 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005216/0.9596, allocations: 157.2 kB / 0.9556 GB, free: 3.945 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002432/0.9599, allocations: 0.6879 MB / 0.9563 GB, free: 3.242 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.785e-05/0.9599, allocations: 16.52 kB / 0.9563 GB, free: 3.23 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.508e-05/0.96, allocations: 15.41 kB / 0.9563 GB, free: 3.219 MB / 0.7169 GB Notification: Performance of SimCode: time 2.3e-07/0.96, allocations: 1.031 kB / 0.9563 GB, free: 3.219 MB / 0.7169 GB Notification: Performance of Templates: time 0.004117/0.9641, allocations: 1.018 MB / 0.9573 GB, free: 2.707 MB / 0.7169 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