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.01001/0.01001, allocations: 101.1 kB / 15.73 MB, free: 6.039 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.002349/0.002349, allocations: 190.4 kB / 16.67 MB, free: 5.977 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.611/1.611, allocations: 222.9 MB / 240.4 MB, free: 4.203 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 3.065/3.065, allocations: 461.9 MB / 0.7348 GB, free: 14.68 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001259/0.001259, allocations: 55.91 kB / 1.054 GB, free: 7.23 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4202/0.4215, allocations: 157.4 MB / 1.208 GB, free: 9.711 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.002028/0.4236, allocations: 0.6737 MB / 1.208 GB, free: 9.035 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001575/0.4252, allocations: 1.069 MB / 1.209 GB, free: 7.953 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.409e-05/0.4252, allocations: 3.938 kB / 1.209 GB, free: 7.949 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.358e-05/0.4253, allocations: 3.938 kB / 1.209 GB, free: 7.945 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 8.297e-05/0.4254, allocations: 15.88 kB / 1.209 GB, free: 7.93 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003176/0.4257, allocations: 43.88 kB / 1.209 GB, free: 7.887 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001202/0.4258, allocations: 67.84 kB / 1.21 GB, free: 7.82 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001121/0.426, allocations: 11.97 kB / 1.21 GB, free: 7.809 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 8.001e-05/0.426, allocations: 27.92 kB / 1.21 GB, free: 7.781 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 7.257e-05/0.4261, allocations: 39.84 kB / 1.21 GB, free: 7.742 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.939e-05/0.4261, allocations: 8 kB / 1.21 GB, free: 7.734 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 7.314e-05/0.4262, allocations: 15.98 kB / 1.21 GB, free: 7.719 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.637e-05/0.4263, allocations: 23.91 kB / 1.21 GB, free: 7.695 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 5.629e-05/0.4263, allocations: 27.86 kB / 1.21 GB, free: 7.668 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001523/0.4265, allocations: 75.75 kB / 1.21 GB, free: 7.594 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 7.063e-06/0.4265, allocations: 0 / 1.21 GB, free: 7.594 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.625e-06/0.4265, allocations: 3.938 kB / 1.21 GB, free: 7.59 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.161e-06/0.4265, allocations: 0 / 1.21 GB, free: 7.59 MB / 0.9669 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.0007384/0.4273, allocations: 387.3 kB / 1.21 GB, free: 7.16 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.135e-05/0.4273, allocations: 8.031 kB / 1.21 GB, free: 7.152 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.274e-05/0.4273, allocations: 4.938 kB / 1.21 GB, free: 7.148 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001359/0.4275, allocations: 176.2 kB / 1.21 GB, free: 6.938 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.823e-05/0.4275, allocations: 8.359 kB / 1.21 GB, free: 6.93 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.158e-05/0.4276, allocations: 8.375 kB / 1.21 GB, free: 6.922 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002231/0.4278, allocations: 78.16 kB / 1.21 GB, free: 6.84 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.578e-06/0.4278, allocations: 4.188 kB / 1.21 GB, free: 6.836 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.559e-05/0.4278, allocations: 7.922 kB / 1.21 GB, free: 6.828 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.718e-06/0.4278, allocations: 0 / 1.21 GB, free: 6.828 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002131/0.428, allocations: 59.89 kB / 1.21 GB, free: 6.77 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005401/0.4286, allocations: 304.8 kB / 1.211 GB, free: 6.422 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001954/0.4288, allocations: 86.47 kB / 1.211 GB, free: 6.328 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001164/0.4289, allocations: 44.83 kB / 1.211 GB, free: 6.281 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 3.42e-05/0.429, allocations: 8.125 kB / 1.211 GB, free: 6.273 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002732/0.4292, allocations: 87.36 kB / 1.211 GB, free: 6.176 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=10): time 1.964e-06/0.4293, allocations: 0 / 1.211 GB, free: 6.176 MB / 0.9669 GB Notification: Performance of matching and sorting (n=10): time 0.0006899/0.43, allocations: 173.5 kB / 1.211 GB, free: 6 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.567e-05/0.43, allocations: 55.39 kB / 1.211 GB, free: 5.934 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000122/0.4302, allocations: 109.8 kB / 1.211 GB, free: 5.816 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 5.089e-05/0.4302, allocations: 34.08 kB / 1.211 GB, free: 5.777 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.753e-05/0.4303, allocations: 80.38 kB / 1.211 GB, free: 5.691 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 4.421e-05/0.4304, allocations: 27.64 kB / 1.211 GB, free: 5.664 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.296e-05/0.4305, allocations: 37.72 kB / 1.211 GB, free: 5.621 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0002837/0.4308, allocations: 318.8 kB / 1.212 GB, free: 5.301 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001536/0.4309, allocations: 39.97 kB / 1.212 GB, free: 5.262 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001596/0.4311, allocations: 64.81 kB / 1.212 GB, free: 5.191 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002443/0.4314, allocations: 102.5 kB / 1.212 GB, free: 5.082 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.4314, allocations: 0 / 1.212 GB, free: 5.082 MB / 0.9669 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003054/0.4317, allocations: 145.5 kB / 1.212 GB, free: 4.934 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2.113e-05/0.4317, allocations: 4 kB / 1.212 GB, free: 4.93 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.566e-06/0.4317, allocations: 4 kB / 1.212 GB, free: 4.926 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.831e-05/0.4317, allocations: 0 / 1.212 GB, free: 4.926 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001422/0.4319, allocations: 27.98 kB / 1.212 GB, free: 4.898 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.215e-06/0.4319, allocations: 3.984 kB / 1.212 GB, free: 4.895 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.318e-05/0.432, allocations: 15.84 kB / 1.212 GB, free: 4.879 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.484e-05/0.432, allocations: 4 kB / 1.212 GB, free: 4.875 MB / 0.9669 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.0001287/0.4321, allocations: 125.8 kB / 1.212 GB, free: 4.742 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.601e-05/0.4322, allocations: 7.984 kB / 1.212 GB, free: 4.734 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003555/0.4325, allocations: 149.8 kB / 1.212 GB, free: 4.578 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.544e-06/0.4325, allocations: 0 / 1.212 GB, free: 4.578 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.4325, allocations: 0 / 1.212 GB, free: 4.578 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.4326, allocations: 4 kB / 1.212 GB, free: 4.574 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005481/0.4331, allocations: 410.3 kB / 1.213 GB, free: 4.117 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.4331, allocations: 256 / 1.213 GB, free: 4.117 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.857e-05/0.4332, allocations: 11.98 kB / 1.213 GB, free: 4.105 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.749e-06/0.4332, allocations: 4 kB / 1.213 GB, free: 4.102 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.088e-05/0.4332, allocations: 4 kB / 1.213 GB, free: 4.098 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.567e-06/0.4332, allocations: 4 kB / 1.213 GB, free: 4.094 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.4332, allocations: 0 / 1.213 GB, free: 4.094 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003643/0.4336, allocations: 243.4 kB / 1.213 GB, free: 3.84 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.388e-05/0.4337, allocations: 85.05 kB / 1.213 GB, free: 3.738 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.046e-05/0.4337, allocations: 0 / 1.213 GB, free: 3.738 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001069/0.4338, allocations: 15.98 kB / 1.213 GB, free: 3.723 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.126e-05/0.4339, allocations: 11.92 kB / 1.213 GB, free: 3.711 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.02e-05/0.4339, allocations: 7.938 kB / 1.213 GB, free: 3.703 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 5.502e-05/0.4339, allocations: 83.28 kB / 1.213 GB, free: 3.621 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4339, allocations: 0 / 1.213 GB, free: 3.621 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002445/0.4342, allocations: 23.98 kB / 1.213 GB, free: 3.598 MB / 0.9669 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.0001653/0.4344, allocations: 99.25 kB / 1.213 GB, free: 3.492 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0003304/0.4347, allocations: 107.8 kB / 1.214 GB, free: 3.387 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.4347, allocations: 0 / 1.214 GB, free: 3.387 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001289/0.4348, allocations: 39.97 kB / 1.214 GB, free: 3.348 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000279/0.4351, allocations: 17.7 kB / 1.214 GB, free: 3.332 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000411/0.4355, allocations: 166.5 kB / 1.214 GB, free: 3.145 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003046/0.4359, allocations: 0.693 MB / 1.214 GB, free: 2.426 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 3.826e-05/0.4359, allocations: 4.438 kB / 1.214 GB, free: 2.422 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.972e-05/0.4359, allocations: 11.44 kB / 1.214 GB, free: 2.41 MB / 0.9669 GB Notification: Performance of SimCode: time 2.21e-07/0.4359, allocations: 0 / 1.214 GB, free: 2.41 MB / 0.9669 GB Notification: Performance of Templates: time 0.003785/0.4397, allocations: 1.036 MB / 1.215 GB, free: 1.383 MB / 0.9669 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/jenkins/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