Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.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.001887/0.001887, allocations: 104.7 kB / 16.45 MB, free: 6.449 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.002265/0.002265, allocations: 210.4 kB / 19.43 MB, free: 3.637 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.588/1.588, allocations: 230.6 MB / 252.8 MB, free: 9.113 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.191/3.191, allocations: 0.49 GB / 0.7916 GB, free: 33.29 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.Logical.Validation.Edge,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Logical_Validation_Edge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Edge,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Logical_Validation_Edge",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.00209/0.00209, allocations: 67.53 kB / 1.149 GB, free: 26.32 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3959/0.398, allocations: 176.1 MB / 1.321 GB, free: 3.324 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Edge): time 0.00287/0.4009, allocations: 0.7467 MB / 1.322 GB, free: 2.578 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001944/0.4028, allocations: 1.182 MB / 1.323 GB, free: 1.383 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.708e-05/0.4029, allocations: 0 / 1.323 GB, free: 1.383 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 3.883e-05/0.403, allocations: 3.938 kB / 1.323 GB, free: 1.379 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 8.527e-05/0.403, allocations: 11.86 kB / 1.323 GB, free: 1.367 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006607/0.4037, allocations: 140 kB / 1.323 GB, free: 1.234 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0002348/0.4039, allocations: 115.8 kB / 1.323 GB, free: 1.121 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001295/0.4041, allocations: 15.97 kB / 1.323 GB, free: 1.105 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001367/0.4042, allocations: 51.91 kB / 1.323 GB, free: 1.055 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001202/0.4043, allocations: 47.81 kB / 1.323 GB, free: 1.008 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 2.808e-05/0.4043, allocations: 8 kB / 1.323 GB, free: 1 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 8.001e-05/0.4044, allocations: 23.98 kB / 1.323 GB, free: 0.9766 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 3.228e-05/0.4045, allocations: 15.92 kB / 1.323 GB, free: 0.9609 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 7.207e-05/0.4045, allocations: 39.84 kB / 1.323 GB, free: 0.9219 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0002299/0.4048, allocations: 108 kB / 1.323 GB, free: 0.8164 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.4048, allocations: 0 / 1.323 GB, free: 0.8164 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.773e-06/0.4048, allocations: 8 kB / 1.323 GB, free: 0.8086 MB / 1.014 GB Notification: Performance of Transformations before backend: time 8.005e-06/0.4048, allocations: 0 / 1.323 GB, free: 0.8086 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.0007514/0.4055, allocations: 416.8 kB / 1.324 GB, free: 352 kB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.698e-05/0.4056, allocations: 11.98 kB / 1.324 GB, free: 340 kB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.083e-05/0.4056, allocations: 38.73 kB / 1.324 GB, free: 292 kB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.417e-05/0.4057, allocations: 20.83 kB / 1.324 GB, free: 272 kB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000154/0.4058, allocations: 172.3 kB / 1.324 GB, free: 60 kB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.778e-05/0.4059, allocations: 384 / 1.324 GB, free: 60 kB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.421e-05/0.4059, allocations: 8.375 kB / 1.324 GB, free: 52 kB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002334/0.4061, allocations: 70.22 kB / 1.324 GB, free: 15.98 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.098e-05/0.4061, allocations: 3.938 kB / 1.324 GB, free: 15.97 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.032e-05/0.4061, allocations: 0 / 1.324 GB, free: 15.97 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.4061, allocations: 0 / 1.324 GB, free: 15.97 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002124/0.4064, allocations: 47.89 kB / 1.324 GB, free: 15.93 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006006/0.407, allocations: 332.7 kB / 1.324 GB, free: 15.55 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002097/0.4072, allocations: 58.59 kB / 1.324 GB, free: 15.48 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001171/0.4073, allocations: 32.91 kB / 1.324 GB, free: 15.45 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.339e-05/0.4073, allocations: 0 / 1.324 GB, free: 15.45 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002373/0.4075, allocations: 95.31 kB / 1.325 GB, free: 15.34 MB / 1.029 GB Notification: Performance of pre-optimization done (n=8): time 1.623e-06/0.4075, allocations: 0 / 1.325 GB, free: 15.34 MB / 1.029 GB Notification: Performance of matching and sorting (n=8): time 0.0004924/0.408, allocations: 133.6 kB / 1.325 GB, free: 15.21 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.139e-05/0.4081, allocations: 55.39 kB / 1.325 GB, free: 15.14 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001295/0.4082, allocations: 125.7 kB / 1.325 GB, free: 15.01 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.661e-05/0.4082, allocations: 33.7 kB / 1.325 GB, free: 14.97 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 7.399e-05/0.4083, allocations: 96.12 kB / 1.325 GB, free: 14.87 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.327e-05/0.4084, allocations: 19.97 kB / 1.325 GB, free: 14.85 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.304e-05/0.4084, allocations: 33.7 kB / 1.325 GB, free: 14.81 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001878/0.4086, allocations: 322.8 kB / 1.325 GB, free: 14.49 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001778/0.4088, allocations: 55.91 kB / 1.325 GB, free: 14.43 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002014/0.409, allocations: 88.25 kB / 1.325 GB, free: 14.33 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003204/0.4093, allocations: 145.8 kB / 1.326 GB, free: 14.17 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.4093, allocations: 0 / 1.326 GB, free: 14.17 MB / 1.029 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0005246/0.4099, allocations: 215.5 kB / 1.326 GB, free: 13.95 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 4.496e-05/0.4099, allocations: 33.7 kB / 1.326 GB, free: 13.91 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.815e-06/0.4099, allocations: 3.984 kB / 1.326 GB, free: 13.9 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.401e-05/0.4099, allocations: 0 / 1.326 GB, free: 13.9 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.609e-05/0.41, allocations: 11.98 kB / 1.326 GB, free: 13.89 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.357e-06/0.41, allocations: 4 kB / 1.326 GB, free: 13.89 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002417/0.4103, allocations: 47.97 kB / 1.326 GB, free: 13.84 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.392e-05/0.4103, allocations: 8 kB / 1.326 GB, free: 13.83 MB / 1.029 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 10 (triggeredSampler.y,$PRE.triggeredSampler.y,$whenCondition1,$whenCondition2,edge1.y,edge1.u,$PRE.edge1.u,booPul.y,$PRE.booPul.y,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * 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.0001358/0.4104, allocations: 121.7 kB / 1.326 GB, free: 13.7 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.132e-05/0.4104, allocations: 7.953 kB / 1.326 GB, free: 13.7 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.752e-05/0.4105, allocations: 12.36 kB / 1.326 GB, free: 13.68 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.4105, allocations: 4 kB / 1.326 GB, free: 13.68 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.4105, allocations: 0 / 1.326 GB, free: 13.68 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.337e-06/0.4105, allocations: 4 kB / 1.326 GB, free: 13.67 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005704/0.4111, allocations: 374.4 kB / 1.326 GB, free: 13.25 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.4111, allocations: 0 / 1.326 GB, free: 13.25 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.158e-05/0.4111, allocations: 8 kB / 1.326 GB, free: 13.24 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.026e-06/0.4111, allocations: 64 / 1.326 GB, free: 13.24 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.689e-05/0.4111, allocations: 11.98 kB / 1.326 GB, free: 13.23 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.4112, allocations: 0 / 1.326 GB, free: 13.23 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.4112, allocations: 4 kB / 1.326 GB, free: 13.23 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003693/0.4115, allocations: 207.4 kB / 1.327 GB, free: 13.01 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 6.404e-05/0.4116, allocations: 81.06 kB / 1.327 GB, free: 12.91 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.807e-05/0.4116, allocations: 8 kB / 1.327 GB, free: 12.9 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.908e-05/0.4117, allocations: 7.984 kB / 1.327 GB, free: 12.89 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.661e-05/0.4117, allocations: 7.875 kB / 1.327 GB, free: 12.89 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.251e-05/0.4118, allocations: 11.98 kB / 1.327 GB, free: 12.88 MB / 1.029 GB Notification: Performance of sorting global known variables: time 7.534e-05/0.4118, allocations: 87.28 kB / 1.327 GB, free: 12.79 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.4118, allocations: 0 / 1.327 GB, free: 12.79 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002899/0.4121, allocations: 31.92 kB / 1.327 GB, free: 12.76 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: 7 (edge1.y,$whenCondition3,$whenCondition1,$whenCondition2,booPul.y,edge1.u,triggeredSampler.y) * Number of discrete states: 1 (edge1.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.000844/0.413, allocations: 0.7508 MB / 1.328 GB, free: 11.98 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0004551/0.4134, allocations: 159.3 kB / 1.328 GB, free: 11.82 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.4134, allocations: 0 / 1.328 GB, free: 11.82 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001422/0.4136, allocations: 43.91 kB / 1.328 GB, free: 11.77 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003185/0.4139, allocations: 20.11 kB / 1.328 GB, free: 11.75 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002502/0.4164, allocations: 1.694 MB / 1.329 GB, free: 9.941 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000362/0.4168, allocations: 0.6924 MB / 1.33 GB, free: 9.223 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.547e-05/0.4168, allocations: 0 / 1.33 GB, free: 9.223 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.883e-05/0.4168, allocations: 23.42 kB / 1.33 GB, free: 9.199 MB / 1.029 GB Notification: Performance of SimCode: time 6.41e-07/0.4168, allocations: 4 kB / 1.33 GB, free: 9.195 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02657/0.4434, allocations: 2.558 MB / 1.333 GB, free: 6.738 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.09/8.533, allocations: 6.594 kB / 1.333 GB, free: 6.734 MB / 1.029 GB " [Timeout remaining time 291] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Edge_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_CDL_Logical_Validation_Edge_fmu --startTime=0 --stopTime=5 --stepSize=0.002 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_OBC_CDL_Logical_Validation_Edge.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Edge_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Logical_Validation_Edge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.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.294622510904446]