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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.001447/0.001447, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001632/0.001632, allocations: 195.4 kB / 16.25 MB, free: 6.621 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.546/1.546, allocations: 222.9 MB / 239.9 MB, free: 4.496 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.133/3.133, allocations: 482.3 MB / 0.7542 GB, free: 11.27 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001995/0.001995, allocations: 62.12 kB / 0.9232 GB, free: 29.58 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4053/0.4073, allocations: 162.2 MB / 1.082 GB, free: 13.69 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.002154/0.4096, allocations: 0.7395 MB / 1.082 GB, free: 12.95 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001585/0.4112, allocations: 1.065 MB / 1.083 GB, free: 11.87 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.171e-05/0.4112, allocations: 0 / 1.083 GB, free: 11.87 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 4.033e-05/0.4113, allocations: 7.938 kB / 1.083 GB, free: 11.86 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 7.132e-05/0.4114, allocations: 0 / 1.083 GB, free: 11.86 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.000354/0.4117, allocations: 43.89 kB / 1.083 GB, free: 11.82 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0001205/0.4119, allocations: 71.83 kB / 1.084 GB, free: 11.75 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001263/0.412, allocations: 15.98 kB / 1.084 GB, free: 11.73 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 8.433e-05/0.4121, allocations: 23.92 kB / 1.084 GB, free: 11.71 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 8.28e-05/0.4122, allocations: 35.83 kB / 1.084 GB, free: 11.68 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 2.238e-05/0.4122, allocations: 11.98 kB / 1.084 GB, free: 11.66 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 8.683e-05/0.4123, allocations: 19.98 kB / 1.084 GB, free: 11.64 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 2.975e-05/0.4124, allocations: 12 kB / 1.084 GB, free: 11.63 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 6.291e-05/0.4124, allocations: 27.86 kB / 1.084 GB, free: 11.61 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001869/0.4126, allocations: 79.69 kB / 1.084 GB, free: 11.53 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.4126, allocations: 4 kB / 1.084 GB, free: 11.52 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.765e-06/0.4126, allocations: 0 / 1.084 GB, free: 11.52 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.007e-05/0.4127, allocations: 0 / 1.084 GB, free: 11.52 MB / 0.8419 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.0007421/0.4134, allocations: 383.6 kB / 1.084 GB, free: 11.1 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.249e-05/0.4135, allocations: 8.031 kB / 1.084 GB, free: 11.09 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.797e-05/0.4135, allocations: 12.84 kB / 1.084 GB, free: 11.08 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001612/0.4137, allocations: 176.2 kB / 1.084 GB, free: 10.87 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.649e-05/0.4137, allocations: 8.375 kB / 1.084 GB, free: 10.86 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.399e-05/0.4138, allocations: 12.36 kB / 1.084 GB, free: 10.85 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000245/0.414, allocations: 74.22 kB / 1.084 GB, free: 10.77 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.001e-05/0.414, allocations: 192 / 1.084 GB, free: 10.77 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.601e-05/0.414, allocations: 3.938 kB / 1.084 GB, free: 10.77 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.164e-06/0.4141, allocations: 4 kB / 1.084 GB, free: 10.76 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002126/0.4143, allocations: 59.88 kB / 1.084 GB, free: 10.7 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006157/0.4149, allocations: 308.8 kB / 1.085 GB, free: 10.35 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000216/0.4151, allocations: 82.47 kB / 1.085 GB, free: 10.26 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001251/0.4153, allocations: 44.83 kB / 1.085 GB, free: 10.21 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.731e-05/0.4153, allocations: 8 kB / 1.085 GB, free: 10.21 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002811/0.4156, allocations: 87.5 kB / 1.085 GB, free: 10.11 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=10): time 1.533e-06/0.4156, allocations: 0 / 1.085 GB, free: 10.11 MB / 0.8419 GB Notification: Performance of matching and sorting (n=10): time 0.0005294/0.4161, allocations: 173.5 kB / 1.085 GB, free: 9.934 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.812e-05/0.4162, allocations: 51.41 kB / 1.085 GB, free: 9.871 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.801e-05/0.4163, allocations: 109.8 kB / 1.085 GB, free: 9.754 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 3.169e-05/0.4163, allocations: 33.7 kB / 1.085 GB, free: 9.715 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 6.038e-05/0.4164, allocations: 88.36 kB / 1.085 GB, free: 9.621 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 3.1e-05/0.4164, allocations: 24.03 kB / 1.085 GB, free: 9.598 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.003e-05/0.4165, allocations: 33.7 kB / 1.085 GB, free: 9.559 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001408/0.4166, allocations: 322.8 kB / 1.086 GB, free: 9.234 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001224/0.4168, allocations: 35.97 kB / 1.086 GB, free: 9.199 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001436/0.4169, allocations: 68.45 kB / 1.086 GB, free: 9.125 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002571/0.4172, allocations: 110.3 kB / 1.086 GB, free: 9.008 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.4172, allocations: 0 / 1.086 GB, free: 9.008 MB / 0.8419 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003311/0.4175, allocations: 149.5 kB / 1.086 GB, free: 8.855 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.092e-05/0.4176, allocations: 8 kB / 1.086 GB, free: 8.848 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.4176, allocations: 0 / 1.086 GB, free: 8.848 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.341e-05/0.4176, allocations: 0 / 1.086 GB, free: 8.848 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001409/0.4177, allocations: 23.92 kB / 1.086 GB, free: 8.824 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.683e-06/0.4178, allocations: 0 / 1.086 GB, free: 8.824 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.667e-05/0.4179, allocations: 19.83 kB / 1.086 GB, free: 8.805 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.702e-05/0.4179, allocations: 8 kB / 1.086 GB, free: 8.797 MB / 0.8419 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.0001175/0.418, allocations: 130.3 kB / 1.086 GB, free: 8.66 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.655e-05/0.418, allocations: 4 kB / 1.086 GB, free: 8.656 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003814/0.4184, allocations: 141.9 kB / 1.086 GB, free: 8.508 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.451e-06/0.4184, allocations: 4 kB / 1.086 GB, free: 8.504 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.4184, allocations: 0 / 1.086 GB, free: 8.504 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.129e-06/0.4184, allocations: 3.984 kB / 1.086 GB, free: 8.5 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006204/0.4191, allocations: 410.6 kB / 1.087 GB, free: 8.043 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.877e-06/0.4191, allocations: 4 kB / 1.087 GB, free: 8.039 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.509e-05/0.4192, allocations: 15.92 kB / 1.087 GB, free: 8.023 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/0.4192, allocations: 0 / 1.087 GB, free: 8.023 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.541e-05/0.4192, allocations: 4 kB / 1.087 GB, free: 8.02 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.4192, allocations: 0 / 1.087 GB, free: 8.02 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.4192, allocations: 3.984 kB / 1.087 GB, free: 8.016 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003884/0.4196, allocations: 247.4 kB / 1.087 GB, free: 7.758 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 4.927e-05/0.4197, allocations: 88.98 kB / 1.087 GB, free: 7.652 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.005e-05/0.4197, allocations: 0 / 1.087 GB, free: 7.652 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000111/0.4198, allocations: 7.984 kB / 1.087 GB, free: 7.645 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.2e-05/0.4199, allocations: 11.98 kB / 1.087 GB, free: 7.633 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.321e-05/0.4199, allocations: 7.938 kB / 1.087 GB, free: 7.625 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 5.073e-05/0.4199, allocations: 87.28 kB / 1.087 GB, free: 7.539 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1e-07/0.4199, allocations: 0 / 1.087 GB, free: 7.539 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.000262/0.4202, allocations: 16 kB / 1.087 GB, free: 7.523 MB / 0.8419 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.0001793/0.4204, allocations: 108.8 kB / 1.087 GB, free: 7.41 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0003491/0.4207, allocations: 107.8 kB / 1.087 GB, free: 7.305 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.4208, allocations: 0 / 1.087 GB, free: 7.305 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001442/0.4209, allocations: 48.09 kB / 1.088 GB, free: 7.258 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002817/0.4212, allocations: 13.88 kB / 1.088 GB, free: 7.246 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004335/0.4216, allocations: 174.5 kB / 1.088 GB, free: 7.051 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003173/0.422, allocations: 0.6885 MB / 1.088 GB, free: 6.336 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 4.188e-05/0.422, allocations: 8.422 kB / 1.088 GB, free: 6.328 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.465e-05/0.4221, allocations: 11.44 kB / 1.088 GB, free: 6.316 MB / 0.8419 GB Notification: Performance of SimCode: time 4.81e-07/0.4221, allocations: 0 / 1.088 GB, free: 6.316 MB / 0.8419 GB Notification: Performance of Templates: time 0.004076/0.4261, allocations: 0.9618 MB / 1.089 GB, free: 5.359 MB / 0.8419 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