Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001602/0.001602, allocations: 99.75 kB / 18.95 MB, free: 2.832 MB / 14.72 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.002031/0.002031, allocations: 216.6 kB / 22.25 MB, free: 5.105 MB / 14.72 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.553/1.553, allocations: 230.6 MB / 256 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.347/3.347, allocations: 0.49 GB / 0.7951 GB, free: 35.4 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Switch,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Switch,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002095/0.002095, allocations: 63.06 kB / 1.154 GB, free: 25.43 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3799/0.382, allocations: 176.1 MB / 1.326 GB, free: 1.469 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.00203/0.384, allocations: 0.772 MB / 1.327 GB, free: 0.6992 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001728/0.3857, allocations: 1.167 MB / 1.328 GB, free: 15.52 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.254e-05/0.3858, allocations: 4 kB / 1.328 GB, free: 15.52 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 3.343e-05/0.3858, allocations: 7.922 kB / 1.328 GB, free: 15.51 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 8.976e-05/0.3859, allocations: 11.86 kB / 1.328 GB, free: 15.5 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005486/0.3865, allocations: 142.3 kB / 1.328 GB, free: 15.36 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0001911/0.3866, allocations: 119.8 kB / 1.328 GB, free: 15.24 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 9.361e-05/0.3867, allocations: 19.97 kB / 1.328 GB, free: 15.22 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 9.974e-05/0.3868, allocations: 55.78 kB / 1.328 GB, free: 15.17 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001099/0.387, allocations: 55.81 kB / 1.328 GB, free: 15.11 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.384e-05/0.387, allocations: 8 kB / 1.328 GB, free: 15.11 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 6.981e-05/0.387, allocations: 27.98 kB / 1.328 GB, free: 15.08 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 3.212e-05/0.3871, allocations: 11.92 kB / 1.328 GB, free: 15.07 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 7.233e-05/0.3871, allocations: 43.84 kB / 1.328 GB, free: 15.02 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001977/0.3873, allocations: 119.9 kB / 1.328 GB, free: 14.91 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.3874, allocations: 3.938 kB / 1.328 GB, free: 14.9 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.292e-06/0.3874, allocations: 0 / 1.328 GB, free: 14.9 MB / 1.029 GB Notification: Performance of Transformations before backend: time 4.99e-06/0.3874, allocations: 0 / 1.328 GB, free: 14.9 MB / 1.029 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.000738/0.3881, allocations: 349 kB / 1.329 GB, free: 14.52 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.761e-05/0.3881, allocations: 12.03 kB / 1.329 GB, free: 14.51 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.93e-05/0.3882, allocations: 30.75 kB / 1.329 GB, free: 14.47 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.7e-05/0.3882, allocations: 8.891 kB / 1.329 GB, free: 14.46 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001268/0.3884, allocations: 131.8 kB / 1.329 GB, free: 14.31 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.766e-05/0.3884, allocations: 4.375 kB / 1.329 GB, free: 14.31 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.589e-05/0.3884, allocations: 8.375 kB / 1.329 GB, free: 14.3 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002607/0.3887, allocations: 74.2 kB / 1.329 GB, free: 14.22 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.527e-06/0.3887, allocations: 3.938 kB / 1.329 GB, free: 14.22 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.009e-05/0.3887, allocations: 0 / 1.329 GB, free: 14.22 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.038e-06/0.3887, allocations: 4 kB / 1.329 GB, free: 14.21 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003059/0.389, allocations: 75.91 kB / 1.329 GB, free: 14.14 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004846/0.3895, allocations: 291.7 kB / 1.329 GB, free: 13.81 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001941/0.3897, allocations: 46.55 kB / 1.329 GB, free: 13.76 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001592/0.3898, allocations: 44.91 kB / 1.329 GB, free: 13.71 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.176e-05/0.3899, allocations: 0 / 1.329 GB, free: 13.71 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000329/0.3902, allocations: 99.34 kB / 1.33 GB, free: 13.6 MB / 1.029 GB Notification: Performance of pre-optimization done (n=6): time 1.303e-06/0.3902, allocations: 0 / 1.33 GB, free: 13.6 MB / 1.029 GB Notification: Performance of matching and sorting (n=6): time 0.0006079/0.3908, allocations: 161.5 kB / 1.33 GB, free: 13.44 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.521e-05/0.3909, allocations: 59.41 kB / 1.33 GB, free: 13.37 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001215/0.391, allocations: 131.3 kB / 1.33 GB, free: 13.23 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.391e-05/0.391, allocations: 25.7 kB / 1.33 GB, free: 13.2 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 7.314e-05/0.3911, allocations: 96.16 kB / 1.33 GB, free: 13.1 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.558e-05/0.3911, allocations: 15.91 kB / 1.33 GB, free: 13.08 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.3e-05/0.3912, allocations: 33.69 kB / 1.33 GB, free: 13.04 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001614/0.3914, allocations: 322.8 kB / 1.33 GB, free: 12.72 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002478/0.3916, allocations: 89.64 kB / 1.33 GB, free: 12.62 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002538/0.3919, allocations: 116.2 kB / 1.331 GB, free: 12.5 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003913/0.3922, allocations: 148.2 kB / 1.331 GB, free: 12.34 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.3922, allocations: 96 / 1.331 GB, free: 12.34 MB / 1.029 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005814/0.3928, allocations: 248.9 kB / 1.331 GB, free: 12.07 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 5.107e-05/0.3929, allocations: 37.7 kB / 1.331 GB, free: 12.03 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.611e-06/0.3929, allocations: 3.938 kB / 1.331 GB, free: 12.03 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.721e-05/0.3929, allocations: 0 / 1.331 GB, free: 12.03 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00015/0.3931, allocations: 23.91 kB / 1.331 GB, free: 12 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.931e-06/0.3931, allocations: 0 / 1.331 GB, free: 12 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002405/0.3933, allocations: 44.2 kB / 1.331 GB, free: 11.96 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.823e-05/0.3933, allocations: 8 kB / 1.331 GB, free: 11.95 MB / 1.029 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.0001121/0.3934, allocations: 122.3 kB / 1.331 GB, free: 11.82 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.176e-05/0.3935, allocations: 11.94 kB / 1.331 GB, free: 11.81 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.327e-05/0.3935, allocations: 8.375 kB / 1.331 GB, free: 11.8 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.936e-06/0.3935, allocations: 0 / 1.331 GB, free: 11.8 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.3935, allocations: 0 / 1.331 GB, free: 11.8 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.3935, allocations: 0 / 1.331 GB, free: 11.8 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001603/0.3937, allocations: 156.7 kB / 1.331 GB, free: 11.61 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.3937, allocations: 0 / 1.331 GB, free: 11.61 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001094/0.3938, allocations: 19.98 kB / 1.331 GB, free: 11.59 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.3938, allocations: 0 / 1.331 GB, free: 11.59 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.041e-05/0.3938, allocations: 0 / 1.331 GB, free: 11.59 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.3938, allocations: 0 / 1.331 GB, free: 11.59 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.3938, allocations: 3.984 kB / 1.331 GB, free: 11.58 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004099/0.3942, allocations: 152.9 kB / 1.331 GB, free: 11.41 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.459e-05/0.3942, allocations: 11.94 kB / 1.331 GB, free: 11.4 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.756e-05/0.3942, allocations: 4 kB / 1.331 GB, free: 11.4 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.729e-05/0.3943, allocations: 11.98 kB / 1.332 GB, free: 11.39 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.904e-05/0.3944, allocations: 11.98 kB / 1.332 GB, free: 11.38 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.233e-06/0.3944, allocations: 0 / 1.332 GB, free: 11.38 MB / 1.029 GB Notification: Performance of sorting global known variables: time 7.084e-05/0.3944, allocations: 95.27 kB / 1.332 GB, free: 11.28 MB / 1.029 GB Notification: Performance of sort global known variables: time 7.1e-08/0.3944, allocations: 0 / 1.332 GB, free: 11.28 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002392/0.3947, allocations: 24 kB / 1.332 GB, free: 11.26 MB / 1.029 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.0008146/0.3955, allocations: 0.697 MB / 1.332 GB, free: 10.54 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0005606/0.3961, allocations: 197 kB / 1.332 GB, free: 10.32 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.3961, allocations: 0 / 1.332 GB, free: 10.32 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001796/0.3962, allocations: 48.28 kB / 1.333 GB, free: 10.28 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002292/0.3965, allocations: 29.86 kB / 1.333 GB, free: 10.25 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002554/0.399, allocations: 1.765 MB / 1.334 GB, free: 8.359 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.875e-05/0.3991, allocations: 75.33 kB / 1.334 GB, free: 8.266 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 4.3e-05/0.3991, allocations: 4 kB / 1.334 GB, free: 8.262 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.662e-05/0.3992, allocations: 15.44 kB / 1.334 GB, free: 8.246 MB / 1.029 GB Notification: Performance of SimCode: time 7.02e-07/0.3992, allocations: 0 / 1.334 GB, free: 8.246 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03087/0.4301, allocations: 3.403 MB / 1.338 GB, free: 4.996 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.19/11.62, allocations: 0 / 1.338 GB, free: 4.996 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_Switch_fmu --startTime=0 --stopTime=5 --stepSize=0.002 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_Switch.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Reals_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 18.66260826899088]