Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.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.0009999/0.0009999, 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.00122/0.00122, 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.9732/0.9732, 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.898/1.898, 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.Integers.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|integerSwitch.u1|integerSwitch.u2|integerSwitch.u3|integerSwitch.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch") translateModel(Buildings.Controls.OBC.CDL.Integers.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|integerSwitch.u1|integerSwitch.u2|integerSwitch.u3|integerSwitch.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.883e-06/1.883e-06, allocations: 0 / 0.76 GB, free: 6.625 MB / 0.7136 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.273e-05/2.462e-05, allocations: 7.016 kB / 0.76 GB, free: 6.621 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.001821/0.001846, allocations: 0.8352 MB / 0.7608 GB, free: 5.805 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.001633/0.003479, allocations: 1.34 MB / 0.7622 GB, free: 4.453 MB / 0.7136 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.958e-05/0.003539, allocations: 0.625 kB / 0.7622 GB, free: 4.453 MB / 0.7136 GB Notification: Performance of NFTyping.typeComponents: time 3.464e-05/0.003574, allocations: 14.03 kB / 0.7622 GB, free: 4.441 MB / 0.7136 GB Notification: Performance of NFTyping.typeBindings: time 9.152e-05/0.003665, allocations: 30.52 kB / 0.7622 GB, free: 4.418 MB / 0.7136 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007135/0.004379, allocations: 309.6 kB / 0.7625 GB, free: 4.117 MB / 0.7136 GB Notification: Performance of NFFlatten.flatten: time 0.0003215/0.0047, allocations: 296.2 kB / 0.7628 GB, free: 3.84 MB / 0.7136 GB Notification: Performance of NFFlatten.resolveConnections: time 9.665e-05/0.004797, allocations: 38.97 kB / 0.7628 GB, free: 3.797 MB / 0.7136 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001889/0.004986, allocations: 163.7 kB / 0.763 GB, free: 3.637 MB / 0.7136 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001509/0.005137, allocations: 89 kB / 0.7631 GB, free: 3.551 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 4.369e-05/0.00518, allocations: 24 kB / 0.7631 GB, free: 3.527 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 8.167e-05/0.005262, allocations: 39.98 kB / 0.7631 GB, free: 3.488 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 3.192e-05/0.005294, allocations: 25.86 kB / 0.7631 GB, free: 3.465 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 9.193e-05/0.005386, allocations: 79.86 kB / 0.7632 GB, free: 3.387 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 0.0002615/0.005647, allocations: 227.4 kB / 0.7634 GB, free: 3.164 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 2.314e-06/0.00565, allocations: 0 / 0.7634 GB, free: 3.164 MB / 0.7136 GB Notification: Performance of FrontEnd: time 8.82e-07/0.005651, allocations: 0 / 0.7634 GB, free: 3.164 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 4.308e-06/0.005655, allocations: 0 / 0.7634 GB, free: 3.164 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: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0004897/0.006144, allocations: 439.5 kB / 0.7639 GB, free: 2.695 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.42e-05/0.006179, allocations: 8.031 kB / 0.7639 GB, free: 2.688 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.489e-05/0.006234, allocations: 24.91 kB / 0.7639 GB, free: 2.664 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001851/0.006419, allocations: 146.2 kB / 0.764 GB, free: 2.496 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.416e-05/0.006443, allocations: 16.36 kB / 0.764 GB, free: 2.48 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.715e-05/0.00648, allocations: 20.38 kB / 0.7641 GB, free: 2.461 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001056/0.006586, allocations: 85.3 kB / 0.7641 GB, free: 2.371 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.875e-06/0.006593, allocations: 3.938 kB / 0.7641 GB, free: 2.367 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.077e-06/0.006603, allocations: 4 kB / 0.7641 GB, free: 2.363 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.212e-06/0.006609, allocations: 5.25 kB / 0.7642 GB, free: 2.359 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.681e-05/0.006646, allocations: 23.94 kB / 0.7642 GB, free: 2.336 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003696/0.007015, allocations: 255.9 kB / 0.7644 GB, free: 2.07 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001241/0.007139, allocations: 51.78 kB / 0.7645 GB, free: 2.012 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.185e-05/0.007161, allocations: 12.86 kB / 0.7645 GB, free: 1.996 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 6.202e-06/0.007167, allocations: 0 / 0.7645 GB, free: 1.996 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001119/0.007279, allocations: 105 kB / 0.7646 GB, free: 1.883 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=14): time 1.082e-06/0.00728, allocations: 0.5312 kB / 0.7646 GB, free: 1.883 MB / 0.7136 GB Notification: Performance of matching and sorting (n=14): time 0.0001684/0.007449, allocations: 105.2 kB / 0.7647 GB, free: 1.777 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.22e-05/0.007481, allocations: 59.39 kB / 0.7647 GB, free: 1.707 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.149e-05/0.007572, allocations: 160.6 kB / 0.7649 GB, free: 1.539 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 3.176e-05/0.007604, allocations: 33.7 kB / 0.7649 GB, free: 1.5 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 5.968e-05/0.007664, allocations: 112.5 kB / 0.765 GB, free: 1.383 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 2.434e-05/0.007688, allocations: 39.03 kB / 0.7651 GB, free: 1.348 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.849e-05/0.007787, allocations: 65.64 kB / 0.7651 GB, free: 1.277 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 8.723e-05/0.007874, allocations: 322.8 kB / 0.7654 GB, free: 0.9531 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000127/0.008001, allocations: 145.1 kB / 0.7656 GB, free: 0.793 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000141/0.008142, allocations: 202.6 kB / 0.7658 GB, free: 0.5586 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001679/0.00831, allocations: 221.8 kB / 0.766 GB, free: 312 kB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.878e-06/0.008314, allocations: 4 kB / 0.766 GB, free: 308 kB / 0.7136 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003478/0.008661, allocations: 381.1 kB / 0.7663 GB, free: 15.89 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 5.173e-05/0.008713, allocations: 94.56 kB / 0.7664 GB, free: 15.78 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.071e-06/0.008719, allocations: 4 kB / 0.7664 GB, free: 15.77 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.123e-05/0.00873, allocations: 3.938 kB / 0.7664 GB, free: 15.77 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.703e-05/0.008777, allocations: 15.98 kB / 0.7665 GB, free: 15.75 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.639e-06/0.008782, allocations: 8.688 kB / 0.7665 GB, free: 15.75 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002104/0.008992, allocations: 65.33 kB / 0.7665 GB, free: 15.68 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.864e-05/0.009021, allocations: 15.98 kB / 0.7665 GB, free: 15.67 MB / 0.7292 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 17 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booToInt1.y,booToInt.y,booPul3.y,$PRE.booPul3.y,booPul2.y,$PRE.booPul2.y,booPul1.y,$PRE.booPul1.y,integerSwitch.y,integerSwitch.u3,integerSwitch.u1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 3 * 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 8.668e-05/0.009108, allocations: 123.2 kB / 0.7667 GB, free: 15.54 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.946e-05/0.009127, allocations: 15.98 kB / 0.7667 GB, free: 15.52 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.359e-05/0.009151, allocations: 15.59 kB / 0.7667 GB, free: 15.51 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.416e-06/0.009154, allocations: 7.875 kB / 0.7667 GB, free: 15.5 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.533e-06/0.009156, allocations: 0 / 0.7667 GB, free: 15.5 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.836e-06/0.009159, allocations: 0 / 0.7667 GB, free: 15.5 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001016/0.00926, allocations: 109.8 kB / 0.7668 GB, free: 15.38 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.009262, allocations: 0 / 0.7668 GB, free: 15.38 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.819e-05/0.00929, allocations: 11.94 kB / 0.7668 GB, free: 15.37 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.009292, allocations: 0 / 0.7668 GB, free: 15.37 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.382e-06/0.009298, allocations: 7.109 kB / 0.7668 GB, free: 15.36 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.009299, allocations: 0 / 0.7668 GB, free: 15.36 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.009301, allocations: 0 / 0.7668 GB, free: 15.36 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000111/0.009412, allocations: 117 kB / 0.7669 GB, free: 15.23 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 1.178e-05/0.009423, allocations: 11.91 kB / 0.7669 GB, free: 15.22 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.38e-05/0.009437, allocations: 3.984 kB / 0.767 GB, free: 15.21 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.04e-05/0.009458, allocations: 4 kB / 0.767 GB, free: 15.21 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.267e-05/0.00948, allocations: 7.984 kB / 0.767 GB, free: 15.2 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.067e-06/0.009489, allocations: 13.75 kB / 0.767 GB, free: 15.19 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 2.942e-05/0.009519, allocations: 38.62 kB / 0.767 GB, free: 15.15 MB / 0.7292 GB Notification: Performance of sort global known variables: time 5e-08/0.009519, allocations: 0 / 0.767 GB, free: 15.15 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0002175/0.009736, allocations: 48 kB / 0.7671 GB, free: 15.11 MB / 0.7292 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,integerSwitch.u1,integerSwitch.u3,integerSwitch.y,booPul1.y,booPul2.y,booPul3.y,booToInt.y,booToInt1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 11 * 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 0.0001055/0.009842, allocations: 90.75 kB / 0.7671 GB, free: 15.01 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0003008/0.01014, allocations: 385.3 kB / 0.7675 GB, free: 14.58 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.01015, allocations: 0 / 0.7675 GB, free: 14.58 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 4.272e-05/0.01019, allocations: 44.77 kB / 0.7676 GB, free: 14.53 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001385/0.01033, allocations: 25.83 kB / 0.7676 GB, free: 14.51 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000305/0.01063, allocations: 229.9 kB / 0.7678 GB, free: 14.26 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000312/0.01094, allocations: 67.34 kB / 0.7679 GB, free: 14.17 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 3.746e-05/0.01098, allocations: 13.56 kB / 0.7679 GB, free: 14.16 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001503/0.01113, allocations: 96.8 kB / 0.768 GB, free: 14.07 MB / 0.7292 GB Notification: Performance of SimCode: time 6.91e-07/0.01113, allocations: 3.938 kB / 0.768 GB, free: 14.06 MB / 0.7292 GB Notification: Performance of Templates: time 0.005141/0.01627, allocations: 3.287 MB / 0.7712 GB, free: 10.97 MB / 0.7292 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Integers_Validation_Switch.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.02787996083498]