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.001835/0.001835, allocations: 92.7 kB / 19.44 MB, free: 320 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.00237/0.00237, allocations: 161.3 kB / 22.75 MB, free: 1.652 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.502/1.502, allocations: 177.1 MB / 203.1 MB, free: 5.598 MB / 186.7 MB " [Timeout remaining time 178] 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 3.212/3.212, allocations: 429.6 MB / 0.673 GB, free: 3.891 MB / 0.6355 GB " [Timeout remaining time 176] 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.274e-06/2.274e-06, allocations: 0 / 0.8777 GB, free: 6.414 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.789e-05/3.017e-05, allocations: 2.969 kB / 0.8777 GB, free: 6.41 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.002693/0.002723, allocations: 0.7797 MB / 0.8784 GB, free: 5.66 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.002527/0.005251, allocations: 1.17 MB / 0.8796 GB, free: 4.48 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.53e-05/0.005306, allocations: 0 / 0.8796 GB, free: 4.48 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 4.016e-05/0.005346, allocations: 3.938 kB / 0.8796 GB, free: 4.477 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 8.973e-05/0.005436, allocations: 17.88 kB / 0.8796 GB, free: 4.461 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004605/0.005896, allocations: 140.7 kB / 0.8797 GB, free: 4.324 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0002028/0.006099, allocations: 127.7 kB / 0.8799 GB, free: 4.199 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 8.058e-05/0.00618, allocations: 13.23 kB / 0.8799 GB, free: 4.188 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001362/0.006316, allocations: 67.89 kB / 0.8799 GB, free: 4.121 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001107/0.006426, allocations: 43.92 kB / 0.88 GB, free: 4.078 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 2.912e-05/0.006456, allocations: 15.31 kB / 0.88 GB, free: 4.066 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 6.674e-05/0.006522, allocations: 23.92 kB / 0.88 GB, free: 4.043 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 2.499e-05/0.006547, allocations: 11.98 kB / 0.88 GB, free: 4.031 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 7.011e-05/0.006617, allocations: 39.91 kB / 0.8801 GB, free: 3.992 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0002214/0.006839, allocations: 135.6 kB / 0.8802 GB, free: 3.859 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 5.58e-06/0.006844, allocations: 4 kB / 0.8802 GB, free: 3.855 MB / 0.8386 GB Notification: Performance of FrontEnd: time 7.41e-07/0.006845, allocations: 0 / 0.8802 GB, free: 3.855 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.477e-06/0.006849, allocations: 0 / 0.8802 GB, free: 3.855 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.0006902/0.007539, allocations: 348.3 kB / 0.8805 GB, free: 3.477 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.322e-05/0.007572, allocations: 13.62 kB / 0.8805 GB, free: 3.465 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.252e-05/0.007635, allocations: 12.92 kB / 0.8805 GB, free: 3.453 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001239/0.007758, allocations: 117.7 kB / 0.8807 GB, free: 3.312 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.61e-05/0.007775, allocations: 4.375 kB / 0.8807 GB, free: 3.309 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.471e-05/0.007799, allocations: 8.812 kB / 0.8807 GB, free: 3.301 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002669/0.008066, allocations: 75.52 kB / 0.8807 GB, free: 3.223 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.995e-06/0.008074, allocations: 192 / 0.8807 GB, free: 3.223 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.478e-05/0.008089, allocations: 8.375 kB / 0.8808 GB, free: 3.215 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.647e-06/0.008093, allocations: 1.25 kB / 0.8808 GB, free: 3.215 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000332/0.008425, allocations: 77.28 kB / 0.8808 GB, free: 3.141 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004406/0.008865, allocations: 249.9 kB / 0.8811 GB, free: 2.867 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002137/0.009079, allocations: 62.47 kB / 0.8811 GB, free: 2.797 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001789/0.009258, allocations: 44.91 kB / 0.8812 GB, free: 2.75 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.002e-05/0.009278, allocations: 0 / 0.8812 GB, free: 2.75 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003107/0.009588, allocations: 99.3 kB / 0.8813 GB, free: 2.641 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=6): time 1.102e-06/0.00959, allocations: 0 / 0.8813 GB, free: 2.641 MB / 0.8386 GB Notification: Performance of matching and sorting (n=6): time 0.0006973/0.01029, allocations: 173.5 kB / 0.8814 GB, free: 2.465 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.842e-05/0.01035, allocations: 51.41 kB / 0.8815 GB, free: 2.402 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001408/0.01049, allocations: 124.8 kB / 0.8816 GB, free: 2.27 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 4.309e-05/0.01053, allocations: 37.69 kB / 0.8816 GB, free: 2.227 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 8.491e-05/0.01061, allocations: 92.09 kB / 0.8817 GB, free: 2.133 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.407e-05/0.01064, allocations: 15.84 kB / 0.8817 GB, free: 2.117 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.348e-05/0.01072, allocations: 33.7 kB / 0.8818 GB, free: 2.078 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.000184/0.01091, allocations: 318.8 kB / 0.8821 GB, free: 1.758 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002731/0.01118, allocations: 97.64 kB / 0.8822 GB, free: 1.656 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002637/0.01144, allocations: 108.2 kB / 0.8823 GB, free: 1.535 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003997/0.01184, allocations: 144.2 kB / 0.8824 GB, free: 1.379 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.01184, allocations: 4 kB / 0.8824 GB, free: 1.375 MB / 0.8386 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0006321/0.01248, allocations: 248.8 kB / 0.8826 GB, free: 1.113 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 5.157e-05/0.01253, allocations: 47.97 kB / 0.8827 GB, free: 1.062 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.029e-06/0.01253, allocations: 0 / 0.8827 GB, free: 1.062 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.021e-05/0.01255, allocations: 4 kB / 0.8827 GB, free: 1.059 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001319/0.01268, allocations: 12.05 kB / 0.8827 GB, free: 1.047 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.242e-05/0.0127, allocations: 15.92 kB / 0.8827 GB, free: 1.031 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002323/0.01293, allocations: 31.95 kB / 0.8828 GB, free: 1 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.374e-05/0.01295, allocations: 12 kB / 0.8828 GB, free: 0.9883 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 0.0001186/0.01307, allocations: 113.8 kB / 0.8829 GB, free: 0.8672 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.549e-05/0.01311, allocations: 11.89 kB / 0.8829 GB, free: 0.8555 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.395e-05/0.01314, allocations: 16.42 kB / 0.8829 GB, free: 0.8398 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.335e-06/0.01314, allocations: 320 / 0.8829 GB, free: 0.8398 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.507e-06/0.01315, allocations: 4 kB / 0.8829 GB, free: 0.8359 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.525e-06/0.01315, allocations: 0 / 0.8829 GB, free: 0.8359 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001404/0.01329, allocations: 121.3 kB / 0.883 GB, free: 0.6875 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.01329, allocations: 0 / 0.883 GB, free: 0.6875 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001125/0.0134, allocations: 19.97 kB / 0.883 GB, free: 0.668 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.01341, allocations: 0 / 0.883 GB, free: 0.668 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.104e-05/0.01342, allocations: 3.938 kB / 0.883 GB, free: 0.6641 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.077e-06/0.01342, allocations: 4.078 kB / 0.883 GB, free: 0.6602 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.01342, allocations: 3.984 kB / 0.8831 GB, free: 0.6562 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004308/0.01385, allocations: 156.9 kB / 0.8832 GB, free: 496 kB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 1.561e-05/0.01387, allocations: 7.953 kB / 0.8832 GB, free: 488 kB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.864e-05/0.01389, allocations: 3.938 kB / 0.8832 GB, free: 484 kB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.077e-05/0.01398, allocations: 15.97 kB / 0.8832 GB, free: 468 kB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.127e-05/0.01404, allocations: 11.98 kB / 0.8832 GB, free: 456 kB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.957e-06/0.01405, allocations: 3.984 kB / 0.8832 GB, free: 452 kB / 0.8386 GB Notification: Performance of sorting global known variables: time 7.659e-05/0.01413, allocations: 95.27 kB / 0.8833 GB, free: 356 kB / 0.8386 GB Notification: Performance of sort global known variables: time 6e-08/0.01413, allocations: 0 / 0.8833 GB, free: 356 kB / 0.8386 GB Notification: Performance of remove unused functions: time 0.000228/0.01435, allocations: 27.94 kB / 0.8834 GB, free: 328 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.0001763/0.01453, allocations: 99.25 kB / 0.8835 GB, free: 220 kB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0005502/0.01508, allocations: 200.9 kB / 0.8836 GB, free: 0 / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.01508, allocations: 0 / 0.8836 GB, free: 0 / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002095/0.01529, allocations: 52.16 kB / 0.8837 GB, free: 15.95 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002238/0.01552, allocations: 20.02 kB / 0.8837 GB, free: 15.93 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004046/0.01592, allocations: 168.1 kB / 0.8839 GB, free: 15.74 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.041e-05/0.01601, allocations: 79.25 kB / 0.884 GB, free: 15.64 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 4.015e-05/0.01605, allocations: 8 kB / 0.884 GB, free: 15.63 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.852e-05/0.01609, allocations: 12.5 kB / 0.884 GB, free: 15.62 MB / 0.8542 GB Notification: Performance of SimCode: time 4.71e-07/0.01609, allocations: 0 / 0.884 GB, free: 15.62 MB / 0.8542 GB Notification: Performance of Templates: time 0.004976/0.02107, allocations: 1.726 MB / 0.8857 GB, free: 13.94 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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe 2>&1) [Timeout 800] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.355041483067907]