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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001577/0.001578, allocations: 113.2 kB / 16.37 MB, free: 6.012 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.002018/0.002018, allocations: 191.2 kB / 17.31 MB, free: 5.613 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.469/1.469, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.365/2.365, allocations: 390.3 MB / 0.6655 GB, free: 0.5898 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001387/0.001387, allocations: 66.42 kB / 0.814 GB, free: 32.64 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3366/0.338, allocations: 140.4 MB / 0.9511 GB, free: 8.043 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.002237/0.3403, allocations: 0.6865 MB / 0.9518 GB, free: 7.355 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0014/0.3417, allocations: 1.076 MB / 0.9529 GB, free: 6.266 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.939e-05/0.3418, allocations: 3.938 kB / 0.9529 GB, free: 6.262 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 3.454e-05/0.3419, allocations: 3.938 kB / 0.9529 GB, free: 6.258 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 6.278e-05/0.3419, allocations: 7.922 kB / 0.9529 GB, free: 6.25 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003001/0.3422, allocations: 47.89 kB / 0.9529 GB, free: 6.203 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.000113/0.3424, allocations: 59.84 kB / 0.953 GB, free: 6.145 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001068/0.3425, allocations: 19.97 kB / 0.953 GB, free: 6.125 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 7.298e-05/0.3426, allocations: 31.91 kB / 0.953 GB, free: 6.094 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 6.429e-05/0.3426, allocations: 35.84 kB / 0.9531 GB, free: 6.059 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.691e-05/0.3426, allocations: 4 kB / 0.9531 GB, free: 6.055 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 7.334e-05/0.3427, allocations: 23.98 kB / 0.9531 GB, free: 6.031 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.821e-05/0.3428, allocations: 19.97 kB / 0.9531 GB, free: 6.012 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 4.102e-05/0.3428, allocations: 27.86 kB / 0.9531 GB, free: 5.984 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001472/0.343, allocations: 75.69 kB / 0.9532 GB, free: 5.91 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.343, allocations: 0 / 0.9532 GB, free: 5.91 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.322e-06/0.343, allocations: 0 / 0.9532 GB, free: 5.91 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.831e-06/0.343, allocations: 0 / 0.9532 GB, free: 5.91 MB / 0.7325 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.0006682/0.3437, allocations: 383.3 kB / 0.9536 GB, free: 5.484 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.787e-05/0.3437, allocations: 8.031 kB / 0.9536 GB, free: 5.477 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.493e-05/0.3438, allocations: 12.84 kB / 0.9536 GB, free: 5.465 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000125/0.3439, allocations: 172.3 kB / 0.9538 GB, free: 5.258 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.555e-05/0.3439, allocations: 4.375 kB / 0.9538 GB, free: 5.254 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.077e-05/0.3439, allocations: 8.375 kB / 0.9538 GB, free: 5.246 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002148/0.3442, allocations: 78.2 kB / 0.9538 GB, free: 5.164 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.07e-05/0.3442, allocations: 8.125 kB / 0.9538 GB, free: 5.156 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.404e-05/0.3442, allocations: 3.938 kB / 0.9538 GB, free: 5.152 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.098e-05/0.3442, allocations: 4 kB / 0.9539 GB, free: 5.148 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002019/0.3444, allocations: 59.83 kB / 0.9539 GB, free: 5.09 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005083/0.3449, allocations: 308.7 kB / 0.9542 GB, free: 4.738 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001956/0.3451, allocations: 82.67 kB / 0.9543 GB, free: 4.648 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001199/0.3453, allocations: 48.77 kB / 0.9543 GB, free: 4.598 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.463e-05/0.3453, allocations: 4 kB / 0.9543 GB, free: 4.594 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002293/0.3455, allocations: 87.36 kB / 0.9544 GB, free: 4.496 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=10): time 1.784e-06/0.3456, allocations: 0 / 0.9544 GB, free: 4.496 MB / 0.7325 GB Notification: Performance of matching and sorting (n=10): time 0.0004879/0.346, allocations: 173.5 kB / 0.9546 GB, free: 4.32 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.074e-05/0.3461, allocations: 51.41 kB / 0.9546 GB, free: 4.258 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.794e-05/0.3462, allocations: 109.8 kB / 0.9547 GB, free: 4.141 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.566e-05/0.3462, allocations: 33.7 kB / 0.9548 GB, free: 4.102 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 5.411e-05/0.3463, allocations: 84.38 kB / 0.9548 GB, free: 4.012 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 3.142e-05/0.3463, allocations: 27.64 kB / 0.9549 GB, free: 3.984 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.272e-05/0.3464, allocations: 37.7 kB / 0.9549 GB, free: 3.941 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001312/0.3465, allocations: 318.8 kB / 0.9552 GB, free: 3.621 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001139/0.3466, allocations: 39.91 kB / 0.9553 GB, free: 3.582 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001286/0.3468, allocations: 64.92 kB / 0.9553 GB, free: 3.512 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002261/0.347, allocations: 98.48 kB / 0.9554 GB, free: 3.406 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.347, allocations: 256 / 0.9554 GB, free: 3.406 MB / 0.7325 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003041/0.3473, allocations: 141.5 kB / 0.9555 GB, free: 3.262 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.8e-05/0.3474, allocations: 11.98 kB / 0.9556 GB, free: 3.25 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/0.3474, allocations: 4 kB / 0.9556 GB, free: 3.246 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.035e-05/0.3474, allocations: 4.062 kB / 0.9556 GB, free: 3.242 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001404/0.3475, allocations: 27.92 kB / 0.9556 GB, free: 3.215 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.943e-06/0.3476, allocations: 0 / 0.9556 GB, free: 3.215 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.939e-05/0.3476, allocations: 11.94 kB / 0.9556 GB, free: 3.203 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.343e-05/0.3477, allocations: 8.359 kB / 0.9556 GB, free: 3.195 MB / 0.7325 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.0001069/0.3478, allocations: 130.2 kB / 0.9557 GB, free: 3.059 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.621e-05/0.3478, allocations: 7.906 kB / 0.9557 GB, free: 3.051 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003439/0.3481, allocations: 149.9 kB / 0.9559 GB, free: 2.898 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.93e-06/0.3481, allocations: 4 kB / 0.9559 GB, free: 2.895 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.3482, allocations: 0 / 0.9559 GB, free: 2.895 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.701e-06/0.3482, allocations: 3.984 kB / 0.9559 GB, free: 2.891 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005327/0.3487, allocations: 406.4 kB / 0.9563 GB, free: 2.438 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.3487, allocations: 0 / 0.9563 GB, free: 2.438 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.511e-05/0.3488, allocations: 11.98 kB / 0.9563 GB, free: 2.426 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.814e-06/0.3488, allocations: 4 kB / 0.9563 GB, free: 2.422 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.393e-05/0.3488, allocations: 7.984 kB / 0.9563 GB, free: 2.414 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.815e-06/0.3488, allocations: 0 / 0.9563 GB, free: 2.414 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.3488, allocations: 3.938 kB / 0.9563 GB, free: 2.41 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003319/0.3492, allocations: 235.3 kB / 0.9565 GB, free: 2.164 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 5.386e-05/0.3492, allocations: 85.02 kB / 0.9566 GB, free: 2.062 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.225e-05/0.3493, allocations: 3.984 kB / 0.9566 GB, free: 2.059 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.72e-05/0.3494, allocations: 8 kB / 0.9566 GB, free: 2.051 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.613e-05/0.3494, allocations: 11.98 kB / 0.9566 GB, free: 2.039 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.112e-05/0.3494, allocations: 7.938 kB / 0.9566 GB, free: 2.031 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 4.81e-05/0.3495, allocations: 83.27 kB / 0.9567 GB, free: 1.949 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3495, allocations: 0 / 0.9567 GB, free: 1.949 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002459/0.3497, allocations: 23.94 kB / 0.9567 GB, free: 1.926 MB / 0.7325 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.0001945/0.3499, allocations: 117.7 kB / 0.9569 GB, free: 1.801 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002977/0.3502, allocations: 100.2 kB / 0.957 GB, free: 1.703 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.3503, allocations: 0 / 0.957 GB, free: 1.703 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001274/0.3504, allocations: 47.92 kB / 0.957 GB, free: 1.656 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002764/0.3507, allocations: 14.05 kB / 0.957 GB, free: 1.645 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003804/0.3511, allocations: 150.3 kB / 0.9572 GB, free: 1.469 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003283/0.3514, allocations: 0.6922 MB / 0.9578 GB, free: 0.75 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 3.48e-05/0.3514, allocations: 8.625 kB / 0.9578 GB, free: 0.7422 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.908e-05/0.3515, allocations: 11.44 kB / 0.9578 GB, free: 0.7305 MB / 0.7325 GB Notification: Performance of SimCode: time 2.2e-07/0.3515, allocations: 0 / 0.9578 GB, free: 0.7305 MB / 0.7325 GB Notification: Performance of Templates: time 0.003726/0.3552, allocations: 1.026 MB / 0.9589 GB, free: 15.71 MB / 0.7481 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 -s cvode -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/jenkins1/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