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.00107/0.00107, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001028/0.001028, allocations: 195 kB / 16.53 MB, free: 6.664 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.536/1.536, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.002/3.002, allocations: 472.6 MB / 0.7451 GB, free: 4.668 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00129/0.00129, allocations: 63.81 kB / 0.9121 GB, free: 33.45 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4219/0.4232, allocations: 159.9 MB / 1.068 GB, free: 10.41 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.002107/0.4254, allocations: 0.6813 MB / 1.069 GB, free: 9.734 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001354/0.4267, allocations: 1.071 MB / 1.07 GB, free: 8.652 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.98e-05/0.4268, allocations: 0 / 1.07 GB, free: 8.652 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.107e-05/0.4269, allocations: 3.938 kB / 1.07 GB, free: 8.648 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 7.015e-05/0.4269, allocations: 15.91 kB / 1.07 GB, free: 8.633 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002956/0.4272, allocations: 47.83 kB / 1.07 GB, free: 8.586 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001029/0.4273, allocations: 67.84 kB / 1.07 GB, free: 8.52 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001228/0.4275, allocations: 23.89 kB / 1.07 GB, free: 8.496 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 7.373e-05/0.4276, allocations: 31.92 kB / 1.07 GB, free: 8.465 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 7.522e-05/0.4276, allocations: 35.83 kB / 1.07 GB, free: 8.43 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.927e-05/0.4277, allocations: 8 kB / 1.07 GB, free: 8.422 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 7.279e-05/0.4277, allocations: 19.98 kB / 1.07 GB, free: 8.402 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.295e-05/0.4278, allocations: 11.98 kB / 1.07 GB, free: 8.391 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 4.392e-05/0.4278, allocations: 31.86 kB / 1.07 GB, free: 8.359 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.000151/0.428, allocations: 71.75 kB / 1.07 GB, free: 8.289 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.428, allocations: 0 / 1.07 GB, free: 8.289 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.393e-06/0.428, allocations: 4 kB / 1.07 GB, free: 8.285 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.524e-06/0.428, allocations: 0 / 1.07 GB, free: 8.285 MB / 0.8262 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.0006332/0.4286, allocations: 375.7 kB / 1.071 GB, free: 7.867 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.783e-05/0.4287, allocations: 8.031 kB / 1.071 GB, free: 7.859 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.641e-05/0.4287, allocations: 12.84 kB / 1.071 GB, free: 7.848 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001157/0.4289, allocations: 172.2 kB / 1.071 GB, free: 7.641 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.777e-05/0.4289, allocations: 12.36 kB / 1.071 GB, free: 7.629 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.595e-05/0.4289, allocations: 4.375 kB / 1.071 GB, free: 7.625 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002112/0.4291, allocations: 78.22 kB / 1.071 GB, free: 7.543 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.995e-06/0.4292, allocations: 192 / 1.071 GB, free: 7.543 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.702e-05/0.4292, allocations: 11.92 kB / 1.071 GB, free: 7.531 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-06/0.4292, allocations: 0 / 1.071 GB, free: 7.531 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001952/0.4294, allocations: 51.95 kB / 1.071 GB, free: 7.48 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000516/0.4299, allocations: 312.6 kB / 1.071 GB, free: 7.125 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001972/0.4301, allocations: 86.47 kB / 1.071 GB, free: 7.031 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001208/0.4302, allocations: 44.83 kB / 1.071 GB, free: 6.984 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.357e-05/0.4303, allocations: 0 / 1.071 GB, free: 6.984 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002397/0.4305, allocations: 91.48 kB / 1.072 GB, free: 6.883 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=10): time 1.523e-06/0.4305, allocations: 0 / 1.072 GB, free: 6.883 MB / 0.8262 GB Notification: Performance of matching and sorting (n=10): time 0.0004888/0.431, allocations: 173.8 kB / 1.072 GB, free: 6.707 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.755e-05/0.4311, allocations: 63.48 kB / 1.072 GB, free: 6.633 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.142e-05/0.4312, allocations: 113.8 kB / 1.072 GB, free: 6.512 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.636e-05/0.4312, allocations: 33.7 kB / 1.072 GB, free: 6.473 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.688e-05/0.4313, allocations: 80.38 kB / 1.072 GB, free: 6.387 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.128e-05/0.4313, allocations: 35.62 kB / 1.072 GB, free: 6.352 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.877e-05/0.4313, allocations: 29.72 kB / 1.072 GB, free: 6.316 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001044/0.4315, allocations: 318.8 kB / 1.072 GB, free: 5.996 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000119/0.4316, allocations: 39.97 kB / 1.072 GB, free: 5.957 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001254/0.4317, allocations: 58.55 kB / 1.072 GB, free: 5.891 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002278/0.432, allocations: 106.4 kB / 1.073 GB, free: 5.777 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.432, allocations: 4 kB / 1.073 GB, free: 5.773 MB / 0.8262 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003089/0.4323, allocations: 141.5 kB / 1.073 GB, free: 5.629 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.507e-05/0.4323, allocations: 5.875 kB / 1.073 GB, free: 5.625 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.88e-06/0.4323, allocations: 0 / 1.073 GB, free: 5.625 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.357e-05/0.4323, allocations: 4 kB / 1.073 GB, free: 5.621 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001256/0.4325, allocations: 19.92 kB / 1.073 GB, free: 5.602 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.444e-06/0.4325, allocations: 7.984 kB / 1.073 GB, free: 5.594 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.131e-05/0.4326, allocations: 19.91 kB / 1.073 GB, free: 5.574 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.116e-05/0.4326, allocations: 4 kB / 1.073 GB, free: 5.57 MB / 0.8262 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 9.85e-05/0.4327, allocations: 135.8 kB / 1.073 GB, free: 5.43 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.204e-05/0.4327, allocations: 0 / 1.073 GB, free: 5.43 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003396/0.433, allocations: 145.9 kB / 1.073 GB, free: 5.281 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.4331, allocations: 0 / 1.073 GB, free: 5.281 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.4331, allocations: 0 / 1.073 GB, free: 5.281 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.4331, allocations: 4 kB / 1.073 GB, free: 5.277 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004866/0.4336, allocations: 410.3 kB / 1.073 GB, free: 4.82 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.4336, allocations: 0 / 1.073 GB, free: 4.82 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.795e-05/0.4336, allocations: 15.92 kB / 1.073 GB, free: 4.805 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.4337, allocations: 0 / 1.073 GB, free: 4.805 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.213e-05/0.4337, allocations: 4 kB / 1.073 GB, free: 4.801 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.4337, allocations: 0 / 1.073 GB, free: 4.801 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.4337, allocations: 4.188 kB / 1.073 GB, free: 4.797 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003246/0.434, allocations: 239.3 kB / 1.074 GB, free: 4.547 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.864e-05/0.4341, allocations: 84.95 kB / 1.074 GB, free: 4.445 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.255e-05/0.4341, allocations: 8 kB / 1.074 GB, free: 4.438 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000103/0.4342, allocations: 7.984 kB / 1.074 GB, free: 4.43 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.379e-05/0.4342, allocations: 12.23 kB / 1.074 GB, free: 4.418 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.249e-05/0.4343, allocations: 7.938 kB / 1.074 GB, free: 4.41 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.369e-05/0.4343, allocations: 91.22 kB / 1.074 GB, free: 4.32 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4343, allocations: 0 / 1.074 GB, free: 4.32 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002438/0.4346, allocations: 27.98 kB / 1.074 GB, free: 4.293 MB / 0.8262 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.0001658/0.4347, allocations: 101.1 kB / 1.074 GB, free: 4.188 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003148/0.4351, allocations: 107.9 kB / 1.074 GB, free: 4.082 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.4351, allocations: 0 / 1.074 GB, free: 4.082 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001311/0.4352, allocations: 51.95 kB / 1.074 GB, free: 4.031 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002726/0.4355, allocations: 15.98 kB / 1.074 GB, free: 4.016 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003611/0.4359, allocations: 162.6 kB / 1.074 GB, free: 3.832 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002495/0.4361, allocations: 0.6885 MB / 1.075 GB, free: 3.117 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.442e-05/0.4362, allocations: 4.438 kB / 1.075 GB, free: 3.113 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.833e-05/0.4362, allocations: 11.44 kB / 1.075 GB, free: 3.102 MB / 0.8262 GB Notification: Performance of SimCode: time 5.21e-07/0.4362, allocations: 0 / 1.075 GB, free: 3.102 MB / 0.8262 GB Notification: Performance of Templates: time 0.003383/0.4396, allocations: 1.034 MB / 1.076 GB, free: 2.078 MB / 0.8262 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