Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001342/0.001342, allocations: 82.64 kB / 20.68 MB, free: 3.816 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.00171/0.00171, allocations: 181 kB / 24.09 MB, free: 420 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.9952/0.9952, allocations: 177.1 MB / 204.5 MB, free: 5.496 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 1.763/1.763, allocations: 359 MB / 0.6055 GB, free: 10.88 MB / 0.573 GB " [Timeout remaining time 178] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.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_11_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_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.365e-06/2.365e-06, allocations: 0 / 0.7876 GB, free: 12.17 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.544e-05/2.78e-05, allocations: 2.312 kB / 0.7876 GB, free: 12.17 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002279/0.002306, allocations: 0.8239 MB / 0.7884 GB, free: 11.36 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.00217/0.004477, allocations: 1.336 MB / 0.7897 GB, free: 10.01 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.68e-05/0.004554, allocations: 0 / 0.7897 GB, free: 10.01 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 4.06e-05/0.004594, allocations: 7.875 kB / 0.7897 GB, free: 10 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 0.0001096/0.004704, allocations: 33.28 kB / 0.7897 GB, free: 9.973 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008029/0.005507, allocations: 313.3 kB / 0.79 GB, free: 9.668 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0003848/0.005892, allocations: 291.5 kB / 0.7903 GB, free: 9.383 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001262/0.006018, allocations: 26.47 kB / 0.7903 GB, free: 9.355 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002494/0.006267, allocations: 167.8 kB / 0.7905 GB, free: 9.191 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001893/0.006456, allocations: 79.8 kB / 0.7906 GB, free: 9.113 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 5.48e-05/0.006511, allocations: 28.62 kB / 0.7906 GB, free: 9.086 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001043/0.006615, allocations: 41.3 kB / 0.7906 GB, free: 9.047 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 3.637e-05/0.006652, allocations: 23.91 kB / 0.7907 GB, free: 9.023 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 0.0001035/0.006755, allocations: 87.8 kB / 0.7907 GB, free: 8.938 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0003349/0.00709, allocations: 219.4 kB / 0.7909 GB, free: 8.723 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.007094, allocations: 2.031 kB / 0.7909 GB, free: 8.723 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.613e-06/0.007096, allocations: 4 kB / 0.7909 GB, free: 8.719 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 4.578e-06/0.007101, allocations: 0 / 0.7909 GB, free: 8.719 MB / 0.7448 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.000617/0.007718, allocations: 0.5479 MB / 0.7915 GB, free: 8.117 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.641e-05/0.007764, allocations: 12.03 kB / 0.7915 GB, free: 8.105 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.203e-05/0.007846, allocations: 35.02 kB / 0.7915 GB, free: 8.074 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002256/0.008072, allocations: 165 kB / 0.7917 GB, free: 7.887 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.654e-05/0.008098, allocations: 12.38 kB / 0.7917 GB, free: 7.875 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.846e-05/0.008137, allocations: 20.38 kB / 0.7917 GB, free: 7.855 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001376/0.008274, allocations: 91.94 kB / 0.7918 GB, free: 7.758 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.795e-06/0.008282, allocations: 0 / 0.7918 GB, free: 7.758 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.078e-05/0.008293, allocations: 4.719 kB / 0.7918 GB, free: 7.754 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.081e-06/0.008299, allocations: 4 kB / 0.7918 GB, free: 7.75 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.153e-05/0.008351, allocations: 24.5 kB / 0.7918 GB, free: 7.727 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000525/0.008876, allocations: 405.5 kB / 0.7922 GB, free: 7.305 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001648/0.00904, allocations: 63.02 kB / 0.7923 GB, free: 7.23 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.138e-05/0.009072, allocations: 19.8 kB / 0.7923 GB, free: 7.207 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 1.002e-05/0.009082, allocations: 4.656 kB / 0.7923 GB, free: 7.203 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001481/0.00923, allocations: 100.9 kB / 0.7924 GB, free: 7.09 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=14): time 1.623e-06/0.009231, allocations: 5.125 kB / 0.7924 GB, free: 7.086 MB / 0.7448 GB Notification: Performance of matching and sorting (n=14): time 0.0002728/0.009504, allocations: 141.7 kB / 0.7925 GB, free: 6.941 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.858e-05/0.009543, allocations: 63.27 kB / 0.7926 GB, free: 6.867 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001289/0.009672, allocations: 210.5 kB / 0.7928 GB, free: 6.648 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 3.663e-05/0.009708, allocations: 37.7 kB / 0.7928 GB, free: 6.605 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 8.648e-05/0.009795, allocations: 155.3 kB / 0.793 GB, free: 6.449 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 2.931e-05/0.009824, allocations: 33.11 kB / 0.793 GB, free: 6.418 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001378/0.009962, allocations: 87.28 kB / 0.7931 GB, free: 6.324 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001473/0.01011, allocations: 0.4962 MB / 0.7936 GB, free: 5.816 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001763/0.01029, allocations: 154.8 kB / 0.7937 GB, free: 5.648 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002049/0.01049, allocations: 222.8 kB / 0.7939 GB, free: 5.383 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000235/0.01073, allocations: 239 kB / 0.7942 GB, free: 5.105 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.01073, allocations: 0 / 0.7942 GB, free: 5.105 MB / 0.7448 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000585/0.01131, allocations: 462.4 kB / 0.7946 GB, free: 4.613 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 7.285e-05/0.01139, allocations: 101.1 kB / 0.7947 GB, free: 4.496 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.416e-06/0.01139, allocations: 4 kB / 0.7947 GB, free: 4.492 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.624e-05/0.01141, allocations: 7.125 kB / 0.7947 GB, free: 4.488 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.693e-05/0.01147, allocations: 15.94 kB / 0.7947 GB, free: 4.473 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.657e-06/0.01147, allocations: 0 / 0.7947 GB, free: 4.473 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002726/0.01174, allocations: 67.83 kB / 0.7948 GB, free: 4.406 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.687e-05/0.01178, allocations: 15.98 kB / 0.7948 GB, free: 4.391 MB / 0.7448 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 0.0001234/0.0119, allocations: 179 kB / 0.795 GB, free: 4.207 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.628e-05/0.01193, allocations: 15.94 kB / 0.795 GB, free: 4.191 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.459e-05/0.01196, allocations: 16.78 kB / 0.795 GB, free: 4.18 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.749e-06/0.01197, allocations: 3.938 kB / 0.795 GB, free: 4.176 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.064e-06/0.01197, allocations: 0 / 0.795 GB, free: 4.176 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.619e-06/0.01198, allocations: 6.469 kB / 0.795 GB, free: 4.172 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001397/0.01212, allocations: 129.2 kB / 0.7952 GB, free: 4.02 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.01212, allocations: 0 / 0.7952 GB, free: 4.02 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.048e-05/0.01216, allocations: 8 kB / 0.7952 GB, free: 4.012 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.996e-06/0.01216, allocations: 0 / 0.7952 GB, free: 4.012 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.142e-05/0.01217, allocations: 11.98 kB / 0.7952 GB, free: 4 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.023e-06/0.01218, allocations: 0.875 kB / 0.7952 GB, free: 4 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.01218, allocations: 0 / 0.7952 GB, free: 4 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002021/0.01238, allocations: 166.3 kB / 0.7953 GB, free: 3.816 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 1.734e-05/0.0124, allocations: 16.69 kB / 0.7953 GB, free: 3.801 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.579e-05/0.01241, allocations: 4 kB / 0.7954 GB, free: 3.797 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.996e-05/0.01244, allocations: 5.281 kB / 0.7954 GB, free: 3.793 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.565e-05/0.01248, allocations: 15.91 kB / 0.7954 GB, free: 3.777 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.657e-06/0.01249, allocations: 4 kB / 0.7954 GB, free: 3.773 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 6.559e-05/0.01255, allocations: 144 kB / 0.7955 GB, free: 3.633 MB / 0.7448 GB Notification: Performance of sort global known variables: time 7e-08/0.01255, allocations: 0 / 0.7955 GB, free: 3.633 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0003044/0.01286, allocations: 51.98 kB / 0.7956 GB, free: 3.582 MB / 0.7448 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.0001599/0.01302, allocations: 106.1 kB / 0.7957 GB, free: 3.469 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0005975/0.01361, allocations: 398.8 kB / 0.796 GB, free: 3.02 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.01362, allocations: 7.938 kB / 0.7961 GB, free: 3.012 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 5.615e-05/0.01367, allocations: 41.98 kB / 0.7961 GB, free: 2.969 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002679/0.01394, allocations: 39.91 kB / 0.7961 GB, free: 2.93 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004072/0.01435, allocations: 243.7 kB / 0.7964 GB, free: 2.66 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.305e-05/0.01439, allocations: 67.34 kB / 0.7964 GB, free: 2.574 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 4.359e-05/0.01443, allocations: 14.09 kB / 0.7964 GB, free: 2.559 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001913/0.01463, allocations: 122.2 kB / 0.7966 GB, free: 2.438 MB / 0.7448 GB Notification: Performance of SimCode: time 8.92e-07/0.01463, allocations: 0 / 0.7966 GB, free: 2.438 MB / 0.7448 GB Notification: Performance of Templates: time 0.005259/0.01989, allocations: 3.287 MB / 0.7998 GB, free: 15.24 MB / 0.7605 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.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.158487149979919]