Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.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.OnOffController,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_OnOffController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_OnOffController",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.001854/0.001855, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.002439/0.002439, allocations: 193.7 kB / 16.25 MB, free: 6.629 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.69/1.69, allocations: 222.9 MB / 239.9 MB, free: 4.555 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.434/2.434, allocations: 390.2 MB / 0.6644 GB, free: 0.5586 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001632/0.001632, allocations: 59.91 kB / 0.8122 GB, free: 14.67 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8519/0.8536, allocations: 140.4 MB / 0.9492 GB, free: 9.094 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController): time 0.001869/0.8555, allocations: 0.7679 MB / 0.95 GB, free: 8.504 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0006947/0.8562, allocations: 0.8282 MB / 0.9508 GB, free: 7.828 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.534e-05/0.8562, allocations: 4 kB / 0.9508 GB, free: 7.824 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.337e-05/0.8563, allocations: 3.938 kB / 0.9508 GB, free: 7.82 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.795e-05/0.8563, allocations: 1.375 kB / 0.9508 GB, free: 7.82 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001503/0.8565, allocations: 14.73 kB / 0.9508 GB, free: 7.809 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.059e-05/0.8566, allocations: 45.72 kB / 0.9509 GB, free: 7.781 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001037/0.8567, allocations: 17.47 kB / 0.9509 GB, free: 7.77 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.066e-05/0.8568, allocations: 18.86 kB / 0.9509 GB, free: 7.758 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.67e-05/0.8568, allocations: 21.36 kB / 0.9509 GB, free: 7.742 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2e-05/0.8568, allocations: 6.688 kB / 0.9509 GB, free: 7.738 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.144e-05/0.8568, allocations: 8.125 kB / 0.9509 GB, free: 7.734 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.534e-05/0.8569, allocations: 9.359 kB / 0.951 GB, free: 7.727 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.792e-05/0.8569, allocations: 23.98 kB / 0.951 GB, free: 7.707 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 8.411e-05/0.857, allocations: 44.11 kB / 0.951 GB, free: 7.672 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.107e-06/0.857, allocations: 0 / 0.951 GB, free: 7.672 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.423e-06/0.857, allocations: 0 / 0.951 GB, free: 7.672 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 8.917e-06/0.857, allocations: 0 / 0.951 GB, free: 7.672 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.0005572/0.8576, allocations: 388.4 kB / 0.9514 GB, free: 7.277 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.219e-05/0.8576, allocations: 9.625 kB / 0.9514 GB, free: 7.277 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.649e-05/0.8577, allocations: 32.12 kB / 0.9514 GB, free: 7.238 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.622e-05/0.8577, allocations: 3.688 kB / 0.9514 GB, free: 7.238 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.998e-05/0.8578, allocations: 165.7 kB / 0.9516 GB, free: 7.039 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.357e-06/0.8578, allocations: 7.125 kB / 0.9516 GB, free: 7.035 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.305e-05/0.8578, allocations: 5.75 kB / 0.9516 GB, free: 7.031 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001779/0.858, allocations: 69.55 kB / 0.9517 GB, free: 6.977 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.077e-06/0.858, allocations: 7.875 kB / 0.9517 GB, free: 6.969 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.648e-06/0.858, allocations: 0 / 0.9517 GB, free: 6.969 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.488e-06/0.858, allocations: 1.375 kB / 0.9517 GB, free: 6.969 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001716/0.8582, allocations: 44.95 kB / 0.9517 GB, free: 6.949 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004489/0.8587, allocations: 300.3 kB / 0.952 GB, free: 6.633 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002344/0.8589, allocations: 55.64 kB / 0.9521 GB, free: 6.59 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.02e-05/0.859, allocations: 28.75 kB / 0.9521 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.822e-05/0.859, allocations: 3.938 kB / 0.9521 GB, free: 6.566 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.163e-05/0.8591, allocations: 35.86 kB / 0.9521 GB, free: 6.523 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.102e-06/0.8591, allocations: 0 / 0.9521 GB, free: 6.523 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0003358/0.8594, allocations: 89.39 kB / 0.9522 GB, free: 6.465 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.786e-05/0.8594, allocations: 52.84 kB / 0.9523 GB, free: 6.402 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.766e-05/0.8595, allocations: 117.2 kB / 0.9524 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.039e-05/0.8595, allocations: 35.36 kB / 0.9524 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.363e-05/0.8595, allocations: 89.58 kB / 0.9525 GB, free: 6.16 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.623e-05/0.8596, allocations: 9.234 kB / 0.9525 GB, free: 6.152 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.062e-05/0.8596, allocations: 16.66 kB / 0.9525 GB, free: 6.133 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.936e-05/0.8596, allocations: 317.4 kB / 0.9528 GB, free: 5.816 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.699e-05/0.8597, allocations: 23.34 kB / 0.9528 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.345e-05/0.8598, allocations: 23.39 kB / 0.9529 GB, free: 5.793 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001441/0.86, allocations: 47.03 kB / 0.9529 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.86, allocations: 0 / 0.9529 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001866/0.8602, allocations: 82.19 kB / 0.953 GB, free: 5.707 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.257e-05/0.8602, allocations: 5.125 kB / 0.953 GB, free: 5.707 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.838e-06/0.8602, allocations: 0 / 0.953 GB, free: 5.707 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.466e-05/0.8602, allocations: 8 kB / 0.953 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.527e-05/0.8603, allocations: 10.42 kB / 0.953 GB, free: 5.695 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.28e-06/0.8603, allocations: 1.219 kB / 0.953 GB, free: 5.695 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001044/0.8604, allocations: 13.16 kB / 0.953 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.514e-06/0.8604, allocations: 1.188 kB / 0.953 GB, free: 5.691 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (onOffController.y,$PRE.onOffController.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * 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 5.225e-05/0.8605, allocations: 116.2 kB / 0.9531 GB, free: 5.57 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.525e-05/0.8605, allocations: 9.703 kB / 0.9531 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002207/0.8607, allocations: 83.11 kB / 0.9532 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.765e-06/0.8607, allocations: 0 / 0.9532 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.8607, allocations: 5.188 kB / 0.9532 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.374e-06/0.8607, allocations: 0 / 0.9532 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001259/0.8609, allocations: 174 kB / 0.9534 GB, free: 5.281 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.8609, allocations: 0 / 0.9534 GB, free: 5.281 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.906e-05/0.8609, allocations: 9.578 kB / 0.9534 GB, free: 5.277 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.374e-06/0.861, allocations: 1.656 kB / 0.9534 GB, free: 5.277 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.227e-06/0.861, allocations: 4 kB / 0.9534 GB, free: 5.273 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.861, allocations: 0 / 0.9534 GB, free: 5.273 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.861, allocations: 1.219 kB / 0.9534 GB, free: 5.273 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002051/0.8612, allocations: 169.6 kB / 0.9536 GB, free: 5.117 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.246e-05/0.8612, allocations: 87.17 kB / 0.9537 GB, free: 5.016 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.752e-05/0.8612, allocations: 0 / 0.9537 GB, free: 5.016 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001343/0.8614, allocations: 21.16 kB / 0.9537 GB, free: 5.004 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.013e-05/0.8614, allocations: 6.891 kB / 0.9537 GB, free: 5 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.729e-06/0.8614, allocations: 1.469 kB / 0.9537 GB, free: 5 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.115e-05/0.8615, allocations: 95 kB / 0.9538 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8615, allocations: 0 / 0.9538 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002186/0.8617, allocations: 10.19 kB / 0.9538 GB, free: 4.91 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: 1 (onOffController.y) * Number of discrete states: 1 (onOffController.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0003845/0.8621, allocations: 0.7038 MB / 0.9545 GB, free: 4.227 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002214/0.8623, allocations: 51.67 kB / 0.9545 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.8623, allocations: 0 / 0.9545 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001022/0.8625, allocations: 25.14 kB / 0.9545 GB, free: 4.191 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003017/0.8628, allocations: 12.02 kB / 0.9546 GB, free: 4.184 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00126/0.864, allocations: 1.336 MB / 0.9559 GB, free: 2.906 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001484/0.8642, allocations: 0.6876 MB / 0.9565 GB, free: 2.199 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.782e-05/0.8642, allocations: 6.609 kB / 0.9565 GB, free: 2.195 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.883e-05/0.8643, allocations: 17.03 kB / 0.9566 GB, free: 2.18 MB / 0.7169 GB Notification: Performance of SimCode: time 2.71e-07/0.8643, allocations: 0 / 0.9566 GB, free: 2.18 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01098/0.8753, allocations: 1.573 MB / 0.9581 GB, free: 1.402 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001472/0.8755, allocations: 219.5 kB / 0.9583 GB, free: 1.145 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.824/2.7, allocations: 1.312 kB / 0.9583 GB, free: 1.145 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_OnOffController_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_OnOffController.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Validation_OnOffController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches