Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001804/0.001804, allocations: 110.2 kB / 16.46 MB, free: 6.508 MB / 14.72 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.002235/0.002235, allocations: 213.7 kB / 19.43 MB, free: 3.648 MB / 14.72 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 1.642/1.642, allocations: 230.5 MB / 252.8 MB, free: 9.137 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.424/3.424, allocations: 0.4899 GB / 0.7915 GB, free: 33.34 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/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_12_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_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.003456/0.003456, allocations: 65.14 kB / 1.149 GB, free: 26.2 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4892/0.4926, allocations: 176.1 MB / 1.321 GB, free: 2.895 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.00287/0.4955, allocations: 0.6997 MB / 1.322 GB, free: 2.195 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001884/0.4974, allocations: 1.112 MB / 1.323 GB, free: 1.07 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.836e-05/0.4974, allocations: 7.938 kB / 1.323 GB, free: 1.062 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 3.956e-05/0.4975, allocations: 3.938 kB / 1.323 GB, free: 1.059 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 8.057e-05/0.4976, allocations: 3.938 kB / 1.323 GB, free: 1.055 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003767/0.4979, allocations: 51.83 kB / 1.323 GB, free: 1.004 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0001508/0.4981, allocations: 67.89 kB / 1.323 GB, free: 0.9375 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000108/0.4982, allocations: 7.984 kB / 1.323 GB, free: 0.9297 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 8.365e-05/0.4983, allocations: 27.86 kB / 1.323 GB, free: 0.9023 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 7.842e-05/0.4984, allocations: 43.83 kB / 1.323 GB, free: 0.8594 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.864e-05/0.4984, allocations: 4 kB / 1.323 GB, free: 0.8555 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 9.189e-05/0.4985, allocations: 31.97 kB / 1.323 GB, free: 0.8242 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 2.43e-05/0.4985, allocations: 12 kB / 1.323 GB, free: 0.8125 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 4.851e-05/0.4985, allocations: 23.86 kB / 1.323 GB, free: 0.7891 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0002002/0.4987, allocations: 83.67 kB / 1.323 GB, free: 0.707 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.4987, allocations: 0 / 1.323 GB, free: 0.707 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.793e-06/0.4987, allocations: 0 / 1.323 GB, free: 0.707 MB / 1.014 GB Notification: Performance of Transformations before backend: time 7.584e-06/0.4988, allocations: 0 / 1.323 GB, free: 0.707 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.0007877/0.4995, allocations: 391.2 kB / 1.324 GB, free: 280 kB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.674e-05/0.4996, allocations: 15.98 kB / 1.324 GB, free: 264 kB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001134/0.4997, allocations: 4.938 kB / 1.324 GB, free: 260 kB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002152/0.4999, allocations: 172.3 kB / 1.324 GB, free: 48 kB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.893e-05/0.4999, allocations: 4.375 kB / 1.324 GB, free: 44 kB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.911e-05/0.5, allocations: 8.375 kB / 1.324 GB, free: 36 kB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002662/0.5002, allocations: 82.16 kB / 1.324 GB, free: 15.95 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.097e-06/0.5002, allocations: 4.125 kB / 1.324 GB, free: 15.95 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.109e-05/0.5003, allocations: 11.91 kB / 1.324 GB, free: 15.93 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.881e-06/0.5003, allocations: 4 kB / 1.324 GB, free: 15.93 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002242/0.5005, allocations: 51.95 kB / 1.324 GB, free: 15.88 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006046/0.5011, allocations: 316.7 kB / 1.324 GB, free: 15.52 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002283/0.5013, allocations: 78.47 kB / 1.324 GB, free: 15.43 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001268/0.5014, allocations: 44.83 kB / 1.324 GB, free: 15.39 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.899e-05/0.5015, allocations: 0 / 1.324 GB, free: 15.39 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000334/0.5018, allocations: 91.48 kB / 1.325 GB, free: 15.29 MB / 1.029 GB Notification: Performance of pre-optimization done (n=10): time 1.333e-06/0.5018, allocations: 4 kB / 1.325 GB, free: 15.28 MB / 1.029 GB Notification: Performance of matching and sorting (n=10): time 0.0005428/0.5024, allocations: 165.6 kB / 1.325 GB, free: 15.11 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.514e-05/0.5024, allocations: 59.39 kB / 1.325 GB, free: 15.04 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001125/0.5025, allocations: 109.8 kB / 1.325 GB, free: 14.93 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 4.586e-05/0.5026, allocations: 33.7 kB / 1.325 GB, free: 14.89 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 6.875e-05/0.5026, allocations: 84.38 kB / 1.325 GB, free: 14.8 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 4.01e-05/0.5027, allocations: 27.78 kB / 1.325 GB, free: 14.77 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.912e-05/0.5027, allocations: 29.72 kB / 1.325 GB, free: 14.73 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001936/0.5029, allocations: 322.8 kB / 1.325 GB, free: 14.41 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001282/0.5031, allocations: 35.97 kB / 1.325 GB, free: 14.38 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001474/0.5032, allocations: 65.22 kB / 1.325 GB, free: 14.3 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002661/0.5035, allocations: 114.4 kB / 1.326 GB, free: 14.18 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.5035, allocations: 0 / 1.326 GB, free: 14.18 MB / 1.029 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003188/0.5038, allocations: 141.5 kB / 1.326 GB, free: 14.04 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.569e-05/0.5038, allocations: 4 kB / 1.326 GB, free: 14.04 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.5038, allocations: 0 / 1.326 GB, free: 14.04 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.698e-05/0.5038, allocations: 4 kB / 1.326 GB, free: 14.03 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001392/0.504, allocations: 24.34 kB / 1.326 GB, free: 14.01 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.432e-06/0.504, allocations: 320 / 1.326 GB, free: 14.01 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.266e-05/0.5041, allocations: 11.95 kB / 1.326 GB, free: 14 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.708e-05/0.5041, allocations: 15.94 kB / 1.326 GB, free: 13.98 MB / 1.029 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.000123/0.5042, allocations: 133.6 kB / 1.326 GB, free: 13.84 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.262e-05/0.5042, allocations: 0 / 1.326 GB, free: 13.84 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00039/0.5046, allocations: 145.9 kB / 1.326 GB, free: 13.69 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.375e-06/0.5046, allocations: 0 / 1.326 GB, free: 13.69 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.5046, allocations: 4 kB / 1.326 GB, free: 13.68 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.5046, allocations: 7.938 kB / 1.326 GB, free: 13.68 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006771/0.5053, allocations: 406.4 kB / 1.326 GB, free: 13.22 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.5053, allocations: 0 / 1.326 GB, free: 13.22 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.576e-05/0.5054, allocations: 11.98 kB / 1.326 GB, free: 13.21 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.013e-06/0.5054, allocations: 0 / 1.326 GB, free: 13.21 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.818e-06/0.5054, allocations: 0 / 1.326 GB, free: 13.21 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.5054, allocations: 0 / 1.326 GB, free: 13.21 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.5054, allocations: 8 kB / 1.326 GB, free: 13.2 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003803/0.5058, allocations: 239.3 kB / 1.327 GB, free: 12.95 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 4.978e-05/0.5058, allocations: 81.11 kB / 1.327 GB, free: 12.86 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.122e-05/0.5058, allocations: 0 / 1.327 GB, free: 12.86 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001108/0.506, allocations: 7.984 kB / 1.327 GB, free: 12.85 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.272e-05/0.506, allocations: 19.92 kB / 1.327 GB, free: 12.83 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.325e-05/0.506, allocations: 7.938 kB / 1.327 GB, free: 12.82 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001482/0.5062, allocations: 83.27 kB / 1.327 GB, free: 12.74 MB / 1.029 GB Notification: Performance of sort global known variables: time 8.1e-08/0.5062, allocations: 0 / 1.327 GB, free: 12.74 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002531/0.5064, allocations: 20 kB / 1.327 GB, free: 12.72 MB / 1.029 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.0001837/0.5066, allocations: 111.5 kB / 1.327 GB, free: 12.6 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0003367/0.5069, allocations: 99.81 kB / 1.327 GB, free: 12.5 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.5069, allocations: 0 / 1.327 GB, free: 12.5 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001423/0.5071, allocations: 43.91 kB / 1.327 GB, free: 12.46 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002723/0.5074, allocations: 11.98 kB / 1.327 GB, free: 12.45 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005067/0.5079, allocations: 170.5 kB / 1.327 GB, free: 12.25 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003548/0.5082, allocations: 0.6886 MB / 1.328 GB, free: 11.54 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.318e-05/0.5083, allocations: 8.438 kB / 1.328 GB, free: 11.53 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.511e-05/0.5083, allocations: 11.44 kB / 1.328 GB, free: 11.52 MB / 1.029 GB Notification: Performance of SimCode: time 3.21e-07/0.5083, allocations: 0 / 1.328 GB, free: 11.52 MB / 1.029 GB Notification: Performance of Templates: time 0.004032/0.5123, allocations: 1.037 MB / 1.329 GB, free: 10.48 MB / 1.029 GB " [Timeout remaining time 299] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.729713102802634]