Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.0008675/0.0008675, allocations: 80.44 kB / 19.17 MB, free: 0.7461 MB / 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.0009487/0.0009487, allocations: 165.9 kB / 22.45 MB, free: 2.113 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 0.9118/0.9118, allocations: 177.2 MB / 202.8 MB, free: 5.539 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.705/1.705, allocations: 359 MB / 0.6037 GB, free: 11.07 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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Switch,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Reals_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Switch,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Reals_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 3.507e-06/3.507e-06, allocations: 0 / 0.9506 GB, free: 3.402 MB / 0.9011 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.537e-05/2.888e-05, allocations: 6.219 kB / 0.9506 GB, free: 3.395 MB / 0.9011 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.001513/0.001542, allocations: 0.7729 MB / 0.9513 GB, free: 2.613 MB / 0.9011 GB Notification: Performance of NFInst.instExpressions: time 0.001154/0.002696, allocations: 1.171 MB / 0.9525 GB, free: 1.43 MB / 0.9011 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.487e-05/0.002741, allocations: 0 / 0.9525 GB, free: 1.43 MB / 0.9011 GB Notification: Performance of NFTyping.typeComponents: time 2.985e-05/0.002771, allocations: 7.938 kB / 0.9525 GB, free: 1.422 MB / 0.9011 GB Notification: Performance of NFTyping.typeBindings: time 6.848e-05/0.00284, allocations: 19.84 kB / 0.9525 GB, free: 1.402 MB / 0.9011 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004374/0.003277, allocations: 135.9 kB / 0.9526 GB, free: 1.273 MB / 0.9011 GB Notification: Performance of NFFlatten.flatten: time 0.0001457/0.003423, allocations: 131.7 kB / 0.9527 GB, free: 1.145 MB / 0.9011 GB Notification: Performance of NFFlatten.resolveConnections: time 9.251e-05/0.003515, allocations: 15.97 kB / 0.9528 GB, free: 1.129 MB / 0.9011 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001105/0.003626, allocations: 63.95 kB / 0.9528 GB, free: 1.066 MB / 0.9011 GB Notification: Performance of NFSimplifyModel.simplify: time 8.667e-05/0.003712, allocations: 47.86 kB / 0.9529 GB, free: 1.02 MB / 0.9011 GB Notification: Performance of NFPackage.collectConstants: time 2.098e-05/0.003733, allocations: 12 kB / 0.9529 GB, free: 1.008 MB / 0.9011 GB Notification: Performance of NFFlatten.collectFunctions: time 5.848e-05/0.003792, allocations: 20 kB / 0.9529 GB, free: 0.9883 MB / 0.9011 GB Notification: Performance of NFScalarize.scalarize: time 2.272e-05/0.003815, allocations: 15.92 kB / 0.9529 GB, free: 0.9727 MB / 0.9011 GB Notification: Performance of NFVerifyModel.verify: time 4.86e-05/0.003863, allocations: 35.95 kB / 0.953 GB, free: 0.9375 MB / 0.9011 GB Notification: Performance of NFConvertDAE.convert: time 0.0001856/0.004049, allocations: 143.6 kB / 0.9531 GB, free: 0.7969 MB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 2.435e-06/0.004051, allocations: 0 / 0.9531 GB, free: 0.7969 MB / 0.9011 GB Notification: Performance of FrontEnd: time 1.763e-06/0.004053, allocations: 0 / 0.9531 GB, free: 0.7969 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 5.009e-06/0.004058, allocations: 0 / 0.9531 GB, free: 0.7969 MB / 0.9011 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.0005541/0.004612, allocations: 347.7 kB / 0.9534 GB, free: 428 kB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 4.276e-05/0.004655, allocations: 12.03 kB / 0.9534 GB, free: 416 kB / 0.9011 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.068e-05/0.004685, allocations: 38.75 kB / 0.9535 GB, free: 368 kB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.149e-05/0.004727, allocations: 12.88 kB / 0.9535 GB, free: 356 kB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.636e-05/0.004813, allocations: 121.7 kB / 0.9536 GB, free: 208 kB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.322e-05/0.004827, allocations: 8.312 kB / 0.9536 GB, free: 200 kB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.745e-05/0.004844, allocations: 8.375 kB / 0.9536 GB, free: 192 kB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001721/0.005016, allocations: 78.2 kB / 0.9537 GB, free: 108 kB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.424e-06/0.005023, allocations: 192 / 0.9537 GB, free: 108 kB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.207e-06/0.005033, allocations: 384 / 0.9537 GB, free: 108 kB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.089e-06/0.005038, allocations: 4.125 kB / 0.9537 GB, free: 104 kB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001537/0.005191, allocations: 71.92 kB / 0.9538 GB, free: 32 kB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003981/0.00559, allocations: 275.8 kB / 0.954 GB, free: 15.72 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001115/0.005701, allocations: 62.47 kB / 0.9541 GB, free: 15.65 MB / 0.9167 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.711e-05/0.005788, allocations: 52.84 kB / 0.9541 GB, free: 15.59 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 1.904e-05/0.005807, allocations: 0 / 0.9541 GB, free: 15.59 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001935/0.006001, allocations: 95.25 kB / 0.9542 GB, free: 15.49 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=6): time 9.42e-07/0.006002, allocations: 0 / 0.9542 GB, free: 15.49 MB / 0.9167 GB Notification: Performance of matching and sorting (n=6): time 0.0003545/0.006356, allocations: 173.6 kB / 0.9544 GB, free: 15.31 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.142e-05/0.006388, allocations: 51.41 kB / 0.9544 GB, free: 15.25 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.563e-05/0.006463, allocations: 123.5 kB / 0.9546 GB, free: 15.12 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 1.767e-05/0.006481, allocations: 29.7 kB / 0.9546 GB, free: 15.08 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 5.645e-05/0.006537, allocations: 96.12 kB / 0.9547 GB, free: 14.98 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 1.446e-05/0.006552, allocations: 11.97 kB / 0.9547 GB, free: 14.97 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.993e-05/0.006602, allocations: 37.7 kB / 0.9547 GB, free: 14.93 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 6.916e-05/0.006671, allocations: 314.8 kB / 0.955 GB, free: 14.61 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001306/0.006801, allocations: 93.64 kB / 0.9551 GB, free: 14.52 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001291/0.006931, allocations: 116.2 kB / 0.9552 GB, free: 14.39 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001856/0.007116, allocations: 140.2 kB / 0.9554 GB, free: 14.23 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.007118, allocations: 0 / 0.9554 GB, free: 14.23 MB / 0.9167 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002961/0.007414, allocations: 252.9 kB / 0.9556 GB, free: 13.97 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 2.808e-05/0.007442, allocations: 37.69 kB / 0.9556 GB, free: 13.93 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.997e-06/0.007446, allocations: 0 / 0.9556 GB, free: 13.93 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.324e-05/0.007459, allocations: 4 kB / 0.9556 GB, free: 13.92 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.085e-05/0.00754, allocations: 19.92 kB / 0.9557 GB, free: 13.9 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.719e-06/0.007545, allocations: 0 / 0.9557 GB, free: 13.9 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001148/0.00766, allocations: 51.94 kB / 0.9557 GB, free: 13.85 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.48e-05/0.007675, allocations: 4 kB / 0.9557 GB, free: 13.85 MB / 0.9167 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 6.618e-05/0.007741, allocations: 113.8 kB / 0.9558 GB, free: 13.73 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.045e-05/0.007751, allocations: 11.89 kB / 0.9558 GB, free: 13.71 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.483e-05/0.007776, allocations: 16.42 kB / 0.9558 GB, free: 13.7 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.007778, allocations: 0 / 0.9558 GB, free: 13.7 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/0.007782, allocations: 0 / 0.9558 GB, free: 13.7 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.985e-06/0.007785, allocations: 96 / 0.9558 GB, free: 13.7 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.087e-05/0.007876, allocations: 156.6 kB / 0.956 GB, free: 13.5 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.007877, allocations: 0 / 0.956 GB, free: 13.5 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.393e-05/0.007921, allocations: 15.98 kB / 0.956 GB, free: 13.48 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.412e-06/0.007922, allocations: 0 / 0.956 GB, free: 13.48 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.915e-06/0.00793, allocations: 4 kB / 0.956 GB, free: 13.48 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.21e-07/0.007931, allocations: 7.938 kB / 0.956 GB, free: 13.47 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.007932, allocations: 0 / 0.956 GB, free: 13.47 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002041/0.008136, allocations: 157.2 kB / 0.9562 GB, free: 13.3 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 8.546e-06/0.008145, allocations: 7.953 kB / 0.9562 GB, free: 13.29 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.279e-05/0.008158, allocations: 0 / 0.9562 GB, free: 13.29 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.92e-05/0.008197, allocations: 19.97 kB / 0.9562 GB, free: 13.27 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.055e-05/0.008238, allocations: 7.984 kB / 0.9562 GB, free: 13.27 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.42e-06/0.008243, allocations: 4 kB / 0.9562 GB, free: 13.26 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 3.595e-05/0.008279, allocations: 91.27 kB / 0.9563 GB, free: 13.17 MB / 0.9167 GB Notification: Performance of sort global known variables: time 5e-08/0.008279, allocations: 0 / 0.9563 GB, free: 13.17 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0001593/0.008438, allocations: 24 kB / 0.9563 GB, free: 13.15 MB / 0.9167 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.0004987/0.008937, allocations: 0.6903 MB / 0.957 GB, free: 12.43 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.0003303/0.009267, allocations: 205 kB / 0.9572 GB, free: 12.21 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.009269, allocations: 128 / 0.9572 GB, free: 12.21 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 9.216e-05/0.009361, allocations: 51.89 kB / 0.9572 GB, free: 12.16 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001799/0.009541, allocations: 15.98 kB / 0.9573 GB, free: 12.14 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001417/0.01096, allocations: 1.762 MB / 0.959 GB, free: 10.25 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.233e-05/0.011, allocations: 71.33 kB / 0.959 GB, free: 10.16 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 2.905e-05/0.01103, allocations: 11.98 kB / 0.9591 GB, free: 10.15 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.299e-05/0.01107, allocations: 24.5 kB / 0.9591 GB, free: 10.13 MB / 0.9167 GB Notification: Performance of SimCode: time 5.61e-07/0.01107, allocations: 0 / 0.9591 GB, free: 10.13 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01687/0.02794, allocations: 3.491 MB / 0.9625 GB, free: 6.805 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.698/6.726, allocations: 2.406 kB / 0.9625 GB, free: 6.805 MB / 0.9167 GB " [Timeout remaining time 293] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.csv --start-time 0 --stop-time 5 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Buildings_11_Buildings_Controls_OBC_CDL_Reals_Validation_Switch.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Reals_Validation_Switch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable switch1.u1 in file Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.csv. Warning: Get data of variable switch1.u1 from file Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.csv failed! Error: Could not read variable switch1.u2 in file Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.csv. Warning: Get data of variable switch1.u2 from file Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.csv failed! Error: Could not read variable switch1.u3 in file Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.csv. Warning: Get data of variable switch1.u3 from file Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 10.855562505312264]