Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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.Validation.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firOrdHol.u|firOrdHol.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firOrdHol.u|firOrdHol.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002066/0.002066, allocations: 106.6 kB / 16.37 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.002765/0.002765, allocations: 193.9 kB / 17.3 MB, free: 5.617 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.486/1.486, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.596/2.596, allocations: 442.6 MB / 0.7165 GB, free: 14.65 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001345/0.001345, allocations: 68.34 kB / 0.8773 GB, free: 10.98 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3593/0.3607, allocations: 153 MB / 1.027 GB, free: 2.055 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.00242/0.3631, allocations: 0.6931 MB / 1.027 GB, free: 1.367 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001418/0.3646, allocations: 1.081 MB / 1.028 GB, free: 276 kB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.738e-05/0.3646, allocations: 0 / 1.028 GB, free: 276 kB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 3.932e-05/0.3647, allocations: 3.938 kB / 1.028 GB, free: 272 kB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 7.686e-05/0.3648, allocations: 3.938 kB / 1.028 GB, free: 268 kB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003604/0.3652, allocations: 51.83 kB / 1.029 GB, free: 216 kB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0001441/0.3653, allocations: 63.89 kB / 1.029 GB, free: 152 kB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001245/0.3654, allocations: 8 kB / 1.029 GB, free: 144 kB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 9.632e-05/0.3656, allocations: 39.84 kB / 1.029 GB, free: 104 kB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 8.665e-05/0.3656, allocations: 35.83 kB / 1.029 GB, free: 68 kB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.928e-05/0.3657, allocations: 4 kB / 1.029 GB, free: 64 kB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 8.186e-05/0.3658, allocations: 20 kB / 1.029 GB, free: 44 kB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 2.782e-05/0.3658, allocations: 11.98 kB / 1.029 GB, free: 32 kB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 4.955e-05/0.3658, allocations: 31.84 kB / 1.029 GB, free: 0 / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0001958/0.366, allocations: 75.75 kB / 1.029 GB, free: 15.93 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 2.013e-05/0.3661, allocations: 0 / 1.029 GB, free: 15.93 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.974e-06/0.3661, allocations: 0 / 1.029 GB, free: 15.93 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.151e-06/0.3661, allocations: 0 / 1.029 GB, free: 15.93 MB / 0.8106 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.000699/0.3668, allocations: 388.6 kB / 1.029 GB, free: 15.5 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.29e-05/0.3668, allocations: 12.03 kB / 1.029 GB, free: 15.48 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.94e-05/0.3669, allocations: 8.844 kB / 1.029 GB, free: 15.48 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002033/0.3671, allocations: 168.3 kB / 1.029 GB, free: 15.27 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.953e-05/0.3671, allocations: 4.375 kB / 1.029 GB, free: 15.27 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.337e-05/0.3672, allocations: 12.36 kB / 1.029 GB, free: 15.26 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002315/0.3674, allocations: 82.2 kB / 1.029 GB, free: 15.17 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.003e-05/0.3674, allocations: 192 / 1.029 GB, free: 15.17 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.739e-05/0.3675, allocations: 7.938 kB / 1.029 GB, free: 15.16 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.42e-06/0.3675, allocations: 3.938 kB / 1.029 GB, free: 15.16 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002057/0.3677, allocations: 51.95 kB / 1.03 GB, free: 15.11 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005985/0.3683, allocations: 308.7 kB / 1.03 GB, free: 14.76 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001974/0.3685, allocations: 86.47 kB / 1.03 GB, free: 14.66 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001128/0.3686, allocations: 44.84 kB / 1.03 GB, free: 14.62 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.678e-05/0.3687, allocations: 7.922 kB / 1.03 GB, free: 14.61 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002207/0.3689, allocations: 91.48 kB / 1.03 GB, free: 14.51 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=10): time 1.483e-06/0.3689, allocations: 4 kB / 1.03 GB, free: 14.5 MB / 0.8106 GB Notification: Performance of matching and sorting (n=10): time 0.0004853/0.3694, allocations: 173.5 kB / 1.03 GB, free: 14.33 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.358e-05/0.3695, allocations: 55.41 kB / 1.03 GB, free: 14.26 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.304e-05/0.3696, allocations: 105.8 kB / 1.03 GB, free: 14.15 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.245e-05/0.3696, allocations: 29.7 kB / 1.03 GB, free: 14.11 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 9.135e-05/0.3697, allocations: 92.36 kB / 1.03 GB, free: 14.02 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.075e-05/0.3697, allocations: 23.66 kB / 1.03 GB, free: 13.99 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.767e-05/0.3698, allocations: 33.7 kB / 1.031 GB, free: 13.95 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001378/0.3699, allocations: 322.8 kB / 1.031 GB, free: 13.63 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001158/0.37, allocations: 35.97 kB / 1.031 GB, free: 13.59 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001539/0.3702, allocations: 58.55 kB / 1.031 GB, free: 13.53 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002332/0.3704, allocations: 106.4 kB / 1.031 GB, free: 13.41 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.3705, allocations: 0 / 1.031 GB, free: 13.41 MB / 0.8106 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004113/0.3709, allocations: 141.5 kB / 1.031 GB, free: 13.27 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.724e-05/0.3709, allocations: 8 kB / 1.031 GB, free: 13.26 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/0.3709, allocations: 0 / 1.031 GB, free: 13.26 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.962e-05/0.3709, allocations: 4.062 kB / 1.031 GB, free: 13.26 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001278/0.3711, allocations: 23.98 kB / 1.031 GB, free: 13.23 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.053e-05/0.3711, allocations: 7.938 kB / 1.031 GB, free: 13.23 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.753e-05/0.3712, allocations: 11.92 kB / 1.031 GB, free: 13.21 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.088e-05/0.3712, allocations: 8 kB / 1.031 GB, free: 13.21 MB / 0.8106 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.0001739/0.3714, allocations: 122.5 kB / 1.031 GB, free: 13.08 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.544e-05/0.3714, allocations: 7.906 kB / 1.031 GB, free: 13.07 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003337/0.3717, allocations: 150.3 kB / 1.031 GB, free: 12.92 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.336e-06/0.3717, allocations: 352 / 1.031 GB, free: 12.92 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.3718, allocations: 3.938 kB / 1.031 GB, free: 12.91 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.3718, allocations: 7.984 kB / 1.031 GB, free: 12.91 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000552/0.3723, allocations: 410.3 kB / 1.032 GB, free: 12.45 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.3723, allocations: 0 / 1.032 GB, free: 12.45 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.458e-05/0.3724, allocations: 11.98 kB / 1.032 GB, free: 12.44 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.809e-06/0.3724, allocations: 8 kB / 1.032 GB, free: 12.43 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.336e-05/0.3724, allocations: 0 / 1.032 GB, free: 12.43 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.527e-06/0.3725, allocations: 3.938 kB / 1.032 GB, free: 12.43 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.3725, allocations: 3.938 kB / 1.032 GB, free: 12.42 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003297/0.3728, allocations: 235.4 kB / 1.032 GB, free: 12.18 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.296e-05/0.3728, allocations: 84.95 kB / 1.032 GB, free: 12.07 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.155e-05/0.3729, allocations: 7.984 kB / 1.032 GB, free: 12.07 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001047/0.373, allocations: 11.98 kB / 1.032 GB, free: 12.05 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.471e-05/0.373, allocations: 11.94 kB / 1.032 GB, free: 12.04 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.246e-05/0.3731, allocations: 7.922 kB / 1.032 GB, free: 12.04 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.822e-05/0.3731, allocations: 79.28 kB / 1.032 GB, free: 11.96 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3731, allocations: 4 kB / 1.032 GB, free: 11.95 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002877/0.3734, allocations: 16 kB / 1.032 GB, free: 11.94 MB / 0.8106 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.0001812/0.3736, allocations: 111.2 kB / 1.032 GB, free: 11.82 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003005/0.3739, allocations: 95.88 kB / 1.033 GB, free: 11.73 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/0.3739, allocations: 4 kB / 1.033 GB, free: 11.72 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.000166/0.3741, allocations: 47.91 kB / 1.033 GB, free: 11.68 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000271/0.3744, allocations: 12.64 kB / 1.033 GB, free: 11.66 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004419/0.3748, allocations: 162.9 kB / 1.033 GB, free: 11.47 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003915/0.3752, allocations: 0.6807 MB / 1.033 GB, free: 10.77 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.88e-05/0.3753, allocations: 12.42 kB / 1.033 GB, free: 10.75 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.496e-05/0.3754, allocations: 11.44 kB / 1.033 GB, free: 10.74 MB / 0.8106 GB Notification: Performance of SimCode: time 2.2e-07/0.3754, allocations: 0 / 1.033 GB, free: 10.74 MB / 0.8106 GB Notification: Performance of Templates: time 0.003756/0.3791, allocations: 1.029 MB / 1.034 GB, free: 9.719 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches