Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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.Logical.Validation.Switch,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001519/0.001519, allocations: 115.3 kB / 15.34 MB, free: 0.5156 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001766/0.001766, allocations: 190.9 kB / 16.25 MB, free: 6.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.443/1.443, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.531/2.531, allocations: 390.2 MB / 0.6644 GB, free: 0.5508 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001371/0.001371, allocations: 63.91 kB / 0.8122 GB, free: 14.67 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5999/0.6013, allocations: 140.4 MB / 0.9493 GB, free: 9.121 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.001859/0.6032, allocations: 0.7596 MB / 0.95 GB, free: 8.539 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001306/0.6045, allocations: 1.259 MB / 0.9512 GB, free: 7.523 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.897e-05/0.6046, allocations: 1.188 kB / 0.9512 GB, free: 7.523 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.402e-05/0.6047, allocations: 3.938 kB / 0.9512 GB, free: 7.52 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.551e-05/0.6048, allocations: 10.36 kB / 0.9512 GB, free: 7.512 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000768/0.6055, allocations: 292.5 kB / 0.9515 GB, free: 7.332 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002497/0.6058, allocations: 278.9 kB / 0.9518 GB, free: 7.18 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.935e-05/0.6059, allocations: 10.81 kB / 0.9518 GB, free: 7.172 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001349/0.606, allocations: 99.98 kB / 0.9519 GB, free: 7.121 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001081/0.6061, allocations: 75.36 kB / 0.952 GB, free: 7.066 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 5.076e-05/0.6062, allocations: 23.06 kB / 0.952 GB, free: 7.066 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.324e-05/0.6063, allocations: 36.17 kB / 0.952 GB, free: 7.059 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.121e-05/0.6063, allocations: 17.67 kB / 0.952 GB, free: 7.047 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 8.8e-05/0.6064, allocations: 83.27 kB / 0.9521 GB, free: 6.992 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000205/0.6066, allocations: 219 kB / 0.9523 GB, free: 6.828 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.6066, allocations: 1.188 kB / 0.9523 GB, free: 6.828 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.853e-06/0.6066, allocations: 3.938 kB / 0.9523 GB, free: 6.824 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.141e-06/0.6066, allocations: 3.938 kB / 0.9523 GB, free: 6.82 MB / 0.7169 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.0004659/0.6071, allocations: 0.4903 MB / 0.9528 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.961e-05/0.6072, allocations: 9.594 kB / 0.9528 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.769e-05/0.6072, allocations: 35.89 kB / 0.9529 GB, free: 6.27 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.033e-05/0.6073, allocations: 11.97 kB / 0.9529 GB, free: 6.27 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001003/0.6074, allocations: 172 kB / 0.953 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.041e-05/0.6074, allocations: 14.78 kB / 0.953 GB, free: 6.059 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.068e-05/0.6075, allocations: 17.36 kB / 0.9531 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001174/0.6076, allocations: 63.12 kB / 0.9531 GB, free: 6 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.194e-06/0.6076, allocations: 0 / 0.9531 GB, free: 6 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.547e-06/0.6076, allocations: 0.9688 kB / 0.9531 GB, free: 6 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.709e-06/0.6076, allocations: 1.844 kB / 0.9531 GB, free: 6 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.74e-05/0.6077, allocations: 25.55 kB / 0.9531 GB, free: 5.984 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000429/0.6081, allocations: 418.6 kB / 0.9535 GB, free: 5.574 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 5.436e-05/0.6082, allocations: 36.09 kB / 0.9536 GB, free: 5.539 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.992e-05/0.6082, allocations: 17.23 kB / 0.9536 GB, free: 5.527 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 9.097e-06/0.6082, allocations: 0 / 0.9536 GB, free: 5.527 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001355/0.6084, allocations: 97.19 kB / 0.9537 GB, free: 5.449 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=10): time 1.503e-06/0.6084, allocations: 1.219 kB / 0.9537 GB, free: 5.449 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10): time 0.0002769/0.6087, allocations: 141 kB / 0.9538 GB, free: 5.371 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.702e-05/0.6087, allocations: 58.06 kB / 0.9539 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.311e-05/0.6088, allocations: 138.7 kB / 0.954 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.295e-05/0.6088, allocations: 34.66 kB / 0.954 GB, free: 5.145 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.223e-05/0.6089, allocations: 104.2 kB / 0.9541 GB, free: 5.047 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.497e-05/0.6089, allocations: 14.78 kB / 0.9542 GB, free: 5.035 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001129/0.609, allocations: 67.17 kB / 0.9542 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.884e-05/0.609, allocations: 324.7 kB / 0.9545 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001671/0.6092, allocations: 94.31 kB / 0.9546 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001755/0.6094, allocations: 138 kB / 0.9548 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002113/0.6096, allocations: 232.8 kB / 0.955 GB, free: 4.312 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.125e-06/0.6096, allocations: 1.219 kB / 0.955 GB, free: 4.312 MB / 0.7169 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005161/0.6101, allocations: 376.5 kB / 0.9553 GB, free: 4.066 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 4.743e-05/0.6102, allocations: 100.5 kB / 0.9554 GB, free: 3.961 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.733e-06/0.6102, allocations: 2.25 kB / 0.9554 GB, free: 3.961 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.387e-05/0.6102, allocations: 6.094 kB / 0.9554 GB, free: 3.957 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.051e-05/0.6103, allocations: 2.938 kB / 0.9554 GB, free: 3.957 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.27e-06/0.6103, allocations: 2.875 kB / 0.9554 GB, free: 3.957 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005003/0.6108, allocations: 83.98 kB / 0.9555 GB, free: 3.922 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.069e-05/0.6108, allocations: 20.61 kB / 0.9555 GB, free: 3.914 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,logicalSwitch.y,booPul3.y,$PRE.booPul3.y,booPul2.y,$PRE.booPul2.y,booPul1.y,$PRE.booPul1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 3 * 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 8.549e-05/0.6109, allocations: 137.7 kB / 0.9557 GB, free: 3.781 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.755e-05/0.6109, allocations: 8.438 kB / 0.9557 GB, free: 3.777 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.235e-05/0.611, allocations: 9.547 kB / 0.9557 GB, free: 3.77 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.611, allocations: 1.031 kB / 0.9557 GB, free: 3.77 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.611, allocations: 5.094 kB / 0.9557 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.611, allocations: 0 / 0.9557 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.352e-05/0.6111, allocations: 193.6 kB / 0.9559 GB, free: 3.543 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.845e-06/0.6111, allocations: 5.141 kB / 0.9559 GB, free: 3.539 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.213e-05/0.6111, allocations: 5.094 kB / 0.9559 GB, free: 3.535 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.6111, allocations: 5.062 kB / 0.9559 GB, free: 3.531 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.146e-06/0.6111, allocations: 1.625 kB / 0.9559 GB, free: 3.531 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.893e-06/0.6111, allocations: 0.9375 kB / 0.9559 GB, free: 3.531 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.6111, allocations: 0 / 0.9559 GB, free: 3.531 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001483/0.6113, allocations: 144.1 kB / 0.956 GB, free: 3.422 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.955e-05/0.6113, allocations: 83.64 kB / 0.9561 GB, free: 3.324 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.721e-05/0.6113, allocations: 1.375 kB / 0.9561 GB, free: 3.324 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.453e-05/0.6114, allocations: 5.438 kB / 0.9561 GB, free: 3.32 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.375e-05/0.6114, allocations: 10.86 kB / 0.9561 GB, free: 3.312 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.005e-06/0.6114, allocations: 7.875 kB / 0.9561 GB, free: 3.309 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.629e-05/0.6115, allocations: 101 kB / 0.9562 GB, free: 3.223 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6115, allocations: 96 / 0.9562 GB, free: 3.223 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002604/0.6117, allocations: 51.3 kB / 0.9563 GB, free: 3.211 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booPul1.y,booPul2.y,booPul3.y,logicalSwitch.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0002994/0.612, allocations: 0.679 MB / 0.957 GB, free: 2.57 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003711/0.6124, allocations: 369.2 kB / 0.9573 GB, free: 2.281 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.6124, allocations: 0 / 0.9573 GB, free: 2.281 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 5.622e-05/0.6125, allocations: 34.52 kB / 0.9573 GB, free: 2.27 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000245/0.6127, allocations: 30.61 kB / 0.9574 GB, free: 2.254 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001835/0.6146, allocations: 2.069 MB / 0.9594 GB, free: 0.5117 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001592/0.6148, allocations: 0.7036 MB / 0.9601 GB, free: 15.8 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 3.608e-05/0.6148, allocations: 5.531 kB / 0.9601 GB, free: 15.8 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.667e-05/0.6149, allocations: 29.2 kB / 0.9601 GB, free: 15.77 MB / 0.7325 GB Notification: Performance of SimCode: time 3.3e-07/0.6149, allocations: 3.938 kB / 0.9601 GB, free: 15.77 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04642/0.6613, allocations: 3.696 MB / 0.9637 GB, free: 13.91 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001968/0.6615, allocations: 207.7 kB / 0.9639 GB, free: 13.65 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.941/2.602, allocations: 0 / 0.9639 GB, free: 13.65 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Switch_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Switch.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches