Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.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.001032/0.001032, allocations: 88.22 kB / 19.65 MB, free: 272 kB / 13.93 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.001011/0.001011, allocations: 173 kB / 23.02 MB, free: 1.543 MB / 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.003/1.003, allocations: 177.1 MB / 203.4 MB, free: 5.621 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.107/2.107, allocations: 429.5 MB / 0.6733 GB, free: 4 MB / 0.6355 GB " [Timeout remaining time 177] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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.Logical.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|logicalSwitch.u1|logicalSwitch.u2|logicalSwitch.u3|logicalSwitch.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|logicalSwitch.u1|logicalSwitch.u2|logicalSwitch.u3|logicalSwitch.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.924e-06/1.924e-06, allocations: 0 / 0.8782 GB, free: 6.156 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.246e-05/2.439e-05, allocations: 6.781 kB / 0.8782 GB, free: 6.148 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.001657/0.001681, allocations: 0.7118 MB / 0.8789 GB, free: 5.461 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001331/0.003012, allocations: 1.316 MB / 0.8802 GB, free: 4.133 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.581e-05/0.003078, allocations: 0 / 0.8802 GB, free: 4.133 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 3.127e-05/0.003109, allocations: 4.594 kB / 0.8802 GB, free: 4.129 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 8.746e-05/0.003197, allocations: 24.23 kB / 0.8802 GB, free: 4.109 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006195/0.003816, allocations: 297.4 kB / 0.8805 GB, free: 3.82 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0002347/0.004051, allocations: 260.7 kB / 0.8807 GB, free: 3.566 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 9.82e-05/0.004149, allocations: 12.17 kB / 0.8807 GB, free: 3.551 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001393/0.004288, allocations: 139.8 kB / 0.8809 GB, free: 3.414 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001255/0.004414, allocations: 84.81 kB / 0.881 GB, free: 3.332 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 3.603e-05/0.00445, allocations: 20 kB / 0.881 GB, free: 3.312 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 7.132e-05/0.004521, allocations: 36.62 kB / 0.881 GB, free: 3.277 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 2.328e-05/0.004544, allocations: 11.98 kB / 0.881 GB, free: 3.266 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 7.709e-05/0.004621, allocations: 77.27 kB / 0.8811 GB, free: 3.191 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.000214/0.004835, allocations: 199.5 kB / 0.8813 GB, free: 2.996 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 2.364e-06/0.004838, allocations: 0 / 0.8813 GB, free: 2.996 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.112e-06/0.004839, allocations: 0 / 0.8813 GB, free: 2.996 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.178e-06/0.004843, allocations: 0.5938 kB / 0.8813 GB, free: 2.996 MB / 0.8386 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.0004384/0.005281, allocations: 0.5208 MB / 0.8818 GB, free: 2.422 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.565e-05/0.005317, allocations: 9.406 kB / 0.8818 GB, free: 2.414 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.223e-05/0.005379, allocations: 16.89 kB / 0.8818 GB, free: 2.398 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.025e-05/0.00546, allocations: 112.6 kB / 0.8819 GB, free: 2.262 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.228e-05/0.005482, allocations: 13.06 kB / 0.8819 GB, free: 2.25 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.182e-05/0.005514, allocations: 16.36 kB / 0.882 GB, free: 2.234 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001049/0.005619, allocations: 67.58 kB / 0.882 GB, free: 2.16 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.316e-06/0.005627, allocations: 192 / 0.882 GB, free: 2.16 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.167e-06/0.005636, allocations: 1.469 kB / 0.882 GB, free: 2.16 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.879e-06/0.005646, allocations: 12.06 kB / 0.882 GB, free: 2.148 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.866e-05/0.005675, allocations: 11.98 kB / 0.882 GB, free: 2.137 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004133/0.006088, allocations: 376.2 kB / 0.8824 GB, free: 1.734 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 4.804e-05/0.006136, allocations: 32.31 kB / 0.8824 GB, free: 1.691 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.695e-05/0.006163, allocations: 19.7 kB / 0.8825 GB, free: 1.668 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 6.713e-06/0.00617, allocations: 0 / 0.8825 GB, free: 1.668 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001129/0.006283, allocations: 116.3 kB / 0.8826 GB, free: 1.543 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=10): time 9.81e-07/0.006284, allocations: 3.938 kB / 0.8826 GB, free: 1.539 MB / 0.8386 GB Notification: Performance of matching and sorting (n=10): time 0.0002312/0.006515, allocations: 125.5 kB / 0.8827 GB, free: 1.41 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.126e-05/0.006546, allocations: 51.41 kB / 0.8827 GB, free: 1.348 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.628e-05/0.006642, allocations: 189.9 kB / 0.8829 GB, free: 1.145 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.54e-05/0.006668, allocations: 33.7 kB / 0.8829 GB, free: 1.105 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 6.506e-05/0.006733, allocations: 150.8 kB / 0.8831 GB, free: 0.9531 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.844e-05/0.006751, allocations: 27.86 kB / 0.8831 GB, free: 0.9258 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.385e-05/0.006835, allocations: 71.33 kB / 0.8832 GB, free: 0.8477 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001229/0.006958, allocations: 0.4932 MB / 0.8837 GB, free: 352 kB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001487/0.007107, allocations: 165 kB / 0.8838 GB, free: 168 kB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001763/0.007283, allocations: 235.5 kB / 0.884 GB, free: 15.89 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001782/0.007461, allocations: 239.8 kB / 0.8843 GB, free: 15.61 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.007463, allocations: 0 / 0.8843 GB, free: 15.61 MB / 0.8542 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.00042/0.007883, allocations: 467.5 kB / 0.8847 GB, free: 15.11 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 5.223e-05/0.007936, allocations: 95.75 kB / 0.8848 GB, free: 15 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.007942, allocations: 4 kB / 0.8848 GB, free: 15 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.416e-05/0.007956, allocations: 0 / 0.8848 GB, free: 15 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.772e-05/0.007974, allocations: 4 kB / 0.8848 GB, free: 14.99 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.883e-06/0.007981, allocations: 12.11 kB / 0.8848 GB, free: 14.98 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002107/0.008191, allocations: 59.91 kB / 0.8849 GB, free: 14.92 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.671e-05/0.008218, allocations: 19.98 kB / 0.8849 GB, free: 14.9 MB / 0.8542 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,logicalSwitch.y,booPul3.y,$PRE.booPul3.y,booPul2.y,$PRE.booPul2.y,booPul1.y,$PRE.booPul1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 10 * 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.904e-05/0.008307, allocations: 176.5 kB / 0.8851 GB, free: 14.72 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.441e-05/0.008321, allocations: 15.89 kB / 0.8851 GB, free: 14.7 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.719e-05/0.008349, allocations: 8.438 kB / 0.8851 GB, free: 14.7 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.008352, allocations: 4 kB / 0.8851 GB, free: 14.69 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.008356, allocations: 4 kB / 0.8851 GB, free: 14.69 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-06/0.00836, allocations: 0 / 0.8851 GB, free: 14.69 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.252e-05/0.008452, allocations: 136.6 kB / 0.8852 GB, free: 14.52 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.008454, allocations: 0 / 0.8852 GB, free: 14.52 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.564e-06/0.008461, allocations: 11.92 kB / 0.8853 GB, free: 14.51 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.687e-06/0.008465, allocations: 3.938 kB / 0.8853 GB, free: 14.5 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.466e-06/0.008473, allocations: 8 kB / 0.8853 GB, free: 14.5 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.008475, allocations: 0 / 0.8853 GB, free: 14.5 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.008476, allocations: 0 / 0.8853 GB, free: 14.5 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001237/0.0086, allocations: 140.3 kB / 0.8854 GB, free: 14.34 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 9.167e-06/0.008609, allocations: 7.953 kB / 0.8854 GB, free: 14.33 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.121e-05/0.00862, allocations: 11.88 kB / 0.8854 GB, free: 14.32 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.472e-05/0.008635, allocations: 8 kB / 0.8854 GB, free: 14.31 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.021e-05/0.008665, allocations: 3.984 kB / 0.8854 GB, free: 14.3 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.114e-06/0.008672, allocations: 8 kB / 0.8854 GB, free: 14.3 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 4.959e-05/0.008722, allocations: 146.1 kB / 0.8856 GB, free: 14.16 MB / 0.8542 GB Notification: Performance of sort global known variables: time 5e-08/0.008722, allocations: 0 / 0.8856 GB, free: 14.16 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0001788/0.008901, allocations: 40 kB / 0.8856 GB, free: 14.12 MB / 0.8542 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booPul1.y,booPul2.y,booPul3.y,logicalSwitch.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 7 * 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.0001013/0.009002, allocations: 103.2 kB / 0.8857 GB, free: 14.01 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0003208/0.009323, allocations: 416.5 kB / 0.8861 GB, free: 13.54 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.283e-06/0.009324, allocations: 0 / 0.8861 GB, free: 13.54 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 4.06e-05/0.009365, allocations: 39.61 kB / 0.8861 GB, free: 13.5 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001811/0.009546, allocations: 23.98 kB / 0.8862 GB, free: 13.48 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003091/0.009855, allocations: 194.8 kB / 0.8864 GB, free: 13.25 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.632e-05/0.009891, allocations: 63.72 kB / 0.8864 GB, free: 13.17 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 2.438e-05/0.009916, allocations: 12.48 kB / 0.8864 GB, free: 13.16 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.015e-05/0.009936, allocations: 12.5 kB / 0.8864 GB, free: 13.14 MB / 0.8542 GB Notification: Performance of SimCode: time 6.42e-07/0.009936, allocations: 0 / 0.8864 GB, free: 13.14 MB / 0.8542 GB Notification: Performance of Templates: time 0.004227/0.01416, allocations: 2.933 MB / 0.8893 GB, free: 10.28 MB / 0.8542 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_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.5846462599001825]