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.001/0.001, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001302/0.002302, allocations: 449.7 kB / 10.37 MB, free: 328 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.0009281/0.0009281, allocations: 165.2 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001233/0.002161, allocations: 459.6 kB / 11.71 MB, free: 2.457 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.9682/0.9682, allocations: 177.2 MB / 189.6 MB, free: 5.312 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1009/1.069, allocations: 53.66 MB / 243.3 MB, free: 15.58 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.866/1.866, allocations: 378.2 MB / 0.6076 GB, free: 7.824 MB / 0.5886 GB Notification: Performance of NFInstanceAPI.mkTop(): time 0.5287/2.394, allocations: 123.3 MB / 0.728 GB, free: 5.82 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 1.803e-06/1.803e-06, allocations: 0 / 0.7293 GB, free: 4.551 MB / 0.698 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.026e-05/2.206e-05, allocations: 2.312 kB / 0.7293 GB, free: 4.547 MB / 0.698 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.001412/0.001434, allocations: 0.7351 MB / 0.73 GB, free: 3.836 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.0009939/0.002428, allocations: 1.138 MB / 0.7311 GB, free: 2.691 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.395e-05/0.002472, allocations: 3.938 kB / 0.7311 GB, free: 2.688 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 2.419e-05/0.002496, allocations: 3.938 kB / 0.7311 GB, free: 2.684 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 3.356e-05/0.00253, allocations: 4.5 kB / 0.7311 GB, free: 2.684 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001692/0.002699, allocations: 57.11 kB / 0.7312 GB, free: 2.629 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 0.0001073/0.002806, allocations: 72.7 kB / 0.7313 GB, free: 2.566 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 8.093e-05/0.002887, allocations: 4.656 kB / 0.7313 GB, free: 2.562 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 9.751e-05/0.002985, allocations: 50.53 kB / 0.7313 GB, free: 2.516 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 5.663e-05/0.003041, allocations: 24.22 kB / 0.7313 GB, free: 2.496 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 1.825e-05/0.00306, allocations: 8 kB / 0.7314 GB, free: 2.488 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 9.853e-05/0.003158, allocations: 27.97 kB / 0.7314 GB, free: 2.461 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 2.378e-05/0.003182, allocations: 10.08 kB / 0.7314 GB, free: 2.453 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 2.585e-05/0.003208, allocations: 18.75 kB / 0.7314 GB, free: 2.438 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.0001253/0.003333, allocations: 55.77 kB / 0.7315 GB, free: 2.383 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 1.67e-05/0.00335, allocations: 0 / 0.7315 GB, free: 2.383 MB / 0.698 GB Notification: Performance of FrontEnd: time 5.62e-07/0.00335, allocations: 0 / 0.7315 GB, free: 2.383 MB / 0.698 GB Notification: Performance of Transformations before backend: time 1.734e-05/0.003368, allocations: 0 / 0.7315 GB, free: 2.383 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.0004727/0.00384, allocations: 294.4 kB / 0.7317 GB, free: 2.07 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.022e-05/0.003871, allocations: 8.031 kB / 0.7317 GB, free: 2.062 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001125/0.003983, allocations: 90.03 kB / 0.7318 GB, free: 1.957 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.113e-05/0.004064, allocations: 118.5 kB / 0.7319 GB, free: 1.816 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.822e-05/0.004083, allocations: 8.375 kB / 0.732 GB, free: 1.809 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.919e-06/0.004093, allocations: 8.844 kB / 0.732 GB, free: 1.801 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001819/0.004274, allocations: 75.84 kB / 0.732 GB, free: 1.719 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.025e-06/0.004282, allocations: 192 / 0.732 GB, free: 1.719 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.233e-06/0.00429, allocations: 384 / 0.732 GB, free: 1.719 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.881e-06/0.004296, allocations: 5.25 kB / 0.732 GB, free: 1.715 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.19e-05/0.004327, allocations: 15.92 kB / 0.7321 GB, free: 1.699 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002683/0.004596, allocations: 181.6 kB / 0.7322 GB, free: 1.508 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 7.599e-05/0.004672, allocations: 46.5 kB / 0.7323 GB, free: 1.453 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.935e-05/0.004691, allocations: 17.52 kB / 0.7323 GB, free: 1.434 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.09e-05/0.004712, allocations: 8.672 kB / 0.7323 GB, free: 1.426 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.004e-05/0.004792, allocations: 63.56 kB / 0.7324 GB, free: 1.352 MB / 0.698 GB Notification: Performance of pre-optimization done (n=10): time 9.42e-07/0.004793, allocations: 5.719 kB / 0.7324 GB, free: 1.348 MB / 0.698 GB Notification: Performance of matching and sorting (n=10): time 0.0001314/0.004924, allocations: 81.53 kB / 0.7324 GB, free: 1.262 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.682e-05/0.004961, allocations: 59.34 kB / 0.7325 GB, free: 1.191 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.22e-05/0.005023, allocations: 118.6 kB / 0.7326 GB, free: 1.062 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 1.639e-05/0.00504, allocations: 34.45 kB / 0.7326 GB, free: 1.023 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 3.778e-05/0.005078, allocations: 80.38 kB / 0.7327 GB, free: 0.9375 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 3.259e-05/0.00511, allocations: 32.77 kB / 0.7328 GB, free: 0.9062 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.705e-05/0.005147, allocations: 33.69 kB / 0.7328 GB, free: 0.8672 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 7.339e-05/0.005221, allocations: 314.8 kB / 0.7331 GB, free: 0.5508 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.79e-05/0.005238, allocations: 16.86 kB / 0.7331 GB, free: 0.5352 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.863e-05/0.005267, allocations: 34.55 kB / 0.7331 GB, free: 0.4922 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.738e-05/0.005324, allocations: 59.73 kB / 0.7332 GB, free: 436 kB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.005327, allocations: 0 / 0.7332 GB, free: 436 kB / 0.698 GB Notification: Performance of matching and sorting (n=16) (initialization): time 7.823e-05/0.005405, allocations: 83.41 kB / 0.7333 GB, free: 348 kB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.189e-05/0.005417, allocations: 4 kB / 0.7333 GB, free: 344 kB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.005421, allocations: 0 / 0.7333 GB, free: 344 kB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.053e-05/0.005432, allocations: 7.938 kB / 0.7333 GB, free: 336 kB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.34e-05/0.005515, allocations: 24.64 kB / 0.7333 GB, free: 312 kB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.667e-06/0.005519, allocations: 4.922 kB / 0.7333 GB, free: 308 kB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.751e-05/0.005547, allocations: 19.94 kB / 0.7333 GB, free: 288 kB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.773e-06/0.005553, allocations: 0 / 0.7333 GB, free: 288 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 5.972e-05/0.005613, allocations: 128.1 kB / 0.7335 GB, free: 152 kB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.218e-06/0.005622, allocations: 8 kB / 0.7335 GB, free: 144 kB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.806e-05/0.00571, allocations: 74.97 kB / 0.7335 GB, free: 60 kB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.559e-06/0.005715, allocations: 7.938 kB / 0.7335 GB, free: 52 kB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.224e-06/0.005717, allocations: 0 / 0.7335 GB, free: 52 kB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.005721, allocations: 0.5312 kB / 0.7335 GB, free: 52 kB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001961/0.005917, allocations: 219.5 kB / 0.7338 GB, free: 15.81 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.005919, allocations: 0 / 0.7338 GB, free: 15.81 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.688e-05/0.005956, allocations: 13.14 kB / 0.7338 GB, free: 15.8 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 7.845e-06/0.005964, allocations: 11.89 kB / 0.7338 GB, free: 15.79 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.005967, allocations: 0 / 0.7338 GB, free: 15.79 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.102e-06/0.005973, allocations: 5.031 kB / 0.7338 GB, free: 15.79 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.614e-06/0.005974, allocations: 0 / 0.7338 GB, free: 15.79 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.005977, allocations: 4 kB / 0.7338 GB, free: 15.78 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.46e-05/0.006071, allocations: 160 kB / 0.7339 GB, free: 15.61 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.646e-05/0.006088, allocations: 8.172 kB / 0.7339 GB, free: 15.6 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.397e-05/0.006132, allocations: 13.78 kB / 0.734 GB, free: 15.59 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.434e-05/0.006166, allocations: 7.984 kB / 0.734 GB, free: 15.58 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.911e-06/0.006172, allocations: 4 kB / 0.734 GB, free: 15.58 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 1.381e-05/0.006186, allocations: 12.84 kB / 0.734 GB, free: 15.56 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.3e-07/0.006186, allocations: 1.219 kB / 0.734 GB, free: 15.56 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.000144/0.00633, allocations: 20 kB / 0.734 GB, free: 15.54 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.0001166/0.006447, allocations: 93.03 kB / 0.7341 GB, free: 15.45 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001065/0.006553, allocations: 53.47 kB / 0.7341 GB, free: 15.39 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 6.522e-06/0.00656, allocations: 4 kB / 0.7341 GB, free: 15.39 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 3.571e-05/0.006595, allocations: 30.08 kB / 0.7342 GB, free: 15.36 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001383/0.006734, allocations: 15.98 kB / 0.7342 GB, free: 15.34 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006327/0.007366, allocations: 163.9 kB / 0.7343 GB, free: 15.16 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.563e-05/0.007402, allocations: 63.34 kB / 0.7344 GB, free: 15.07 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 2.784e-05/0.00743, allocations: 5.438 kB / 0.7344 GB, free: 15.07 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.054e-05/0.00748, allocations: 63.36 kB / 0.7345 GB, free: 15.01 MB / 0.7136 GB Notification: Performance of SimCode: time 1.152e-06/0.007482, allocations: 1.312 kB / 0.7345 GB, free: 15.01 MB / 0.7136 GB Notification: Performance of Templates: time 0.002549/0.01003, allocations: 1.138 MB / 0.7356 GB, free: 13.93 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,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 4.9200399136170745]