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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008259/0.0008259, allocations: 76.5 kB / 19.93 MB, free: 4.621 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008197/0.0008197, allocations: 177.9 kB / 23.21 MB, free: 1.34 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8614/0.8614, allocations: 177.1 MB / 203.5 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 1.79/1.79, allocations: 389 MB / 0.6338 GB, free: 12.7 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,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=2500,variableFilter="time|firOrdHol.u|firOrdHol.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.893e-06/1.893e-06, allocations: 0 / 1.001 GB, free: 13.02 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.028e-05/2.217e-05, allocations: 6.219 kB / 1.001 GB, free: 13.02 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.001166/0.001189, allocations: 0.6662 MB / 1.002 GB, free: 12.35 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.001019/0.002208, allocations: 1.101 MB / 1.003 GB, free: 11.24 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.323e-05/0.002251, allocations: 3.938 kB / 1.003 GB, free: 11.23 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 2.918e-05/0.00228, allocations: 3.938 kB / 1.003 GB, free: 11.23 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 6.25e-05/0.002343, allocations: 19.86 kB / 1.003 GB, free: 11.21 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002605/0.002603, allocations: 47.77 kB / 1.003 GB, free: 11.16 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 9.507e-05/0.002698, allocations: 71.75 kB / 1.003 GB, free: 11.09 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 9.853e-05/0.002797, allocations: 8 kB / 1.003 GB, free: 11.09 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 7.646e-05/0.002873, allocations: 39.95 kB / 1.003 GB, free: 11.05 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 4.565e-05/0.002919, allocations: 23.91 kB / 1.003 GB, free: 11.02 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 1.72e-05/0.002936, allocations: 12 kB / 1.003 GB, free: 11.01 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 6.097e-05/0.002997, allocations: 27.91 kB / 1.003 GB, free: 10.98 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 2.232e-05/0.003019, allocations: 15.98 kB / 1.003 GB, free: 10.97 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 3.101e-05/0.00305, allocations: 23.91 kB / 1.003 GB, free: 10.95 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0001375/0.003188, allocations: 83.75 kB / 1.003 GB, free: 10.86 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 2.755e-06/0.003191, allocations: 3.984 kB / 1.003 GB, free: 10.86 MB / 0.9636 GB Notification: Performance of FrontEnd: time 7.92e-07/0.003191, allocations: 0 / 1.003 GB, free: 10.86 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 3.758e-06/0.003195, allocations: 0 / 1.003 GB, free: 10.86 MB / 0.9636 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.000452/0.003647, allocations: 302.2 kB / 1.003 GB, free: 10.53 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 3.828e-05/0.003685, allocations: 13.34 kB / 1.003 GB, free: 10.52 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.866e-05/0.003764, allocations: 8.891 kB / 1.003 GB, free: 10.51 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.855e-05/0.003843, allocations: 121.6 kB / 1.003 GB, free: 10.37 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.063e-05/0.003863, allocations: 4.375 kB / 1.003 GB, free: 10.36 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.501e-05/0.003878, allocations: 12.36 kB / 1.003 GB, free: 10.35 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001504/0.004029, allocations: 78.16 kB / 1.003 GB, free: 10.27 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.415e-06/0.004037, allocations: 192 / 1.003 GB, free: 10.27 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.075e-05/0.004048, allocations: 4.375 kB / 1.003 GB, free: 10.27 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.01e-06/0.004053, allocations: 384 / 1.003 GB, free: 10.27 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001141/0.004167, allocations: 63.88 kB / 1.004 GB, free: 10.2 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003519/0.004519, allocations: 240.4 kB / 1.004 GB, free: 9.938 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001242/0.004643, allocations: 74.52 kB / 1.004 GB, free: 9.855 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.043e-05/0.004713, allocations: 40.83 kB / 1.004 GB, free: 9.812 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 2.034e-05/0.004734, allocations: 0 / 1.004 GB, free: 9.812 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001357/0.004869, allocations: 99.44 kB / 1.004 GB, free: 9.703 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=10): time 1.062e-06/0.00487, allocations: 0 / 1.004 GB, free: 9.703 MB / 0.9636 GB Notification: Performance of matching and sorting (n=10): time 0.0003102/0.005181, allocations: 177.4 kB / 1.004 GB, free: 9.523 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.568e-05/0.005216, allocations: 55.41 kB / 1.004 GB, free: 9.457 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.684e-05/0.005273, allocations: 105.8 kB / 1.004 GB, free: 9.344 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 1.655e-05/0.00529, allocations: 37.69 kB / 1.004 GB, free: 9.301 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 3.473e-05/0.005324, allocations: 84.33 kB / 1.004 GB, free: 9.211 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 2.481e-05/0.005349, allocations: 35.78 kB / 1.004 GB, free: 9.176 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.91e-05/0.005388, allocations: 37.7 kB / 1.004 GB, free: 9.133 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 7.268e-05/0.005461, allocations: 322.8 kB / 1.005 GB, free: 8.809 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.213e-05/0.005523, allocations: 35.97 kB / 1.005 GB, free: 8.773 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.068e-05/0.005604, allocations: 60.94 kB / 1.005 GB, free: 8.707 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001334/0.005737, allocations: 98.47 kB / 1.005 GB, free: 8.602 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.205e-06/0.005739, allocations: 8 kB / 1.005 GB, free: 8.594 MB / 0.9636 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001734/0.005913, allocations: 141.6 kB / 1.005 GB, free: 8.449 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.313e-05/0.005926, allocations: 9.656 kB / 1.005 GB, free: 8.441 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.679e-06/0.005931, allocations: 0 / 1.005 GB, free: 8.441 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.209e-05/0.005943, allocations: 4 kB / 1.005 GB, free: 8.438 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.679e-05/0.006019, allocations: 19.92 kB / 1.005 GB, free: 8.418 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.422e-06/0.006026, allocations: 4 kB / 1.005 GB, free: 8.414 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.555e-05/0.006061, allocations: 15.98 kB / 1.005 GB, free: 8.398 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.406e-06/0.00607, allocations: 8 kB / 1.005 GB, free: 8.391 MB / 0.9636 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 6.419e-05/0.006134, allocations: 121.8 kB / 1.005 GB, free: 8.262 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.705e-06/0.006142, allocations: 7.891 kB / 1.005 GB, free: 8.254 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001918/0.006334, allocations: 146 kB / 1.005 GB, free: 8.105 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.744e-06/0.006335, allocations: 256 / 1.005 GB, free: 8.105 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.399e-06/0.00634, allocations: 0 / 1.005 GB, free: 8.105 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.441e-06/0.006345, allocations: 7.984 kB / 1.005 GB, free: 8.098 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003778/0.006723, allocations: 354.5 kB / 1.006 GB, free: 7.715 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.006724, allocations: 0 / 1.006 GB, free: 7.715 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.255e-05/0.006757, allocations: 8.094 kB / 1.006 GB, free: 7.707 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.893e-06/0.006759, allocations: 3.938 kB / 1.006 GB, free: 7.703 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.296e-06/0.006767, allocations: 7.922 kB / 1.006 GB, free: 7.695 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.006768, allocations: 4 kB / 1.006 GB, free: 7.691 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.006769, allocations: 0 / 1.006 GB, free: 7.691 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001806/0.00695, allocations: 231.4 kB / 1.006 GB, free: 7.449 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 8.696e-06/0.006959, allocations: 19.83 kB / 1.006 GB, free: 7.43 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.267e-05/0.006971, allocations: 7.922 kB / 1.006 GB, free: 7.422 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.278e-05/0.007024, allocations: 11.98 kB / 1.006 GB, free: 7.41 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.184e-05/0.007056, allocations: 4 kB / 1.006 GB, free: 7.406 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.376e-06/0.007064, allocations: 7.984 kB / 1.006 GB, free: 7.398 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 3.478e-05/0.007099, allocations: 83.28 kB / 1.006 GB, free: 7.316 MB / 0.9636 GB Notification: Performance of sort global known variables: time 5e-08/0.007099, allocations: 0 / 1.006 GB, free: 7.316 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0001618/0.007261, allocations: 20 kB / 1.006 GB, free: 7.297 MB / 0.9636 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.0001114/0.007372, allocations: 107.2 kB / 1.006 GB, free: 7.18 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0001771/0.00755, allocations: 91.88 kB / 1.006 GB, free: 7.09 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 5.4e-06/0.007555, allocations: 0 / 1.006 GB, free: 7.09 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 7.015e-05/0.007625, allocations: 47.91 kB / 1.006 GB, free: 7.043 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000185/0.00781, allocations: 7.938 kB / 1.006 GB, free: 7.035 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002887/0.008099, allocations: 195.3 kB / 1.007 GB, free: 6.812 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.278e-05/0.008142, allocations: 71.47 kB / 1.007 GB, free: 6.723 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.649e-05/0.008168, allocations: 12.5 kB / 1.007 GB, free: 6.711 MB / 0.9636 GB Notification: Performance of SimCode: time 3.61e-07/0.008168, allocations: 288 / 1.007 GB, free: 6.711 MB / 0.9636 GB Notification: Performance of Templates: time 0.001922/0.01009, allocations: 1.133 MB / 1.008 GB, free: 5.582 MB / 0.9636 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.makefile [Timeout 300] (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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1) [Timeout 800] 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) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 6.277055986225605]