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.0008107/0.0008107, allocations: 81.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001106/0.001916, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.0007009/0.0007009, allocations: 161.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009367/0.001638, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 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.9591/0.9591, allocations: 177.2 MB / 189.8 MB, free: 5.254 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1101/1.069, allocations: 53.66 MB / 243.4 MB, free: 15.51 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo): time 1.886/1.886, allocations: 378.4 MB / 0.6079 GB, free: 7.715 MB / 0.5886 GB Notification: Performance of NFInstanceAPI.mkTop(): time 0.5628/2.449, allocations: 123.3 MB / 0.7283 GB, free: 5.758 MB / 0.698 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-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: Performance of FrontEnd - loaded program: time 3.827e-06/3.827e-06, allocations: 0 / 0.7296 GB, free: 4.473 MB / 0.698 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.645e-05/2.028e-05, allocations: 5.75 kB / 0.7296 GB, free: 4.469 MB / 0.698 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.001309/0.001329, allocations: 0.7419 MB / 0.7304 GB, free: 3.758 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.001109/0.002438, allocations: 1.131 MB / 0.7315 GB, free: 2.617 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.228e-05/0.00248, allocations: 4.812 kB / 0.7315 GB, free: 2.613 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 2.423e-05/0.002504, allocations: 4.594 kB / 0.7315 GB, free: 2.609 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 4.192e-05/0.002546, allocations: 14.02 kB / 0.7315 GB, free: 2.602 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001697/0.002716, allocations: 61.11 kB / 0.7315 GB, free: 2.543 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 0.0001003/0.002816, allocations: 64.52 kB / 0.7316 GB, free: 2.488 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 7.426e-05/0.002891, allocations: 11.97 kB / 0.7316 GB, free: 2.477 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001015/0.002992, allocations: 42.7 kB / 0.7316 GB, free: 2.438 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 6.001e-05/0.003052, allocations: 26.47 kB / 0.7317 GB, free: 2.414 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 1.772e-05/0.00307, allocations: 8 kB / 0.7317 GB, free: 2.406 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 7.787e-05/0.003148, allocations: 23.98 kB / 0.7317 GB, free: 2.383 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 2.215e-05/0.00317, allocations: 11.23 kB / 0.7317 GB, free: 2.375 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 2.496e-05/0.003195, allocations: 14.19 kB / 0.7317 GB, free: 2.363 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.0001267/0.003321, allocations: 58.81 kB / 0.7318 GB, free: 2.309 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 1.174e-05/0.003333, allocations: 0 / 0.7318 GB, free: 2.309 MB / 0.698 GB Notification: Performance of FrontEnd: time 5.81e-07/0.003334, allocations: 0.5312 kB / 0.7318 GB, free: 2.309 MB / 0.698 GB Notification: Performance of Transformations before backend: time 1.324e-05/0.003347, allocations: 0 / 0.7318 GB, free: 2.309 MB / 0.698 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.0004734/0.00382, allocations: 290.9 kB / 0.7321 GB, free: 2 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.269e-05/0.003853, allocations: 15.97 kB / 0.7321 GB, free: 1.984 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001483/0.004001, allocations: 94.03 kB / 0.7322 GB, free: 1.875 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.926e-05/0.004091, allocations: 105.8 kB / 0.7323 GB, free: 1.746 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.053e-05/0.004111, allocations: 9.75 kB / 0.7323 GB, free: 1.738 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.499e-05/0.004126, allocations: 4.375 kB / 0.7323 GB, free: 1.734 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001178/0.004244, allocations: 78.91 kB / 0.7324 GB, free: 1.648 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.137e-06/0.004253, allocations: 4.172 kB / 0.7324 GB, free: 1.645 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.484e-06/0.004261, allocations: 1 kB / 0.7324 GB, free: 1.645 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.506e-06/0.004269, allocations: 5.719 kB / 0.7324 GB, free: 1.641 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.068e-05/0.0043, allocations: 19.81 kB / 0.7324 GB, free: 1.621 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002731/0.004573, allocations: 184.2 kB / 0.7326 GB, free: 1.426 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 7.742e-05/0.00465, allocations: 44.2 kB / 0.7326 GB, free: 1.375 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.973e-05/0.00467, allocations: 12.86 kB / 0.7326 GB, free: 1.359 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.735e-05/0.004687, allocations: 4 kB / 0.7326 GB, free: 1.355 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.251e-05/0.00477, allocations: 68.47 kB / 0.7327 GB, free: 1.277 MB / 0.698 GB Notification: Performance of pre-optimization done (n=10): time 1.322e-06/0.004771, allocations: 0 / 0.7327 GB, free: 1.277 MB / 0.698 GB Notification: Performance of matching and sorting (n=10): time 0.0001396/0.004911, allocations: 78.61 kB / 0.7328 GB, free: 1.195 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.988e-05/0.004951, allocations: 63.39 kB / 0.7328 GB, free: 1.121 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.552e-05/0.005016, allocations: 119.7 kB / 0.7329 GB, free: 0.9922 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 1.8e-05/0.005034, allocations: 33.7 kB / 0.733 GB, free: 0.9531 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 3.502e-05/0.005069, allocations: 84.36 kB / 0.733 GB, free: 0.8633 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 2.356e-05/0.005093, allocations: 32.52 kB / 0.7331 GB, free: 0.832 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.5e-05/0.005128, allocations: 29.7 kB / 0.7331 GB, free: 0.7969 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 7.993e-05/0.005208, allocations: 320.3 kB / 0.7334 GB, free: 488 kB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.78e-05/0.005225, allocations: 12 kB / 0.7334 GB, free: 476 kB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.073e-05/0.005256, allocations: 34.56 kB / 0.7335 GB, free: 432 kB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.444e-05/0.005311, allocations: 56.41 kB / 0.7335 GB, free: 368 kB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.005313, allocations: 0 / 0.7335 GB, free: 368 kB / 0.698 GB Notification: Performance of matching and sorting (n=16) (initialization): time 8.439e-05/0.005397, allocations: 85.64 kB / 0.7336 GB, free: 276 kB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.142e-05/0.005409, allocations: 4 kB / 0.7336 GB, free: 272 kB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.958e-06/0.005413, allocations: 1.594 kB / 0.7336 GB, free: 272 kB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.62e-05/0.005429, allocations: 7.938 kB / 0.7336 GB, free: 264 kB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.119e-05/0.00552, allocations: 31.92 kB / 0.7336 GB, free: 232 kB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.827e-06/0.005524, allocations: 3.984 kB / 0.7336 GB, free: 228 kB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.524e-05/0.005549, allocations: 8.484 kB / 0.7336 GB, free: 220 kB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.534e-06/0.005557, allocations: 5.188 kB / 0.7337 GB, free: 216 kB / 0.698 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.589e-05/0.005623, allocations: 121.8 kB / 0.7338 GB, free: 84 kB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.798e-06/0.005632, allocations: 9.469 kB / 0.7338 GB, free: 76 kB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001015/0.005734, allocations: 78.06 kB / 0.7339 GB, free: 15.99 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.047e-06/0.005738, allocations: 7.938 kB / 0.7339 GB, free: 15.98 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.164e-06/0.00574, allocations: 0 / 0.7339 GB, free: 15.98 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/0.005744, allocations: 1.25 kB / 0.7339 GB, free: 15.98 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001876/0.005932, allocations: 218.8 kB / 0.7341 GB, free: 15.74 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.005933, allocations: 0 / 0.7341 GB, free: 15.74 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.27e-05/0.005966, allocations: 9.25 kB / 0.7341 GB, free: 15.73 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 1.037e-05/0.005976, allocations: 19.88 kB / 0.7341 GB, free: 15.71 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.005978, allocations: 0 / 0.7341 GB, free: 15.71 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.621e-06/0.005984, allocations: 3.938 kB / 0.7341 GB, free: 15.71 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.005985, allocations: 0.5938 kB / 0.7341 GB, free: 15.71 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.005986, allocations: 0.5312 kB / 0.7341 GB, free: 15.71 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.783e-05/0.006074, allocations: 155.5 kB / 0.7343 GB, free: 15.54 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.406e-05/0.006088, allocations: 4.5 kB / 0.7343 GB, free: 15.54 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.364e-05/0.006132, allocations: 13.36 kB / 0.7343 GB, free: 15.53 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.202e-05/0.006164, allocations: 11.92 kB / 0.7343 GB, free: 15.52 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.967e-06/0.006168, allocations: 0 / 0.7343 GB, free: 15.52 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 1.6e-05/0.006184, allocations: 30.23 kB / 0.7343 GB, free: 15.48 MB / 0.7136 GB Notification: Performance of sort global known variables: time 5e-08/0.006184, allocations: 0 / 0.7343 GB, free: 15.48 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.000129/0.006313, allocations: 16 kB / 0.7343 GB, free: 15.47 MB / 0.7136 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.0001151/0.006428, allocations: 93.09 kB / 0.7344 GB, free: 15.37 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001008/0.006529, allocations: 60.61 kB / 0.7345 GB, free: 15.31 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 5.941e-06/0.006535, allocations: 0.75 kB / 0.7345 GB, free: 15.31 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 4.218e-05/0.006577, allocations: 32.78 kB / 0.7345 GB, free: 15.28 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001615/0.006738, allocations: 71.91 kB / 0.7346 GB, free: 15.2 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005856/0.007324, allocations: 164.2 kB / 0.7347 GB, free: 15.02 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.51e-05/0.007359, allocations: 65.16 kB / 0.7348 GB, free: 14.93 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 2.635e-05/0.007385, allocations: 4.5 kB / 0.7348 GB, free: 14.93 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.245e-05/0.007438, allocations: 63.36 kB / 0.7349 GB, free: 14.86 MB / 0.7136 GB Notification: Performance of SimCode: time 6.21e-07/0.007438, allocations: 0 / 0.7349 GB, free: 14.86 MB / 0.7136 GB Notification: Performance of Templates: time 0.0028/0.01024, allocations: 1.121 MB / 0.7359 GB, free: 13.8 MB / 0.7136 GB " [Timeout remaining time 300] 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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.ref.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.09615418408066]