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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001127/0.001127, allocations: 109.9 kB / 16.41 MB, free: 6.492 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.001192/0.001192, allocations: 185.5 kB / 17.34 MB, free: 5.766 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.285/1.285, 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 11.0.1-master/package.mo): time 2.467/2.467, allocations: 461.9 MB / 0.7355 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001348/0.001347, allocations: 63.91 kB / 1.055 GB, free: 7.676 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7262/0.7275, allocations: 157.4 MB / 1.208 GB, free: 13.62 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.001841/0.7294, allocations: 0.6909 MB / 1.209 GB, free: 12.93 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001761/0.7312, allocations: 1.069 MB / 1.21 GB, free: 11.85 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.383e-05/0.7313, allocations: 3.938 kB / 1.21 GB, free: 11.85 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.209e-05/0.7313, allocations: 0 / 1.21 GB, free: 11.85 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 6.749e-05/0.7314, allocations: 11.86 kB / 1.21 GB, free: 11.84 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003189/0.7317, allocations: 51.88 kB / 1.21 GB, free: 11.79 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001326/0.7319, allocations: 67.78 kB / 1.21 GB, free: 11.72 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001197/0.732, allocations: 12 kB / 1.21 GB, free: 11.71 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 8.659e-05/0.7321, allocations: 27.92 kB / 1.21 GB, free: 11.68 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 8.445e-05/0.7322, allocations: 35.88 kB / 1.21 GB, free: 11.64 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.399e-05/0.7322, allocations: 11.94 kB / 1.21 GB, free: 11.63 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 8.856e-05/0.7323, allocations: 19.98 kB / 1.21 GB, free: 11.61 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 3.66e-05/0.7324, allocations: 11.94 kB / 1.21 GB, free: 11.6 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 5.502e-05/0.7325, allocations: 31.84 kB / 1.21 GB, free: 11.57 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001668/0.7326, allocations: 71.75 kB / 1.21 GB, free: 11.5 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.7326, allocations: 3.938 kB / 1.21 GB, free: 11.5 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.183e-06/0.7327, allocations: 8 kB / 1.21 GB, free: 11.49 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.502e-05/0.7327, allocations: 3.984 kB / 1.21 GB, free: 11.48 MB / 0.9356 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.0007425/0.7334, allocations: 379.2 kB / 1.211 GB, free: 11.07 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.763e-05/0.7335, allocations: 8.031 kB / 1.211 GB, free: 11.06 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.16e-05/0.7335, allocations: 8.844 kB / 1.211 GB, free: 11.05 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001268/0.7337, allocations: 162.2 kB / 1.211 GB, free: 10.86 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.539e-05/0.7337, allocations: 4.375 kB / 1.211 GB, free: 10.85 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.509e-05/0.7337, allocations: 16.36 kB / 1.211 GB, free: 10.84 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002924/0.734, allocations: 78.22 kB / 1.211 GB, free: 10.75 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.979e-06/0.7341, allocations: 4.125 kB / 1.211 GB, free: 10.75 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.908e-05/0.7341, allocations: 3.938 kB / 1.211 GB, free: 10.75 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5e-06/0.7341, allocations: 0 / 1.211 GB, free: 10.75 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002937/0.7344, allocations: 55.94 kB / 1.211 GB, free: 10.69 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006202/0.735, allocations: 312.7 kB / 1.211 GB, free: 10.34 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002737/0.7353, allocations: 86.41 kB / 1.212 GB, free: 10.24 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001695/0.7355, allocations: 44.83 kB / 1.212 GB, free: 10.2 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.694e-05/0.7356, allocations: 112 / 1.212 GB, free: 10.2 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002967/0.7359, allocations: 91.31 kB / 1.212 GB, free: 10.09 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=10): time 1.773e-06/0.7359, allocations: 0 / 1.212 GB, free: 10.09 MB / 0.9356 GB Notification: Performance of matching and sorting (n=10): time 0.0006885/0.7366, allocations: 173.6 kB / 1.212 GB, free: 9.918 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.077e-05/0.7366, allocations: 55.78 kB / 1.212 GB, free: 9.852 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001006/0.7367, allocations: 105.8 kB / 1.212 GB, free: 9.738 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.777e-05/0.7368, allocations: 29.7 kB / 1.212 GB, free: 9.703 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 6.665e-05/0.7369, allocations: 100.3 kB / 1.212 GB, free: 9.598 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 3.572e-05/0.7369, allocations: 27.59 kB / 1.212 GB, free: 9.57 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.454e-05/0.737, allocations: 33.7 kB / 1.212 GB, free: 9.531 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.000131/0.7371, allocations: 318.8 kB / 1.212 GB, free: 9.211 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001675/0.7373, allocations: 39.91 kB / 1.213 GB, free: 9.172 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001922/0.7375, allocations: 64.8 kB / 1.213 GB, free: 9.102 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003343/0.7379, allocations: 102.5 kB / 1.213 GB, free: 8.992 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.7379, allocations: 0 / 1.213 GB, free: 8.992 MB / 0.9356 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004641/0.7383, allocations: 149.4 kB / 1.213 GB, free: 8.84 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.325e-05/0.7384, allocations: 9.938 kB / 1.213 GB, free: 8.832 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.518e-06/0.7384, allocations: 0 / 1.213 GB, free: 8.832 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.544e-05/0.7384, allocations: 7.938 kB / 1.213 GB, free: 8.824 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001818/0.7386, allocations: 15.98 kB / 1.213 GB, free: 8.809 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.208e-05/0.7387, allocations: 4 kB / 1.213 GB, free: 8.805 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001063/0.7388, allocations: 12.14 kB / 1.213 GB, free: 8.793 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.257e-05/0.7388, allocations: 8 kB / 1.213 GB, free: 8.785 MB / 0.9356 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.0001684/0.739, allocations: 121.7 kB / 1.213 GB, free: 8.656 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.097e-05/0.739, allocations: 12 kB / 1.213 GB, free: 8.645 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005036/0.7395, allocations: 149.9 kB / 1.213 GB, free: 8.488 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.841e-06/0.7395, allocations: 3.984 kB / 1.213 GB, free: 8.484 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/0.7396, allocations: 0 / 1.213 GB, free: 8.484 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.917e-06/0.7396, allocations: 3.984 kB / 1.213 GB, free: 8.48 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007721/0.7404, allocations: 410.3 kB / 1.214 GB, free: 8.023 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.504e-06/0.7404, allocations: 4 kB / 1.214 GB, free: 8.02 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.874e-05/0.7405, allocations: 11.98 kB / 1.214 GB, free: 8.008 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.7405, allocations: 0 / 1.214 GB, free: 8.008 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.544e-05/0.7405, allocations: 0 / 1.214 GB, free: 8.008 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.7405, allocations: 0 / 1.214 GB, free: 8.008 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.7405, allocations: 0 / 1.214 GB, free: 8.008 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005183/0.7411, allocations: 251.4 kB / 1.214 GB, free: 7.746 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 7.083e-05/0.7412, allocations: 77.11 kB / 1.214 GB, free: 7.652 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.146e-05/0.7412, allocations: 4 kB / 1.214 GB, free: 7.648 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001671/0.7414, allocations: 7.984 kB / 1.214 GB, free: 7.641 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.395e-05/0.7414, allocations: 11.98 kB / 1.214 GB, free: 7.629 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.376e-05/0.7415, allocations: 3.938 kB / 1.214 GB, free: 7.625 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 6.02e-05/0.7415, allocations: 83.28 kB / 1.214 GB, free: 7.543 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.6e-07/0.7415, allocations: 0 / 1.214 GB, free: 7.543 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0004543/0.742, allocations: 24 kB / 1.214 GB, free: 7.52 MB / 0.9356 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.0001992/0.7422, allocations: 119.2 kB / 1.214 GB, free: 7.395 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0004303/0.7427, allocations: 99.81 kB / 1.214 GB, free: 7.297 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.7427, allocations: 0 / 1.214 GB, free: 7.297 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0002023/0.7429, allocations: 43.97 kB / 1.214 GB, free: 7.254 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004127/0.7433, allocations: 12.12 kB / 1.214 GB, free: 7.242 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005048/0.7438, allocations: 200.2 kB / 1.214 GB, free: 7.016 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002915/0.7441, allocations: 0.6807 MB / 1.215 GB, free: 6.309 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.532e-05/0.7442, allocations: 23.42 kB / 1.215 GB, free: 6.285 MB / 0.9356 GB Notification: Performance of SimCode: time 3e-07/0.7442, allocations: 0 / 1.215 GB, free: 6.285 MB / 0.9356 GB Notification: Performance of Templates: time 0.003665/0.7479, allocations: 1.092 MB / 1.216 GB, free: 5.199 MB / 0.9356 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 -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