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.01255/0.01255, allocations: 97.64 kB / 15.73 MB, free: 6.48 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.002411/0.002411, allocations: 192.4 kB / 16.67 MB, free: 6.391 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.554/1.554, allocations: 222.9 MB / 240.4 MB, free: 4.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.942/2.942, allocations: 461.9 MB / 0.7348 GB, free: 14.61 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001239/0.001239, allocations: 63.91 kB / 1.054 GB, free: 7.16 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3667/0.368, allocations: 157.4 MB / 1.208 GB, free: 9.656 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.001857/0.3699, allocations: 0.6888 MB / 1.208 GB, free: 8.969 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001241/0.3712, allocations: 1.065 MB / 1.209 GB, free: 7.891 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.568e-05/0.3712, allocations: 0 / 1.209 GB, free: 7.891 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.668e-05/0.3713, allocations: 7.922 kB / 1.209 GB, free: 7.883 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 6.958e-05/0.3713, allocations: 15.92 kB / 1.209 GB, free: 7.867 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002779/0.3716, allocations: 47.83 kB / 1.209 GB, free: 7.82 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001134/0.3717, allocations: 63.89 kB / 1.21 GB, free: 7.758 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001086/0.3719, allocations: 8 kB / 1.21 GB, free: 7.75 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 7.952e-05/0.3719, allocations: 31.86 kB / 1.21 GB, free: 7.719 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 6.317e-05/0.372, allocations: 35.83 kB / 1.21 GB, free: 7.684 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.842e-05/0.372, allocations: 4 kB / 1.21 GB, free: 7.68 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 7.386e-05/0.3721, allocations: 27.92 kB / 1.21 GB, free: 7.652 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.1e-05/0.3721, allocations: 15.98 kB / 1.21 GB, free: 7.637 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 4.104e-05/0.3722, allocations: 35.84 kB / 1.21 GB, free: 7.602 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001418/0.3723, allocations: 71.75 kB / 1.21 GB, free: 7.531 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.3723, allocations: 0 / 1.21 GB, free: 7.531 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.543e-06/0.3724, allocations: 0 / 1.21 GB, free: 7.531 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.971e-06/0.3724, allocations: 0 / 1.21 GB, free: 7.531 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.0006439/0.373, allocations: 387.3 kB / 1.21 GB, free: 7.102 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.233e-05/0.3731, allocations: 12.03 kB / 1.21 GB, free: 7.09 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.995e-05/0.3731, allocations: 8.938 kB / 1.21 GB, free: 7.082 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001226/0.3732, allocations: 172.2 kB / 1.21 GB, free: 6.875 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.244e-05/0.3733, allocations: 4.375 kB / 1.21 GB, free: 6.871 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.971e-05/0.3733, allocations: 8.375 kB / 1.21 GB, free: 6.863 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002256/0.3735, allocations: 82.19 kB / 1.21 GB, free: 6.777 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.285e-06/0.3735, allocations: 192 / 1.21 GB, free: 6.777 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.459e-05/0.3736, allocations: 7.938 kB / 1.21 GB, free: 6.77 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.15e-06/0.3736, allocations: 0 / 1.21 GB, free: 6.77 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000207/0.3738, allocations: 59.89 kB / 1.21 GB, free: 6.711 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004846/0.3743, allocations: 304.8 kB / 1.211 GB, free: 6.363 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001929/0.3745, allocations: 86.47 kB / 1.211 GB, free: 6.27 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001213/0.3746, allocations: 40.84 kB / 1.211 GB, free: 6.227 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.352e-05/0.3746, allocations: 4 kB / 1.211 GB, free: 6.223 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002056/0.3748, allocations: 91.48 kB / 1.211 GB, free: 6.121 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=10): time 1.473e-06/0.3749, allocations: 0 / 1.211 GB, free: 6.121 MB / 0.9669 GB Notification: Performance of matching and sorting (n=10): time 0.0004803/0.3753, allocations: 173.5 kB / 1.211 GB, free: 5.945 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.1e-05/0.3754, allocations: 59.41 kB / 1.211 GB, free: 5.875 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.005e-05/0.3755, allocations: 110.2 kB / 1.211 GB, free: 5.758 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.95e-05/0.3755, allocations: 25.7 kB / 1.211 GB, free: 5.727 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.087e-05/0.3756, allocations: 92.36 kB / 1.211 GB, free: 5.629 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.926e-05/0.3756, allocations: 27.64 kB / 1.211 GB, free: 5.602 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.087e-05/0.3756, allocations: 37.64 kB / 1.211 GB, free: 5.559 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001102/0.3758, allocations: 318.8 kB / 1.212 GB, free: 5.238 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001172/0.3759, allocations: 44.22 kB / 1.212 GB, free: 5.195 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001292/0.376, allocations: 55.05 kB / 1.212 GB, free: 5.133 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002358/0.3763, allocations: 110.3 kB / 1.212 GB, free: 5.016 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.3763, allocations: 0 / 1.212 GB, free: 5.016 MB / 0.9669 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003012/0.3766, allocations: 153.5 kB / 1.212 GB, free: 4.859 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.363e-05/0.3766, allocations: 5.562 kB / 1.212 GB, free: 4.855 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/0.3766, allocations: 0 / 1.212 GB, free: 4.855 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.277e-05/0.3766, allocations: 0 / 1.212 GB, free: 4.855 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001193/0.3768, allocations: 19.98 kB / 1.212 GB, free: 4.836 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.112e-05/0.3768, allocations: 7.938 kB / 1.212 GB, free: 4.828 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.149e-05/0.3769, allocations: 19.83 kB / 1.212 GB, free: 4.809 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.172e-05/0.3769, allocations: 8.062 kB / 1.212 GB, free: 4.801 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.0001001/0.377, allocations: 117.8 kB / 1.212 GB, free: 4.676 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.364e-05/0.377, allocations: 4 kB / 1.212 GB, free: 4.672 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003539/0.3774, allocations: 149.8 kB / 1.212 GB, free: 4.516 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.3774, allocations: 0 / 1.212 GB, free: 4.516 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.301e-06/0.3774, allocations: 0 / 1.212 GB, free: 4.516 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.54e-06/0.3774, allocations: 0 / 1.212 GB, free: 4.516 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005915/0.378, allocations: 410.4 kB / 1.213 GB, free: 4.059 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.378, allocations: 0 / 1.213 GB, free: 4.059 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.578e-05/0.3781, allocations: 11.98 kB / 1.213 GB, free: 4.047 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.148e-06/0.3781, allocations: 4 kB / 1.213 GB, free: 4.043 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.236e-05/0.3781, allocations: 0 / 1.213 GB, free: 4.043 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.749e-06/0.3781, allocations: 0 / 1.213 GB, free: 4.043 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.3781, allocations: 3.938 kB / 1.213 GB, free: 4.039 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003948/0.3785, allocations: 243.5 kB / 1.213 GB, free: 3.785 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 6.642e-05/0.3786, allocations: 88.97 kB / 1.213 GB, free: 3.68 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.02e-05/0.3786, allocations: 0 / 1.213 GB, free: 3.68 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001144/0.3787, allocations: 15.98 kB / 1.213 GB, free: 3.664 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.158e-05/0.3788, allocations: 11.92 kB / 1.213 GB, free: 3.652 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.264e-05/0.3788, allocations: 7.922 kB / 1.213 GB, free: 3.645 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 5.592e-05/0.3789, allocations: 87.28 kB / 1.213 GB, free: 3.559 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3789, allocations: 4 kB / 1.213 GB, free: 3.555 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002481/0.3791, allocations: 16 kB / 1.213 GB, free: 3.539 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.0002276/0.3794, allocations: 108.8 kB / 1.213 GB, free: 3.426 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0003507/0.3797, allocations: 99.88 kB / 1.214 GB, free: 3.328 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 4.359e-06/0.3797, allocations: 128 / 1.214 GB, free: 3.328 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001363/0.3799, allocations: 51.91 kB / 1.214 GB, free: 3.277 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002721/0.3802, allocations: 13.89 kB / 1.214 GB, free: 3.266 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004066/0.3806, allocations: 170.6 kB / 1.214 GB, free: 3.074 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000336/0.3809, allocations: 0.6812 MB / 1.214 GB, free: 2.367 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 3.477e-05/0.381, allocations: 12.42 kB / 1.214 GB, free: 2.355 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.156e-05/0.381, allocations: 15.44 kB / 1.214 GB, free: 2.34 MB / 0.9669 GB Notification: Performance of SimCode: time 2.1e-07/0.381, allocations: 0 / 1.214 GB, free: 2.34 MB / 0.9669 GB Notification: Performance of Templates: time 0.004004/0.385, allocations: 1.059 MB / 1.215 GB, free: 1.285 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