Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.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.001452/0.001452, allocations: 80.8 kB / 20.75 MB, free: 3.742 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.001883/0.001883, allocations: 161 kB / 24.16 MB, free: 336 kB / 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 1.06/1.06, allocations: 177.1 MB / 204.6 MB, free: 5.48 MB / 186.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.985/1.985, allocations: 377.9 MB / 0.624 GB, free: 8.355 MB / 0.5886 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.Sampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sampler1.u|sampler1.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sampler1.u|sampler1.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.154e-06/2.154e-06, allocations: 0 / 0.76 GB, free: 6.605 MB / 0.7136 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.442e-05/2.657e-05, allocations: 2.312 kB / 0.76 GB, free: 6.602 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.00217/0.002196, allocations: 0.7308 MB / 0.7608 GB, free: 5.891 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.001608/0.003804, allocations: 1.112 MB / 0.7618 GB, free: 4.77 MB / 0.7136 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.934e-05/0.003854, allocations: 0.7812 kB / 0.7618 GB, free: 4.77 MB / 0.7136 GB Notification: Performance of NFTyping.typeComponents: time 3.23e-05/0.003886, allocations: 3.938 kB / 0.7618 GB, free: 4.766 MB / 0.7136 GB Notification: Performance of NFTyping.typeBindings: time 7.983e-05/0.003966, allocations: 15.41 kB / 0.7619 GB, free: 4.754 MB / 0.7136 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003034/0.004269, allocations: 45.66 kB / 0.7619 GB, free: 4.711 MB / 0.7136 GB Notification: Performance of NFFlatten.flatten: time 0.0001095/0.004379, allocations: 51.45 kB / 0.7619 GB, free: 4.668 MB / 0.7136 GB Notification: Performance of NFFlatten.resolveConnections: time 8.534e-05/0.004464, allocations: 8 kB / 0.762 GB, free: 4.66 MB / 0.7136 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001038/0.004568, allocations: 35.28 kB / 0.762 GB, free: 4.629 MB / 0.7136 GB Notification: Performance of NFSimplifyModel.simplify: time 5.332e-05/0.004621, allocations: 12.86 kB / 0.762 GB, free: 4.617 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 1.597e-05/0.004637, allocations: 5.875 kB / 0.762 GB, free: 4.613 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 9.214e-05/0.004729, allocations: 19.98 kB / 0.762 GB, free: 4.594 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 2.079e-05/0.00475, allocations: 5.641 kB / 0.762 GB, free: 4.59 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 2.988e-05/0.00478, allocations: 21.61 kB / 0.7621 GB, free: 4.57 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 0.0001368/0.004917, allocations: 53.5 kB / 0.7621 GB, free: 4.52 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 2.826e-06/0.00492, allocations: 0 / 0.7621 GB, free: 4.52 MB / 0.7136 GB Notification: Performance of FrontEnd: time 9.22e-07/0.004921, allocations: 0 / 0.7621 GB, free: 4.52 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 3.957e-06/0.004925, allocations: 0 / 0.7621 GB, free: 4.52 MB / 0.7136 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004445/0.005369, allocations: 262.2 kB / 0.7624 GB, free: 4.238 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.89e-05/0.005408, allocations: 12.03 kB / 0.7624 GB, free: 4.227 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001057/0.005514, allocations: 9.672 kB / 0.7624 GB, free: 4.219 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.652e-05/0.00561, allocations: 113.7 kB / 0.7625 GB, free: 4.082 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.178e-05/0.005622, allocations: 2.469 kB / 0.7625 GB, free: 4.082 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.116e-05/0.005633, allocations: 8.375 kB / 0.7625 GB, free: 4.074 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001249/0.005758, allocations: 58.94 kB / 0.7626 GB, free: 4.008 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.596e-06/0.005767, allocations: 192 / 0.7626 GB, free: 4.008 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.205e-06/0.005775, allocations: 384 / 0.7626 GB, free: 4.008 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.737e-06/0.005784, allocations: 4.359 kB / 0.7626 GB, free: 4.004 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.669e-05/0.00582, allocations: 17.27 kB / 0.7626 GB, free: 3.988 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003173/0.006138, allocations: 168.1 kB / 0.7627 GB, free: 3.809 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 8.215e-05/0.00622, allocations: 35.81 kB / 0.7628 GB, free: 3.766 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.047e-05/0.00624, allocations: 8.859 kB / 0.7628 GB, free: 3.754 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.661e-05/0.006257, allocations: 0 / 0.7628 GB, free: 3.754 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.611e-05/0.006343, allocations: 56.7 kB / 0.7628 GB, free: 3.688 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=6): time 1.393e-06/0.006344, allocations: 0 / 0.7628 GB, free: 3.688 MB / 0.7136 GB Notification: Performance of matching and sorting (n=6): time 0.000143/0.006487, allocations: 61.69 kB / 0.7629 GB, free: 3.621 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.587e-05/0.006533, allocations: 56.14 kB / 0.7629 GB, free: 3.555 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.302e-05/0.006606, allocations: 107 kB / 0.763 GB, free: 3.438 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.645e-05/0.006623, allocations: 32.95 kB / 0.7631 GB, free: 3.402 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 3.708e-05/0.00666, allocations: 88.12 kB / 0.7632 GB, free: 3.312 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 2.635e-05/0.006686, allocations: 11.89 kB / 0.7632 GB, free: 3.301 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.032e-05/0.006727, allocations: 21.72 kB / 0.7632 GB, free: 3.273 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 9.319e-05/0.00682, allocations: 318.8 kB / 0.7635 GB, free: 2.953 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.67e-05/0.006836, allocations: 8.25 kB / 0.7635 GB, free: 2.945 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.409e-05/0.006871, allocations: 27.42 kB / 0.7635 GB, free: 2.906 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.179e-05/0.006942, allocations: 54.38 kB / 0.7636 GB, free: 2.844 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.006944, allocations: 0 / 0.7636 GB, free: 2.844 MB / 0.7136 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001125/0.007057, allocations: 69.55 kB / 0.7636 GB, free: 2.77 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.542e-05/0.007072, allocations: 4 kB / 0.7637 GB, free: 2.766 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.242e-06/0.007078, allocations: 0 / 0.7637 GB, free: 2.766 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.724e-05/0.007096, allocations: 7.938 kB / 0.7637 GB, free: 2.758 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.359e-05/0.007179, allocations: 13.48 kB / 0.7637 GB, free: 2.746 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.687e-06/0.007183, allocations: 0 / 0.7637 GB, free: 2.746 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.257e-05/0.007225, allocations: 11.89 kB / 0.7637 GB, free: 2.734 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.012e-05/0.007236, allocations: 4 kB / 0.7637 GB, free: 2.73 MB / 0.7136 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 (sampler1.firstTrigger,$PRE.sampler1.firstTrigger,sampler1.sampleTrigger,$whenCondition1,sampler1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * 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 7.505e-05/0.007311, allocations: 118.4 kB / 0.7638 GB, free: 2.605 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.31e-05/0.007324, allocations: 5.078 kB / 0.7638 GB, free: 2.602 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001038/0.007427, allocations: 54.12 kB / 0.7639 GB, free: 2.543 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.318e-06/0.007432, allocations: 3.938 kB / 0.7639 GB, free: 2.539 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.443e-06/0.007433, allocations: 2.469 kB / 0.7639 GB, free: 2.539 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.007438, allocations: 3.984 kB / 0.7639 GB, free: 2.535 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002105/0.007648, allocations: 202.8 kB / 0.7641 GB, free: 2.312 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.00765, allocations: 0 / 0.7641 GB, free: 2.312 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.124e-05/0.007691, allocations: 8 kB / 0.7641 GB, free: 2.305 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.007693, allocations: 0 / 0.7641 GB, free: 2.305 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.374e-06/0.007701, allocations: 11 kB / 0.7641 GB, free: 2.297 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.432e-06/0.007702, allocations: 0 / 0.7641 GB, free: 2.297 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.007703, allocations: 0 / 0.7641 GB, free: 2.297 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001131/0.007816, allocations: 151.5 kB / 0.7642 GB, free: 2.133 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 8.676e-06/0.007825, allocations: 4.141 kB / 0.7642 GB, free: 2.129 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.4e-05/0.007839, allocations: 7.938 kB / 0.7642 GB, free: 2.121 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.797e-05/0.007907, allocations: 7.984 kB / 0.7642 GB, free: 2.113 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.031e-05/0.007937, allocations: 4.047 kB / 0.7642 GB, free: 2.109 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.342e-05/0.007951, allocations: 9.531 kB / 0.7643 GB, free: 2.102 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 1.849e-05/0.007969, allocations: 16.84 kB / 0.7643 GB, free: 2.082 MB / 0.7136 GB Notification: Performance of sort global known variables: time 8.1e-08/0.007969, allocations: 0 / 0.7643 GB, free: 2.082 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0002409/0.00821, allocations: 12 kB / 0.7643 GB, free: 2.07 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: 4 (sampler1.sampleTrigger,$whenCondition1,sampler1.y,sampler1.firstTrigger) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001361/0.008346, allocations: 85.75 kB / 0.7644 GB, free: 1.98 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 9.953e-05/0.008446, allocations: 39.22 kB / 0.7644 GB, free: 1.941 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.008449, allocations: 0 / 0.7644 GB, free: 1.941 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 3.432e-05/0.008483, allocations: 12.86 kB / 0.7644 GB, free: 1.926 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002169/0.0087, allocations: 15.94 kB / 0.7644 GB, free: 1.91 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004949/0.009195, allocations: 146.6 kB / 0.7646 GB, free: 1.742 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.386e-05/0.009239, allocations: 59.34 kB / 0.7646 GB, free: 1.664 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 2.958e-05/0.009269, allocations: 4 kB / 0.7646 GB, free: 1.66 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.265e-05/0.009331, allocations: 59.36 kB / 0.7647 GB, free: 1.602 MB / 0.7136 GB Notification: Performance of SimCode: time 9.92e-07/0.009332, allocations: 1.406 kB / 0.7647 GB, free: 1.602 MB / 0.7136 GB Notification: Performance of Templates: time 0.003215/0.01255, allocations: 0.8486 MB / 0.7655 GB, free: 0.8008 MB / 0.7136 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler.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: 5.167141432408243]