Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.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: 92.2 kB / 20.19 MB, free: 4.363 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.0009311/0.0009311, allocations: 173 kB / 23.49 MB, free: 1.062 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.014/1.014, allocations: 177.1 MB / 203.8 MB, free: 5.637 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.066/2.066, allocations: 429.5 MB / 0.6736 GB, free: 4.043 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.Reals.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|switch1.u1|switch1.u2|switch1.u3|switch1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|switch1.u1|switch1.u2|switch1.u3|switch1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.375e-06/2.375e-06, allocations: 0 / 0.8783 GB, free: 6.578 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.711e-05/2.949e-05, allocations: 2.312 kB / 0.8783 GB, free: 6.574 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.001446/0.001475, allocations: 0.8027 MB / 0.879 GB, free: 5.797 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001242/0.002717, allocations: 1.197 MB / 0.8802 GB, free: 4.59 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.86e-05/0.002766, allocations: 1.062 kB / 0.8802 GB, free: 4.59 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 2.883e-05/0.002795, allocations: 3.938 kB / 0.8802 GB, free: 4.586 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 7.819e-05/0.002873, allocations: 20.47 kB / 0.8802 GB, free: 4.566 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004171/0.00329, allocations: 128.9 kB / 0.8804 GB, free: 4.441 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.000156/0.003446, allocations: 135.7 kB / 0.8805 GB, free: 4.309 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 9.378e-05/0.00354, allocations: 9.031 kB / 0.8805 GB, free: 4.301 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001149/0.003655, allocations: 71.86 kB / 0.8806 GB, free: 4.23 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 8.218e-05/0.003737, allocations: 47.88 kB / 0.8806 GB, free: 4.184 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 2.378e-05/0.003761, allocations: 15.41 kB / 0.8806 GB, free: 4.172 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 5.529e-05/0.003816, allocations: 16 kB / 0.8806 GB, free: 4.156 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 2.476e-05/0.003841, allocations: 15.97 kB / 0.8807 GB, free: 4.141 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 5.357e-05/0.003894, allocations: 39.91 kB / 0.8807 GB, free: 4.102 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0001697/0.004064, allocations: 103.7 kB / 0.8808 GB, free: 4 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 2.064e-06/0.004066, allocations: 0 / 0.8808 GB, free: 4 MB / 0.8386 GB Notification: Performance of FrontEnd: time 9.92e-07/0.004067, allocations: 0 / 0.8808 GB, free: 4 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.218e-06/0.004071, allocations: 0 / 0.8808 GB, free: 4 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.0005298/0.004601, allocations: 450.6 kB / 0.8812 GB, free: 3.516 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.541e-05/0.004636, allocations: 8.031 kB / 0.8812 GB, free: 3.508 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.494e-05/0.004691, allocations: 14.3 kB / 0.8812 GB, free: 3.496 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.162e-05/0.004773, allocations: 108.6 kB / 0.8813 GB, free: 3.363 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.405e-05/0.004787, allocations: 4.375 kB / 0.8813 GB, free: 3.359 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.803e-05/0.004805, allocations: 8.375 kB / 0.8814 GB, free: 3.352 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001446/0.00495, allocations: 72.39 kB / 0.8814 GB, free: 3.273 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.212e-06/0.004956, allocations: 192 / 0.8814 GB, free: 3.273 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.127e-05/0.004967, allocations: 8.375 kB / 0.8814 GB, free: 3.266 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.482e-06/0.004974, allocations: 4.375 kB / 0.8814 GB, free: 3.262 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.095e-05/0.005014, allocations: 15.92 kB / 0.8815 GB, free: 3.246 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003673/0.005382, allocations: 307.6 kB / 0.8817 GB, free: 2.91 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 5.308e-05/0.005435, allocations: 35 kB / 0.8818 GB, free: 2.863 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.185e-05/0.005467, allocations: 15.77 kB / 0.8818 GB, free: 2.844 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.756e-05/0.005484, allocations: 4 kB / 0.8818 GB, free: 2.84 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001027/0.005587, allocations: 73.05 kB / 0.8819 GB, free: 2.754 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=6): time 1.143e-06/0.005588, allocations: 0 / 0.8819 GB, free: 2.754 MB / 0.8386 GB Notification: Performance of matching and sorting (n=6): time 0.0002001/0.005788, allocations: 81.56 kB / 0.8819 GB, free: 2.668 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.195e-05/0.00582, allocations: 55.41 kB / 0.882 GB, free: 2.602 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.899e-05/0.005919, allocations: 188.9 kB / 0.8822 GB, free: 2.402 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.742e-05/0.005937, allocations: 37.64 kB / 0.8822 GB, free: 2.359 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.704e-05/0.005994, allocations: 138.8 kB / 0.8823 GB, free: 2.219 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 9.439e-05/0.006088, allocations: 19.89 kB / 0.8824 GB, free: 2.199 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.81e-05/0.006136, allocations: 35.36 kB / 0.8824 GB, free: 2.156 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001052/0.006241, allocations: 0.4884 MB / 0.8829 GB, free: 1.656 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.542e-05/0.006317, allocations: 57.67 kB / 0.8829 GB, free: 1.594 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.419e-05/0.006391, allocations: 84.73 kB / 0.883 GB, free: 1.492 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.229e-05/0.006483, allocations: 96.94 kB / 0.8831 GB, free: 1.379 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.006485, allocations: 4 kB / 0.8831 GB, free: 1.375 MB / 0.8386 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001949/0.00668, allocations: 189 kB / 0.8833 GB, free: 1.172 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 2.935e-05/0.00671, allocations: 41.69 kB / 0.8833 GB, free: 1.125 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.389e-06/0.006714, allocations: 0 / 0.8833 GB, free: 1.125 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.34e-05/0.006728, allocations: 4 kB / 0.8833 GB, free: 1.121 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.454e-05/0.006802, allocations: 11.98 kB / 0.8833 GB, free: 1.109 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.861e-06/0.006808, allocations: 0 / 0.8833 GB, free: 1.109 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.082e-05/0.006899, allocations: 23.92 kB / 0.8834 GB, free: 1.086 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.666e-05/0.006915, allocations: 16.05 kB / 0.8834 GB, free: 1.07 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,booPul.y,$PRE.booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 6 * 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 6.944e-05/0.006985, allocations: 164.5 kB / 0.8835 GB, free: 0.8984 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.164e-05/0.006996, allocations: 11.89 kB / 0.8835 GB, free: 0.8867 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.196e-05/0.007018, allocations: 8.438 kB / 0.8836 GB, free: 0.8789 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.834e-06/0.00702, allocations: 4 kB / 0.8836 GB, free: 0.875 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.066e-06/0.007023, allocations: 0 / 0.8836 GB, free: 0.875 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.761e-06/0.007029, allocations: 7.969 kB / 0.8836 GB, free: 0.8672 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.92e-05/0.007108, allocations: 132.6 kB / 0.8837 GB, free: 0.7031 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.007109, allocations: 0 / 0.8837 GB, free: 0.7031 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.204e-05/0.007141, allocations: 11.98 kB / 0.8837 GB, free: 0.6914 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.162e-06/0.007143, allocations: 4 kB / 0.8837 GB, free: 0.6875 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.207e-06/0.007152, allocations: 3.938 kB / 0.8837 GB, free: 0.6836 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.007153, allocations: 0 / 0.8837 GB, free: 0.6836 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.12e-07/0.007154, allocations: 0 / 0.8837 GB, free: 0.6836 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001078/0.007262, allocations: 116.3 kB / 0.8838 GB, free: 0.5469 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 7.273e-06/0.007269, allocations: 7.953 kB / 0.8838 GB, free: 0.5391 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.231e-05/0.007281, allocations: 3.938 kB / 0.8838 GB, free: 0.5352 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.327e-05/0.007305, allocations: 4 kB / 0.8838 GB, free: 0.5312 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.752e-05/0.007342, allocations: 11.98 kB / 0.8839 GB, free: 0.5195 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.33e-06/0.007347, allocations: 4 kB / 0.8839 GB, free: 0.5156 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 3.909e-05/0.007387, allocations: 143.1 kB / 0.884 GB, free: 384 kB / 0.8386 GB Notification: Performance of sort global known variables: time 8e-08/0.007387, allocations: 0 / 0.884 GB, free: 384 kB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0001426/0.007529, allocations: 20 kB / 0.884 GB, free: 364 kB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$whenCondition2,booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.000118/0.007647, allocations: 99.23 kB / 0.8841 GB, free: 256 kB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001933/0.007841, allocations: 160.8 kB / 0.8843 GB, free: 72 kB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.342e-06/0.007842, allocations: 0 / 0.8843 GB, free: 72 kB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 3.853e-05/0.00788, allocations: 19.69 kB / 0.8843 GB, free: 48 kB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001637/0.008044, allocations: 22.7 kB / 0.8843 GB, free: 28 kB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003124/0.008356, allocations: 169.9 kB / 0.8845 GB, free: 15.83 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.417e-05/0.008391, allocations: 55.36 kB / 0.8845 GB, free: 15.76 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 2.482e-05/0.008415, allocations: 11.92 kB / 0.8845 GB, free: 15.75 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.628e-05/0.008442, allocations: 12.5 kB / 0.8845 GB, free: 15.73 MB / 0.8542 GB Notification: Performance of SimCode: time 5.71e-07/0.008442, allocations: 0 / 0.8845 GB, free: 15.73 MB / 0.8542 GB Notification: Performance of Templates: time 0.003136/0.01158, allocations: 1.736 MB / 0.8862 GB, free: 14.04 MB / 0.8542 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_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.475514221005142]