Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.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.001034/0.001034, allocations: 80.92 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.0009862/0.0009862, allocations: 161 kB / 24.17 MB, free: 332 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 0.9675/0.9675, allocations: 177.1 MB / 204.6 MB, free: 5.484 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.901/1.901, allocations: 377.9 MB / 0.624 GB, free: 8.316 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.TriggeredSampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|booPul.y|sin1.y|triSam.y|triSam1.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|booPul.y|sin1.y|triSam.y|triSam1.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.242e-06/1.242e-06, allocations: 0 / 0.76 GB, free: 6.641 MB / 0.7136 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.273e-05/1.398e-05, allocations: 2.312 kB / 0.76 GB, free: 6.637 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.001166/0.00118, allocations: 0.7658 MB / 0.7607 GB, free: 5.887 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.001091/0.002272, allocations: 1.222 MB / 0.7619 GB, free: 4.656 MB / 0.7136 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.465e-05/0.002316, allocations: 4 kB / 0.7619 GB, free: 4.652 MB / 0.7136 GB Notification: Performance of NFTyping.typeComponents: time 2.684e-05/0.002343, allocations: 8.438 kB / 0.7619 GB, free: 4.645 MB / 0.7136 GB Notification: Performance of NFTyping.typeBindings: time 6.79e-05/0.002411, allocations: 12.62 kB / 0.762 GB, free: 4.637 MB / 0.7136 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003464/0.002758, allocations: 141.8 kB / 0.7621 GB, free: 4.5 MB / 0.7136 GB Notification: Performance of NFFlatten.flatten: time 0.0001369/0.002894, allocations: 124.3 kB / 0.7622 GB, free: 4.391 MB / 0.7136 GB Notification: Performance of NFFlatten.resolveConnections: time 7.372e-05/0.002968, allocations: 25.55 kB / 0.7622 GB, free: 4.363 MB / 0.7136 GB Notification: Performance of NFEvalConstants.evaluate: time 9.807e-05/0.003066, allocations: 69.86 kB / 0.7623 GB, free: 4.297 MB / 0.7136 GB Notification: Performance of NFSimplifyModel.simplify: time 6.818e-05/0.003134, allocations: 39.92 kB / 0.7623 GB, free: 4.258 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 1.732e-05/0.003152, allocations: 8 kB / 0.7624 GB, free: 4.25 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 5.244e-05/0.003204, allocations: 32.64 kB / 0.7624 GB, free: 4.219 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 2.073e-05/0.003225, allocations: 11.94 kB / 0.7624 GB, free: 4.207 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 3.758e-05/0.003262, allocations: 40.86 kB / 0.7624 GB, free: 4.168 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 0.0001303/0.003393, allocations: 111.7 kB / 0.7625 GB, free: 4.059 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 1.843e-06/0.003395, allocations: 1.031 kB / 0.7625 GB, free: 4.059 MB / 0.7136 GB Notification: Performance of FrontEnd: time 7.62e-07/0.003395, allocations: 0 / 0.7625 GB, free: 4.059 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 2.585e-06/0.003398, allocations: 0 / 0.7625 GB, free: 4.059 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0003375/0.003735, allocations: 311.1 kB / 0.7628 GB, free: 3.727 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 2.705e-05/0.003763, allocations: 8.031 kB / 0.7628 GB, free: 3.719 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.892e-05/0.003841, allocations: 22.64 kB / 0.7629 GB, free: 3.699 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.421e-05/0.003916, allocations: 113.7 kB / 0.763 GB, free: 3.562 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.199e-05/0.003928, allocations: 4.375 kB / 0.763 GB, free: 3.559 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.671e-05/0.003944, allocations: 12.38 kB / 0.763 GB, free: 3.547 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.318e-05/0.004038, allocations: 83.8 kB / 0.7631 GB, free: 3.457 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.562e-06/0.004044, allocations: 192 / 0.7631 GB, free: 3.457 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.473e-06/0.004051, allocations: 384 / 0.7631 GB, free: 3.457 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.851e-06/0.004056, allocations: 6.188 kB / 0.7631 GB, free: 3.453 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.081e-05/0.004077, allocations: 8 kB / 0.7631 GB, free: 3.445 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002407/0.004318, allocations: 192.1 kB / 0.7633 GB, free: 3.242 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 5.963e-05/0.004378, allocations: 38.55 kB / 0.7633 GB, free: 3.195 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.412e-05/0.004392, allocations: 13.61 kB / 0.7633 GB, free: 3.18 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.163e-05/0.004403, allocations: 0.75 kB / 0.7633 GB, free: 3.18 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.29e-05/0.004476, allocations: 75.47 kB / 0.7634 GB, free: 3.094 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=8): time 9.31e-07/0.004477, allocations: 0.5625 kB / 0.7634 GB, free: 3.094 MB / 0.7136 GB Notification: Performance of matching and sorting (n=8): time 0.000108/0.004585, allocations: 75.83 kB / 0.7635 GB, free: 3.016 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.724e-05/0.004612, allocations: 51.41 kB / 0.7635 GB, free: 2.953 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.796e-05/0.00467, allocations: 118.7 kB / 0.7636 GB, free: 2.824 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.607e-05/0.004686, allocations: 29.7 kB / 0.7637 GB, free: 2.789 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 3.538e-05/0.004722, allocations: 100.1 kB / 0.7637 GB, free: 2.688 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 1.732e-05/0.004739, allocations: 23.78 kB / 0.7638 GB, free: 2.664 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.37e-05/0.004783, allocations: 43.16 kB / 0.7638 GB, free: 2.617 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 6.688e-05/0.00485, allocations: 318.8 kB / 0.7641 GB, free: 2.297 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.606e-05/0.004896, allocations: 53.69 kB / 0.7642 GB, free: 2.238 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.722e-05/0.004953, allocations: 94.77 kB / 0.7643 GB, free: 2.121 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.989e-05/0.005033, allocations: 112.9 kB / 0.7644 GB, free: 1.988 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.005035, allocations: 0 / 0.7644 GB, free: 1.988 MB / 0.7136 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001304/0.005165, allocations: 183.3 kB / 0.7645 GB, free: 1.793 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 2.303e-05/0.005188, allocations: 37.7 kB / 0.7646 GB, free: 1.75 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.366e-06/0.005192, allocations: 0 / 0.7646 GB, free: 1.75 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.167e-05/0.005203, allocations: 3.984 kB / 0.7646 GB, free: 1.746 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.879e-05/0.005262, allocations: 18.69 kB / 0.7646 GB, free: 1.73 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.877e-06/0.005266, allocations: 4 kB / 0.7646 GB, free: 1.727 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.25e-05/0.005338, allocations: 27.97 kB / 0.7646 GB, free: 1.699 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.12e-05/0.00535, allocations: 4 kB / 0.7646 GB, free: 1.695 MB / 0.7136 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 9 (triSam1.y,$PRE.triSam1.y,triSam.y,$PRE.triSam.y,booPul.y,$PRE.booPul.y,$whenCondition3,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 1 * 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.752e-05/0.005407, allocations: 119.1 kB / 0.7647 GB, free: 1.57 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.568e-06/0.005417, allocations: 11.92 kB / 0.7648 GB, free: 1.559 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.193e-05/0.005489, allocations: 66.05 kB / 0.7648 GB, free: 1.488 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.00549, allocations: 0 / 0.7648 GB, free: 1.488 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.172e-06/0.005491, allocations: 0.9375 kB / 0.7648 GB, free: 1.488 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.005494, allocations: 0 / 0.7648 GB, free: 1.488 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001257/0.00562, allocations: 211.8 kB / 0.765 GB, free: 1.258 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.71e-07/0.005621, allocations: 0 / 0.765 GB, free: 1.258 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.335e-05/0.005644, allocations: 11.88 kB / 0.765 GB, free: 1.246 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.824e-06/0.005646, allocations: 4.484 kB / 0.765 GB, free: 1.242 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.879e-06/0.005651, allocations: 11.44 kB / 0.7651 GB, free: 1.234 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.52e-07/0.005651, allocations: 480 / 0.7651 GB, free: 1.234 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-07/0.005652, allocations: 0 / 0.7651 GB, free: 1.234 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.129e-05/0.005723, allocations: 155.5 kB / 0.7652 GB, free: 1.066 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 9.428e-06/0.005733, allocations: 15.83 kB / 0.7652 GB, free: 1.051 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.826e-06/0.005741, allocations: 0 / 0.7652 GB, free: 1.051 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.449e-05/0.005776, allocations: 11.98 kB / 0.7652 GB, free: 1.039 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.177e-05/0.005798, allocations: 4 kB / 0.7652 GB, free: 1.035 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.827e-06/0.005802, allocations: 7.922 kB / 0.7652 GB, free: 1.027 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 1.325e-05/0.005815, allocations: 15.45 kB / 0.7653 GB, free: 1.012 MB / 0.7136 GB Notification: Performance of sort global known variables: time 5e-08/0.005815, allocations: 0 / 0.7653 GB, free: 1.012 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0001401/0.005955, allocations: 24 kB / 0.7653 GB, free: 0.9883 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: 6 ($whenCondition3,$whenCondition1,$whenCondition2,booPul.y,triSam.y,triSam1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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 8.441e-05/0.006039, allocations: 92.33 kB / 0.7654 GB, free: 0.8906 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001322/0.006172, allocations: 154.6 kB / 0.7655 GB, free: 0.7188 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.006173, allocations: 0 / 0.7655 GB, free: 0.7188 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 2.631e-05/0.0062, allocations: 18.17 kB / 0.7655 GB, free: 0.6992 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001233/0.006323, allocations: 16.7 kB / 0.7655 GB, free: 0.6836 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003458/0.006669, allocations: 188.5 kB / 0.7657 GB, free: 488 kB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.854e-05/0.006697, allocations: 59.34 kB / 0.7658 GB, free: 408 kB / 0.7136 GB Notification: Performance of simCode: alias equations: time 1.827e-05/0.006715, allocations: 4 kB / 0.7658 GB, free: 404 kB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.236e-05/0.006788, allocations: 67.36 kB / 0.7658 GB, free: 336 kB / 0.7136 GB Notification: Performance of SimCode: time 4.11e-07/0.006788, allocations: 0 / 0.7658 GB, free: 336 kB / 0.7136 GB Notification: Performance of Templates: time 0.003089/0.009877, allocations: 1.642 MB / 0.7675 GB, free: 14.78 MB / 0.7292 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler.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.094109865836799]