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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001616/0.001616, allocations: 108.2 kB / 16.46 MB, free: 6.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00176/0.00176, allocations: 191.8 kB / 19.41 MB, free: 3.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.48/1.48, allocations: 225.6 MB / 247.8 MB, free: 13.93 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.2/3.2, allocations: 497.2 MB / 0.7811 GB, free: 33.48 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Switch,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Switch,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002008/0.002008, allocations: 71.88 kB / 1.134 GB, free: 33.81 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3448/0.3468, allocations: 173.9 MB / 1.304 GB, free: 1.598 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.002228/0.349, allocations: 0.7918 MB / 1.305 GB, free: 0.8086 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001919/0.3509, allocations: 1.155 MB / 1.306 GB, free: 15.64 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.495e-05/0.351, allocations: 4 kB / 1.306 GB, free: 15.63 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 3.187e-05/0.351, allocations: 7.875 kB / 1.306 GB, free: 15.62 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 8.882e-05/0.3511, allocations: 11.86 kB / 1.306 GB, free: 15.61 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005124/0.3516, allocations: 139.2 kB / 1.306 GB, free: 15.48 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0002138/0.3518, allocations: 127.6 kB / 1.306 GB, free: 15.36 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 9.15e-05/0.3519, allocations: 8 kB / 1.306 GB, free: 15.35 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001054/0.352, allocations: 55.89 kB / 1.306 GB, free: 15.3 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00011/0.3521, allocations: 59.73 kB / 1.306 GB, free: 15.24 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 3.079e-05/0.3522, allocations: 12 kB / 1.306 GB, free: 15.23 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 7.695e-05/0.3522, allocations: 27.94 kB / 1.306 GB, free: 15.2 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 2.876e-05/0.3523, allocations: 15.98 kB / 1.306 GB, free: 15.18 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0001196/0.3524, allocations: 47.77 kB / 1.306 GB, free: 15.14 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0002019/0.3526, allocations: 123.9 kB / 1.307 GB, free: 15.02 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.3526, allocations: 0 / 1.307 GB, free: 15.02 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.924e-06/0.3526, allocations: 0 / 1.307 GB, free: 15.02 MB / 1.014 GB Notification: Performance of Transformations before backend: time 5.18e-06/0.3526, allocations: 0 / 1.307 GB, free: 15.02 MB / 1.014 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.0008319/0.3534, allocations: 432.8 kB / 1.307 GB, free: 14.54 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.27e-05/0.3535, allocations: 8.625 kB / 1.307 GB, free: 14.53 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.451e-05/0.3535, allocations: 30.75 kB / 1.307 GB, free: 14.49 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.573e-05/0.3536, allocations: 12.89 kB / 1.307 GB, free: 14.48 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001511/0.3537, allocations: 168.3 kB / 1.307 GB, free: 14.27 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.702e-05/0.3537, allocations: 8.359 kB / 1.307 GB, free: 14.27 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.02e-05/0.3538, allocations: 12.31 kB / 1.307 GB, free: 14.25 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002727/0.354, allocations: 82.19 kB / 1.307 GB, free: 14.17 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.188e-05/0.354, allocations: 3.938 kB / 1.307 GB, free: 14.16 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.277e-05/0.354, allocations: 4 kB / 1.307 GB, free: 14.16 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.081e-06/0.3541, allocations: 0 / 1.307 GB, free: 14.16 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003007/0.3544, allocations: 67.92 kB / 1.307 GB, free: 14.09 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005007/0.3549, allocations: 340.6 kB / 1.308 GB, free: 13.71 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001964/0.3551, allocations: 54.47 kB / 1.308 GB, free: 13.65 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001562/0.3552, allocations: 40.91 kB / 1.308 GB, free: 13.61 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 1.9e-05/0.3552, allocations: 0 / 1.308 GB, free: 13.61 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003158/0.3555, allocations: 99.34 kB / 1.308 GB, free: 13.5 MB / 1.014 GB Notification: Performance of pre-optimization done (n=6): time 1.392e-06/0.3555, allocations: 0 / 1.308 GB, free: 13.5 MB / 1.014 GB Notification: Performance of matching and sorting (n=6): time 0.0006014/0.3561, allocations: 165.5 kB / 1.308 GB, free: 13.33 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.985e-05/0.3562, allocations: 55.41 kB / 1.308 GB, free: 13.26 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001134/0.3563, allocations: 122.1 kB / 1.308 GB, free: 13.13 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 3.314e-05/0.3563, allocations: 33.7 kB / 1.308 GB, free: 13.09 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 6.461e-05/0.3564, allocations: 88.14 kB / 1.308 GB, free: 13 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 2.116e-05/0.3564, allocations: 15.86 kB / 1.308 GB, free: 12.98 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.028e-05/0.3565, allocations: 37.69 kB / 1.308 GB, free: 12.94 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001673/0.3567, allocations: 318.8 kB / 1.309 GB, free: 12.62 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002363/0.3569, allocations: 63.94 kB / 1.309 GB, free: 12.56 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002219/0.3571, allocations: 78.53 kB / 1.309 GB, free: 12.47 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003711/0.3575, allocations: 144.2 kB / 1.309 GB, free: 12.32 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.245e-06/0.3575, allocations: 7.875 kB / 1.309 GB, free: 12.31 MB / 1.014 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005475/0.3581, allocations: 215.3 kB / 1.309 GB, free: 12.09 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 4.432e-05/0.3581, allocations: 37.7 kB / 1.309 GB, free: 12.04 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.418e-06/0.3581, allocations: 0 / 1.309 GB, free: 12.04 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.574e-05/0.3581, allocations: 4.062 kB / 1.309 GB, free: 12.04 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001337/0.3583, allocations: 19.97 kB / 1.309 GB, free: 12.02 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.36e-06/0.3583, allocations: 0 / 1.309 GB, free: 12.02 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002245/0.3585, allocations: 43.84 kB / 1.309 GB, free: 11.98 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.387e-05/0.3585, allocations: 8 kB / 1.309 GB, free: 11.97 MB / 1.014 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.0001152/0.3586, allocations: 133.7 kB / 1.309 GB, free: 11.83 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.852e-05/0.3586, allocations: 11.95 kB / 1.309 GB, free: 11.82 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.213e-05/0.3587, allocations: 4.688 kB / 1.309 GB, free: 11.81 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.464e-06/0.3587, allocations: 0 / 1.309 GB, free: 11.81 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.3587, allocations: 0 / 1.309 GB, free: 11.81 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.3587, allocations: 4 kB / 1.309 GB, free: 11.8 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002645/0.3589, allocations: 185.6 kB / 1.31 GB, free: 11.57 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.175e-06/0.359, allocations: 3.984 kB / 1.31 GB, free: 11.57 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001022/0.3591, allocations: 11.98 kB / 1.31 GB, free: 11.56 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.191e-06/0.3591, allocations: 7.984 kB / 1.31 GB, free: 11.55 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.092e-05/0.3591, allocations: 8 kB / 1.31 GB, free: 11.54 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.3591, allocations: 0 / 1.31 GB, free: 11.54 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.123e-06/0.3591, allocations: 0 / 1.31 GB, free: 11.54 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004052/0.3595, allocations: 152.9 kB / 1.31 GB, free: 11.38 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 5.853e-05/0.3595, allocations: 85.06 kB / 1.31 GB, free: 11.27 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.631e-05/0.3596, allocations: 4 kB / 1.31 GB, free: 11.27 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.876e-05/0.3597, allocations: 19.97 kB / 1.31 GB, free: 11.25 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.012e-05/0.3597, allocations: 0 / 1.31 GB, free: 11.25 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.488e-06/0.3597, allocations: 4 kB / 1.31 GB, free: 11.25 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0001066/0.3598, allocations: 95.14 kB / 1.31 GB, free: 11.16 MB / 1.014 GB Notification: Performance of sort global known variables: time 9.1e-08/0.3598, allocations: 0 / 1.31 GB, free: 11.16 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0002411/0.3601, allocations: 27.98 kB / 1.31 GB, free: 11.13 MB / 1.014 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.0008231/0.3609, allocations: 0.6904 MB / 1.311 GB, free: 10.41 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0005141/0.3614, allocations: 175.3 kB / 1.311 GB, free: 10.23 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.3614, allocations: 0 / 1.311 GB, free: 10.23 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0001769/0.3616, allocations: 47.89 kB / 1.311 GB, free: 10.18 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002193/0.3618, allocations: 21.97 kB / 1.311 GB, free: 10.16 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002586/0.3644, allocations: 1.653 MB / 1.312 GB, free: 8.402 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003858/0.3648, allocations: 0.6938 MB / 1.313 GB, free: 7.684 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 4.587e-05/0.3648, allocations: 4 kB / 1.313 GB, free: 7.68 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.321e-05/0.3649, allocations: 19.44 kB / 1.313 GB, free: 7.66 MB / 1.014 GB Notification: Performance of SimCode: time 6.21e-07/0.3649, allocations: 0 / 1.313 GB, free: 7.66 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02979/0.3946, allocations: 2.691 MB / 1.316 GB, free: 5.082 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.502/8.897, allocations: 3.375 kB / 1.316 GB, free: 5.082 MB / 1.014 GB " [Timeout remaining time 291] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Switch_fmu --startTime=0 --stopTime=5 --stepSize=0.002 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Switch.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe 2>&1) [Timeout 840.0] 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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 15.6289282143116]