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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001602/0.001602, allocations: 110 kB / 18.93 MB, free: 2.945 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00197/0.00197, allocations: 186 kB / 22.23 MB, free: 5.164 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.504/1.504, allocations: 225.6 MB / 251 MB, free: 13 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo): time 3.245/3.245, allocations: 0.4893 GB / 0.7884 GB, free: 33.18 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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=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 0.001986/0.001986, allocations: 69.81 kB / 1.145 GB, free: 30.72 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5018/0.5038, allocations: 174.9 MB / 1.316 GB, free: 9.715 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.002666/0.5065, allocations: 0.6892 MB / 1.317 GB, free: 9.027 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001756/0.5082, allocations: 1.081 MB / 1.318 GB, free: 7.934 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.129e-05/0.5083, allocations: 3.938 kB / 1.318 GB, free: 7.93 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 3.205e-05/0.5083, allocations: 3.938 kB / 1.318 GB, free: 7.926 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 9.44e-05/0.5084, allocations: 11.91 kB / 1.318 GB, free: 7.914 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004229/0.5089, allocations: 47.83 kB / 1.318 GB, free: 7.867 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0001932/0.509, allocations: 67.89 kB / 1.318 GB, free: 7.801 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000122/0.5092, allocations: 12 kB / 1.318 GB, free: 7.789 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001045/0.5093, allocations: 27.92 kB / 1.318 GB, free: 7.762 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 8.543e-05/0.5094, allocations: 35.83 kB / 1.318 GB, free: 7.727 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 2.07e-05/0.5094, allocations: 4 kB / 1.318 GB, free: 7.723 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 9.166e-05/0.5095, allocations: 31.92 kB / 1.318 GB, free: 7.691 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 3.121e-05/0.5095, allocations: 11.98 kB / 1.318 GB, free: 7.68 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 5.851e-05/0.5096, allocations: 31.84 kB / 1.318 GB, free: 7.648 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0002123/0.5098, allocations: 79.62 kB / 1.318 GB, free: 7.57 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.5098, allocations: 0 / 1.318 GB, free: 7.57 MB / 1.014 GB Notification: Performance of FrontEnd: time 2.114e-06/0.5098, allocations: 0 / 1.318 GB, free: 7.57 MB / 1.014 GB Notification: Performance of Transformations before backend: time 8.095e-06/0.5098, allocations: 0 / 1.318 GB, free: 7.57 MB / 1.014 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.0008172/0.5106, allocations: 314.1 kB / 1.318 GB, free: 7.23 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 5.327e-05/0.5107, allocations: 8.031 kB / 1.318 GB, free: 7.223 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.981e-05/0.5107, allocations: 8.891 kB / 1.318 GB, free: 7.215 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001447/0.5109, allocations: 106.5 kB / 1.319 GB, free: 7.086 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.852e-05/0.5109, allocations: 4.359 kB / 1.319 GB, free: 7.082 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.581e-05/0.5109, allocations: 12.38 kB / 1.319 GB, free: 7.07 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000271/0.5112, allocations: 82.09 kB / 1.319 GB, free: 6.984 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.404e-05/0.5112, allocations: 192 / 1.319 GB, free: 6.984 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.185e-05/0.5112, allocations: 7.922 kB / 1.319 GB, free: 6.977 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.603e-06/0.5112, allocations: 4 kB / 1.319 GB, free: 6.973 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002151/0.5114, allocations: 55.95 kB / 1.319 GB, free: 6.918 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006524/0.5121, allocations: 275.9 kB / 1.319 GB, free: 6.605 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002132/0.5123, allocations: 82.41 kB / 1.319 GB, free: 6.516 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001228/0.5124, allocations: 40.83 kB / 1.319 GB, free: 6.473 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 3.48e-05/0.5125, allocations: 4 kB / 1.319 GB, free: 6.469 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003535/0.5128, allocations: 83.38 kB / 1.319 GB, free: 6.375 MB / 1.014 GB Notification: Performance of pre-optimization done (n=10): time 2.395e-06/0.5128, allocations: 0 / 1.319 GB, free: 6.375 MB / 1.014 GB Notification: Performance of matching and sorting (n=10): time 0.0005497/0.5134, allocations: 177.7 kB / 1.319 GB, free: 6.195 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.926e-05/0.5135, allocations: 63.33 kB / 1.319 GB, free: 6.121 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001209/0.5136, allocations: 109.8 kB / 1.319 GB, free: 6.004 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 3.19e-05/0.5136, allocations: 33.69 kB / 1.32 GB, free: 5.965 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 9.447e-05/0.5137, allocations: 84.38 kB / 1.32 GB, free: 5.875 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 3.956e-05/0.5137, allocations: 24.19 kB / 1.32 GB, free: 5.852 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.596e-05/0.5138, allocations: 33.7 kB / 1.32 GB, free: 5.812 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0002139/0.514, allocations: 322.8 kB / 1.32 GB, free: 5.488 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000141/0.5142, allocations: 39.97 kB / 1.32 GB, free: 5.449 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001714/0.5144, allocations: 69.23 kB / 1.32 GB, free: 5.375 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002781/0.5146, allocations: 110.5 kB / 1.32 GB, free: 5.258 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/0.5146, allocations: 3.938 kB / 1.32 GB, free: 5.254 MB / 1.014 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003903/0.515, allocations: 141.5 kB / 1.32 GB, free: 5.109 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 3.016e-05/0.5151, allocations: 8 kB / 1.32 GB, free: 5.102 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.816e-06/0.5151, allocations: 0 / 1.32 GB, free: 5.102 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.581e-05/0.5151, allocations: 0 / 1.32 GB, free: 5.102 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001525/0.5153, allocations: 19.98 kB / 1.32 GB, free: 5.082 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.048e-05/0.5153, allocations: 0 / 1.32 GB, free: 5.082 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.197e-05/0.5153, allocations: 20.05 kB / 1.32 GB, free: 5.062 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.674e-05/0.5154, allocations: 4 kB / 1.32 GB, free: 5.059 MB / 1.014 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.0001928/0.5156, allocations: 130.2 kB / 1.32 GB, free: 4.922 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.642e-05/0.5156, allocations: 7.953 kB / 1.32 GB, free: 4.914 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000404/0.516, allocations: 141.9 kB / 1.321 GB, free: 4.766 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.935e-06/0.516, allocations: 4 kB / 1.321 GB, free: 4.762 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.123e-06/0.516, allocations: 4 kB / 1.321 GB, free: 4.758 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/0.516, allocations: 3.984 kB / 1.321 GB, free: 4.754 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007248/0.5167, allocations: 381.4 kB / 1.321 GB, free: 4.332 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.287e-06/0.5167, allocations: 0 / 1.321 GB, free: 4.332 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.129e-05/0.5168, allocations: 15.92 kB / 1.321 GB, free: 4.316 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.087e-06/0.5168, allocations: 0 / 1.321 GB, free: 4.316 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.674e-05/0.5168, allocations: 4 kB / 1.321 GB, free: 4.312 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.354e-06/0.5168, allocations: 0 / 1.321 GB, free: 4.312 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.5168, allocations: 4.25 kB / 1.321 GB, free: 4.309 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004468/0.5173, allocations: 243.4 kB / 1.321 GB, free: 4.055 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 3.139e-05/0.5173, allocations: 7.953 kB / 1.321 GB, free: 4.047 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.413e-05/0.5173, allocations: 4 kB / 1.321 GB, free: 4.043 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001098/0.5174, allocations: 15.98 kB / 1.321 GB, free: 4.027 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.464e-05/0.5175, allocations: 7.984 kB / 1.321 GB, free: 4.02 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.279e-05/0.5175, allocations: 7.938 kB / 1.321 GB, free: 4.012 MB / 1.014 GB Notification: Performance of sorting global known variables: time 7.33e-05/0.5176, allocations: 83.28 kB / 1.321 GB, free: 3.93 MB / 1.014 GB Notification: Performance of sort global known variables: time 5e-08/0.5176, allocations: 0 / 1.321 GB, free: 3.93 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0002723/0.5179, allocations: 19.98 kB / 1.321 GB, free: 3.91 MB / 1.014 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.0003138/0.5182, allocations: 108.8 kB / 1.321 GB, free: 3.797 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0003787/0.5186, allocations: 99.88 kB / 1.322 GB, free: 3.699 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.5186, allocations: 0 / 1.322 GB, free: 3.699 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0001444/0.5187, allocations: 43.91 kB / 1.322 GB, free: 3.656 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002883/0.519, allocations: 9.703 kB / 1.322 GB, free: 3.648 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005166/0.5195, allocations: 162.7 kB / 1.322 GB, free: 3.465 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004703/0.52, allocations: 0.6886 MB / 1.322 GB, free: 2.75 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 4.898e-05/0.52, allocations: 12.42 kB / 1.322 GB, free: 2.738 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.27e-05/0.5201, allocations: 11.44 kB / 1.322 GB, free: 2.727 MB / 1.014 GB Notification: Performance of SimCode: time 5.92e-07/0.5201, allocations: 0 / 1.322 GB, free: 2.727 MB / 1.014 GB Notification: Performance of Templates: time 0.005089/0.5252, allocations: 1.081 MB / 1.324 GB, free: 1.652 MB / 1.014 GB " [Timeout remaining time 299] 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: 9.560809586197138]