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.001849/0.001849, allocations: 89.47 kB / 19.44 MB, free: 340 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.001959/0.001959, allocations: 177.2 kB / 22.76 MB, free: 1.66 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.589/1.589, allocations: 177.1 MB / 203.1 MB, free: 5.637 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.421/3.421, allocations: 429.5 MB / 0.6729 GB, free: 4.004 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 3.086e-06/3.086e-06, allocations: 0 / 0.8775 GB, free: 6.59 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.4e-05/3.709e-05, allocations: 2.312 kB / 0.8775 GB, free: 6.586 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.002114/0.002151, allocations: 0.784 MB / 0.8783 GB, free: 5.828 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001815/0.003966, allocations: 1.177 MB / 0.8794 GB, free: 4.641 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.44e-05/0.004021, allocations: 5 kB / 0.8794 GB, free: 4.637 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 3.074e-05/0.004051, allocations: 3.938 kB / 0.8794 GB, free: 4.633 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 0.0001046/0.004156, allocations: 21.09 kB / 0.8795 GB, free: 4.613 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005073/0.004663, allocations: 132.2 kB / 0.8796 GB, free: 4.484 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0002257/0.004889, allocations: 123.8 kB / 0.8797 GB, free: 4.363 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 9.983e-05/0.004989, allocations: 20.59 kB / 0.8797 GB, free: 4.344 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001533/0.005142, allocations: 68.86 kB / 0.8798 GB, free: 4.277 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001114/0.005253, allocations: 43.86 kB / 0.8798 GB, free: 4.234 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 3.581e-05/0.005289, allocations: 12 kB / 0.8798 GB, free: 4.223 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 7.348e-05/0.005363, allocations: 17.16 kB / 0.8799 GB, free: 4.207 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 2.92e-05/0.005392, allocations: 15.98 kB / 0.8799 GB, free: 4.191 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 7.58e-05/0.005468, allocations: 39.89 kB / 0.8799 GB, free: 4.152 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0002344/0.005702, allocations: 144.6 kB / 0.88 GB, free: 4.012 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 1.964e-06/0.005704, allocations: 0 / 0.88 GB, free: 4.012 MB / 0.8386 GB Notification: Performance of FrontEnd: time 5.91e-07/0.005705, allocations: 0 / 0.88 GB, free: 4.012 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.999e-06/0.00571, allocations: 1.125 kB / 0.88 GB, free: 4.012 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.0007204/0.00643, allocations: 445.7 kB / 0.8805 GB, free: 3.531 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.699e-05/0.006467, allocations: 9.625 kB / 0.8805 GB, free: 3.523 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.111e-05/0.006528, allocations: 8.938 kB / 0.8805 GB, free: 3.516 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001323/0.00666, allocations: 116.5 kB / 0.8806 GB, free: 3.375 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.747e-05/0.006678, allocations: 4.375 kB / 0.8806 GB, free: 3.371 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.301e-05/0.006701, allocations: 11.56 kB / 0.8806 GB, free: 3.363 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002093/0.00691, allocations: 78.14 kB / 0.8807 GB, free: 3.281 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.004e-05/0.00692, allocations: 192 / 0.8807 GB, free: 3.281 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.09e-05/0.006931, allocations: 384 / 0.8807 GB, free: 3.281 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.177e-06/0.006935, allocations: 384 / 0.8807 GB, free: 3.281 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001869/0.007122, allocations: 47.91 kB / 0.8807 GB, free: 3.234 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005303/0.007653, allocations: 313 kB / 0.881 GB, free: 2.895 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001584/0.007811, allocations: 54.97 kB / 0.8811 GB, free: 2.828 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001074/0.007918, allocations: 37.33 kB / 0.8811 GB, free: 2.789 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.85e-05/0.007947, allocations: 4 kB / 0.8811 GB, free: 2.785 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002057/0.008153, allocations: 92.97 kB / 0.8812 GB, free: 2.68 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=6): time 1.333e-06/0.008154, allocations: 0 / 0.8812 GB, free: 2.68 MB / 0.8386 GB Notification: Performance of matching and sorting (n=6): time 0.0004792/0.008633, allocations: 146.6 kB / 0.8814 GB, free: 2.531 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.192e-05/0.008685, allocations: 55.41 kB / 0.8814 GB, free: 2.465 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000161/0.008846, allocations: 189.5 kB / 0.8816 GB, free: 2.266 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 3.423e-05/0.00888, allocations: 33.69 kB / 0.8816 GB, free: 2.227 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.000112/0.008992, allocations: 146.8 kB / 0.8818 GB, free: 2.078 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.708e-05/0.009019, allocations: 19.84 kB / 0.8818 GB, free: 2.059 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.774e-05/0.009097, allocations: 35.36 kB / 0.8818 GB, free: 2.016 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0002753/0.009372, allocations: 0.4923 MB / 0.8823 GB, free: 1.512 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001965/0.009569, allocations: 89.67 kB / 0.8824 GB, free: 1.418 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002058/0.009775, allocations: 112.7 kB / 0.8825 GB, free: 1.289 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000564/0.01034, allocations: 144.7 kB / 0.8826 GB, free: 1.129 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/0.01034, allocations: 4 kB / 0.8826 GB, free: 1.125 MB / 0.8386 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004994/0.01084, allocations: 236.9 kB / 0.8829 GB, free: 0.875 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 4.513e-05/0.01089, allocations: 37.69 kB / 0.8829 GB, free: 0.832 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/0.01089, allocations: 0 / 0.8829 GB, free: 0.832 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.884e-05/0.01091, allocations: 8.062 kB / 0.8829 GB, free: 0.8242 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001052/0.01102, allocations: 11.98 kB / 0.8829 GB, free: 0.8125 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.562e-06/0.01102, allocations: 0 / 0.8829 GB, free: 0.8125 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001736/0.0112, allocations: 23.98 kB / 0.8829 GB, free: 0.7891 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.817e-05/0.01123, allocations: 11.98 kB / 0.8829 GB, free: 0.7773 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.000144/0.01137, allocations: 164.5 kB / 0.8831 GB, free: 0.6055 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.351e-05/0.01139, allocations: 11.89 kB / 0.8831 GB, free: 0.5938 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.426e-05/0.01143, allocations: 12.44 kB / 0.8831 GB, free: 0.582 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.01143, allocations: 4 kB / 0.8831 GB, free: 0.5781 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.01143, allocations: 3.984 kB / 0.8831 GB, free: 0.5742 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.01144, allocations: 0 / 0.8831 GB, free: 0.5742 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001542/0.01159, allocations: 140.6 kB / 0.8833 GB, free: 412 kB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.01159, allocations: 0 / 0.8833 GB, free: 412 kB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.106e-05/0.01166, allocations: 11.98 kB / 0.8833 GB, free: 400 kB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.462e-06/0.01167, allocations: 0 / 0.8833 GB, free: 400 kB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.238e-05/0.01168, allocations: 3.938 kB / 0.8833 GB, free: 396 kB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.01168, allocations: 0 / 0.8833 GB, free: 396 kB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.01168, allocations: 320 / 0.8833 GB, free: 396 kB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003372/0.01202, allocations: 152.3 kB / 0.8834 GB, free: 220 kB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.104e-05/0.01204, allocations: 15.94 kB / 0.8834 GB, free: 204 kB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.778e-05/0.01206, allocations: 3.938 kB / 0.8834 GB, free: 200 kB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.588e-05/0.01211, allocations: 8 kB / 0.8835 GB, free: 192 kB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.38e-05/0.01217, allocations: 7.984 kB / 0.8835 GB, free: 184 kB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.643e-06/0.01217, allocations: 0 / 0.8835 GB, free: 184 kB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001022/0.01227, allocations: 143.2 kB / 0.8836 GB, free: 40 kB / 0.8386 GB Notification: Performance of sort global known variables: time 7e-08/0.01227, allocations: 0 / 0.8836 GB, free: 40 kB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002058/0.01248, allocations: 23.94 kB / 0.8836 GB, free: 16 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.0002189/0.0127, allocations: 103.2 kB / 0.8837 GB, free: 15.91 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0004546/0.01315, allocations: 220.7 kB / 0.8839 GB, free: 15.67 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.01316, allocations: 0 / 0.8839 GB, free: 15.67 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0001302/0.01329, allocations: 39.67 kB / 0.884 GB, free: 15.62 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002217/0.01351, allocations: 26.34 kB / 0.884 GB, free: 15.6 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004154/0.01392, allocations: 170.1 kB / 0.8842 GB, free: 15.41 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.249e-05/0.01402, allocations: 81.38 kB / 0.8842 GB, free: 15.31 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 3.061e-05/0.01405, allocations: 3.938 kB / 0.8842 GB, free: 15.3 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.033e-05/0.01409, allocations: 12.5 kB / 0.8842 GB, free: 15.29 MB / 0.8542 GB Notification: Performance of SimCode: time 4.1e-07/0.01409, allocations: 0 / 0.8842 GB, free: 15.29 MB / 0.8542 GB Notification: Performance of Templates: time 0.005361/0.01945, allocations: 1.729 MB / 0.8859 GB, free: 13.6 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","/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.662488122936338]