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.001769/0.001769, allocations: 110.8 kB / 16.41 MB, free: 6.496 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.00199/0.00199, allocations: 185.6 kB / 17.34 MB, free: 5.762 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.494/1.494, 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.1-master/package.mo): time 2.607/2.607, allocations: 461.9 MB / 0.7354 GB, free: 11.08 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001413/0.001413, allocations: 59.91 kB / 1.055 GB, free: 7.754 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9264/0.9278, allocations: 157.4 MB / 1.208 GB, free: 13.64 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.002382/0.9302, allocations: 0.683 MB / 1.209 GB, free: 12.97 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001588/0.9319, allocations: 1.069 MB / 1.21 GB, free: 11.89 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.894e-05/0.932, allocations: 4 kB / 1.21 GB, free: 11.88 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.834e-05/0.932, allocations: 7.922 kB / 1.21 GB, free: 11.88 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 7.567e-05/0.9321, allocations: 3.938 kB / 1.21 GB, free: 11.87 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003827/0.9325, allocations: 51.83 kB / 1.21 GB, free: 11.82 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001315/0.9326, allocations: 71.81 kB / 1.21 GB, free: 11.75 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001118/0.9328, allocations: 8 kB / 1.21 GB, free: 11.74 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001073/0.9329, allocations: 27.92 kB / 1.21 GB, free: 11.71 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 7.06e-05/0.933, allocations: 27.91 kB / 1.21 GB, free: 11.69 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.187e-05/0.933, allocations: 4 kB / 1.21 GB, free: 11.68 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 8.414e-05/0.9331, allocations: 35.91 kB / 1.21 GB, free: 11.65 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 4.224e-05/0.9331, allocations: 15.92 kB / 1.21 GB, free: 11.63 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 5.09e-05/0.9332, allocations: 31.84 kB / 1.21 GB, free: 11.6 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001683/0.9334, allocations: 67.81 kB / 1.21 GB, free: 11.54 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 6.662e-06/0.9334, allocations: 0 / 1.21 GB, free: 11.54 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.643e-06/0.9334, allocations: 3.938 kB / 1.21 GB, free: 11.53 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 6.974e-06/0.9334, allocations: 0 / 1.21 GB, free: 11.53 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.0007079/0.9341, allocations: 379.2 kB / 1.211 GB, free: 11.11 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.562e-05/0.9342, allocations: 16.02 kB / 1.211 GB, free: 11.1 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.353e-05/0.9342, allocations: 8.844 kB / 1.211 GB, free: 11.09 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001395/0.9344, allocations: 166.2 kB / 1.211 GB, free: 10.89 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.665e-05/0.9344, allocations: 4.375 kB / 1.211 GB, free: 10.89 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.103e-05/0.9344, allocations: 8.312 kB / 1.211 GB, free: 10.88 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002367/0.9347, allocations: 90.08 kB / 1.211 GB, free: 10.79 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.785e-06/0.9347, allocations: 192 / 1.211 GB, free: 10.79 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.867e-05/0.9347, allocations: 7.938 kB / 1.211 GB, free: 10.78 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.112e-06/0.9347, allocations: 4 kB / 1.211 GB, free: 10.77 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002132/0.9349, allocations: 51.95 kB / 1.211 GB, free: 10.72 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005789/0.9355, allocations: 308.7 kB / 1.211 GB, free: 10.37 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002031/0.9357, allocations: 86.42 kB / 1.212 GB, free: 10.28 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001305/0.9359, allocations: 48.83 kB / 1.212 GB, free: 10.23 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.479e-05/0.9359, allocations: 4 kB / 1.212 GB, free: 10.22 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002548/0.9362, allocations: 87.66 kB / 1.212 GB, free: 10.12 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=10): time 2.354e-06/0.9362, allocations: 7.875 kB / 1.212 GB, free: 10.12 MB / 0.9356 GB Notification: Performance of matching and sorting (n=10): time 0.0005261/0.9367, allocations: 173.5 kB / 1.212 GB, free: 9.941 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.954e-05/0.9368, allocations: 59.34 kB / 1.212 GB, free: 9.871 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.884e-05/0.9369, allocations: 105.8 kB / 1.212 GB, free: 9.758 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.422e-05/0.9369, allocations: 29.7 kB / 1.212 GB, free: 9.723 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 5.55e-05/0.937, allocations: 92.36 kB / 1.212 GB, free: 9.625 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 3.031e-05/0.937, allocations: 23.66 kB / 1.212 GB, free: 9.602 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.549e-05/0.9371, allocations: 29.7 kB / 1.212 GB, free: 9.566 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.00013/0.9372, allocations: 326.8 kB / 1.212 GB, free: 9.238 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001249/0.9374, allocations: 31.98 kB / 1.213 GB, free: 9.207 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001359/0.9375, allocations: 65.34 kB / 1.213 GB, free: 9.137 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002618/0.9378, allocations: 110.4 kB / 1.213 GB, free: 9.02 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.886e-06/0.9378, allocations: 256 / 1.213 GB, free: 9.02 MB / 0.9356 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003272/0.9381, allocations: 141.4 kB / 1.213 GB, free: 8.875 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.857e-05/0.9381, allocations: 8 kB / 1.213 GB, free: 8.867 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-06/0.9382, allocations: 4 kB / 1.213 GB, free: 8.863 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.446e-05/0.9382, allocations: 384 / 1.213 GB, free: 8.863 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001356/0.9383, allocations: 23.98 kB / 1.213 GB, free: 8.84 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.398e-06/0.9383, allocations: 8.062 kB / 1.213 GB, free: 8.832 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.579e-05/0.9384, allocations: 11.89 kB / 1.213 GB, free: 8.82 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.2e-05/0.9385, allocations: 7.938 kB / 1.213 GB, free: 8.812 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.0001005/0.9386, allocations: 125.7 kB / 1.213 GB, free: 8.68 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.604e-05/0.9386, allocations: 4 kB / 1.213 GB, free: 8.676 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003553/0.9389, allocations: 149.9 kB / 1.213 GB, free: 8.52 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.916e-06/0.939, allocations: 4 kB / 1.213 GB, free: 8.516 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.939, allocations: 0 / 1.213 GB, free: 8.516 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.008e-06/0.939, allocations: 0 / 1.213 GB, free: 8.516 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005674/0.9395, allocations: 410.3 kB / 1.214 GB, free: 8.059 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.9396, allocations: 0 / 1.214 GB, free: 8.059 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.692e-05/0.9396, allocations: 8 kB / 1.214 GB, free: 8.051 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.454e-06/0.9397, allocations: 7.984 kB / 1.214 GB, free: 8.043 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.264e-05/0.9397, allocations: 3.984 kB / 1.214 GB, free: 8.039 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.9397, allocations: 4 kB / 1.214 GB, free: 8.035 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.9397, allocations: 0 / 1.214 GB, free: 8.035 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003714/0.9401, allocations: 239.3 kB / 1.214 GB, free: 7.785 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.127e-05/0.9401, allocations: 81.09 kB / 1.214 GB, free: 7.688 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.281e-05/0.9401, allocations: 0 / 1.214 GB, free: 7.688 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001079/0.9403, allocations: 11.98 kB / 1.214 GB, free: 7.676 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.836e-05/0.9403, allocations: 12 kB / 1.214 GB, free: 7.664 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.178e-05/0.9403, allocations: 7.922 kB / 1.214 GB, free: 7.656 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 4.458e-05/0.9404, allocations: 79.28 kB / 1.214 GB, free: 7.578 MB / 0.9356 GB Notification: Performance of sort global known variables: time 2.01e-07/0.9404, allocations: 7.938 kB / 1.214 GB, free: 7.57 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002691/0.9407, allocations: 20.28 kB / 1.214 GB, free: 7.551 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.0001911/0.9409, allocations: 109.1 kB / 1.214 GB, free: 7.438 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0003256/0.9412, allocations: 107.8 kB / 1.214 GB, free: 7.332 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.9412, allocations: 0 / 1.214 GB, free: 7.332 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001366/0.9414, allocations: 51.91 kB / 1.214 GB, free: 7.281 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002719/0.9416, allocations: 8 kB / 1.214 GB, free: 7.273 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004277/0.9421, allocations: 196.2 kB / 1.214 GB, free: 7.051 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002787/0.9424, allocations: 0.6886 MB / 1.215 GB, free: 6.336 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.794e-05/0.9424, allocations: 11.44 kB / 1.215 GB, free: 6.324 MB / 0.9356 GB Notification: Performance of SimCode: time 5.21e-07/0.9424, allocations: 0 / 1.215 GB, free: 6.324 MB / 0.9356 GB Notification: Performance of Templates: time 0.003022/0.9454, allocations: 1.099 MB / 1.216 GB, free: 5.23 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