Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Or3.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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.Or3,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Or3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Or3,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Or3",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.0009121/0.0009122, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.008762/0.008762, allocations: 170.9 kB / 16.27 MB, free: 6.648 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.424/1.424, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.365/2.365, allocations: 390.9 MB / 0.6664 GB, free: 2.309 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003964/0.0003964, allocations: 12 kB / 0.8161 GB, free: 13.11 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8041/0.8045, allocations: 142.4 MB / 0.9552 GB, free: 7.723 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Or3): time 0.000728/0.8053, allocations: 432 kB / 0.9556 GB, free: 7.398 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001367/0.8066, allocations: 1.288 MB / 0.9569 GB, free: 6.371 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.436e-05/0.8067, allocations: 0 / 0.9569 GB, free: 6.371 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.731e-05/0.8067, allocations: 5.125 kB / 0.9569 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.272e-05/0.8068, allocations: 20.94 kB / 0.9569 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007107/0.8075, allocations: 281.9 kB / 0.9572 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002391/0.8078, allocations: 227.2 kB / 0.9574 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001285/0.8079, allocations: 15.05 kB / 0.9574 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001309/0.808, allocations: 90.05 kB / 0.9575 GB, free: 6 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001216/0.8082, allocations: 72.3 kB / 0.9575 GB, free: 5.949 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.179e-05/0.8082, allocations: 13.31 kB / 0.9576 GB, free: 5.949 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.794e-05/0.8083, allocations: 26.23 kB / 0.9576 GB, free: 5.941 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.303e-05/0.8083, allocations: 11.53 kB / 0.9576 GB, free: 5.934 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001094/0.8085, allocations: 96.84 kB / 0.9577 GB, free: 5.859 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002315/0.8087, allocations: 207.6 kB / 0.9579 GB, free: 5.707 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.8087, allocations: 0 / 0.9579 GB, free: 5.707 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.114e-06/0.8087, allocations: 0 / 0.9579 GB, free: 5.707 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.428e-06/0.8087, allocations: 1.438 kB / 0.9579 GB, free: 5.707 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.0004779/0.8092, allocations: 462.6 kB / 0.9583 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.155e-05/0.8093, allocations: 9.688 kB / 0.9583 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.77e-05/0.8093, allocations: 35.83 kB / 0.9584 GB, free: 5.172 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.353e-05/0.8094, allocations: 16.25 kB / 0.9584 GB, free: 5.168 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001084/0.8095, allocations: 172.3 kB / 0.9585 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.426e-05/0.8095, allocations: 11.28 kB / 0.9586 GB, free: 4.961 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.553e-05/0.8096, allocations: 13.84 kB / 0.9586 GB, free: 4.961 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001387/0.8097, allocations: 70.61 kB / 0.9586 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.496e-06/0.8097, allocations: 0 / 0.9586 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.33e-05/0.8097, allocations: 1.844 kB / 0.9586 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.103e-06/0.8098, allocations: 7.984 kB / 0.9586 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.48e-05/0.8098, allocations: 18.75 kB / 0.9587 GB, free: 4.883 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005052/0.8103, allocations: 413.8 kB / 0.9591 GB, free: 4.477 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 5.807e-05/0.8104, allocations: 40.19 kB / 0.9591 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.146e-05/0.8104, allocations: 17.11 kB / 0.9591 GB, free: 4.426 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.107e-05/0.8105, allocations: 5.375 kB / 0.9591 GB, free: 4.422 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001391/0.8106, allocations: 96.31 kB / 0.9592 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=10): time 1.322e-06/0.8106, allocations: 1.375 kB / 0.9592 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10): time 0.0002761/0.8109, allocations: 139.4 kB / 0.9593 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.539e-05/0.8109, allocations: 54.16 kB / 0.9594 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.386e-05/0.811, allocations: 143.4 kB / 0.9595 GB, free: 4.074 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.58e-05/0.8111, allocations: 31.2 kB / 0.9596 GB, free: 4.043 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.671e-05/0.8111, allocations: 107.1 kB / 0.9597 GB, free: 3.941 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.766e-05/0.8111, allocations: 19.84 kB / 0.9597 GB, free: 3.926 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.289e-05/0.8112, allocations: 28.7 kB / 0.9597 GB, free: 3.902 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.379e-05/0.8113, allocations: 325.5 kB / 0.96 GB, free: 3.578 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001721/0.8114, allocations: 85.33 kB / 0.9601 GB, free: 3.539 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001805/0.8116, allocations: 135.5 kB / 0.9602 GB, free: 3.438 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002269/0.8119, allocations: 234.1 kB / 0.9605 GB, free: 3.227 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.8119, allocations: 1.375 kB / 0.9605 GB, free: 3.227 MB / 0.7169 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005005/0.8124, allocations: 373.9 kB / 0.9608 GB, free: 2.984 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 4.856e-05/0.8124, allocations: 100.6 kB / 0.9609 GB, free: 2.879 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.8124, allocations: 5.141 kB / 0.9609 GB, free: 2.875 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.37e-05/0.8125, allocations: 2.625 kB / 0.9609 GB, free: 2.875 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.224e-05/0.8125, allocations: 4.125 kB / 0.9609 GB, free: 2.875 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.342e-06/0.8125, allocations: 5.156 kB / 0.9609 GB, free: 2.871 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005627/0.8131, allocations: 120.7 kB / 0.961 GB, free: 2.828 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.223e-05/0.8131, allocations: 16.67 kB / 0.9611 GB, free: 2.824 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,booPul3.y,$PRE.booPul3.y,or1.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 0.0001003/0.8132, allocations: 129.7 kB / 0.9612 GB, free: 2.699 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.552e-05/0.8132, allocations: 8.219 kB / 0.9612 GB, free: 2.695 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.812e-05/0.8133, allocations: 9.781 kB / 0.9612 GB, free: 2.688 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.8133, allocations: 5.531 kB / 0.9612 GB, free: 2.684 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.8133, allocations: 0.75 kB / 0.9612 GB, free: 2.684 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.8133, allocations: 3.984 kB / 0.9612 GB, free: 2.68 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001086/0.8134, allocations: 194 kB / 0.9614 GB, free: 2.457 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.8134, allocations: 0 / 0.9614 GB, free: 2.457 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.061e-05/0.8134, allocations: 5.969 kB / 0.9614 GB, free: 2.453 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/0.8135, allocations: 0.9688 kB / 0.9614 GB, free: 2.453 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.153e-05/0.8135, allocations: 9.953 kB / 0.9614 GB, free: 2.445 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.8135, allocations: 4 kB / 0.9614 GB, free: 2.441 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.8135, allocations: 1.25 kB / 0.9614 GB, free: 2.441 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000167/0.8137, allocations: 146.6 kB / 0.9615 GB, free: 2.328 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.465e-05/0.8137, allocations: 84.02 kB / 0.9616 GB, free: 2.23 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.688e-05/0.8137, allocations: 5.047 kB / 0.9616 GB, free: 2.227 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.446e-05/0.8137, allocations: 1 kB / 0.9616 GB, free: 2.227 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.057e-05/0.8138, allocations: 12.39 kB / 0.9616 GB, free: 2.219 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.168e-06/0.8138, allocations: 3 kB / 0.9617 GB, free: 2.219 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.385e-05/0.8139, allocations: 95.55 kB / 0.9617 GB, free: 2.137 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.8139, allocations: 0 / 0.9617 GB, free: 2.137 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002589/0.8141, allocations: 51 kB / 0.9618 GB, free: 2.125 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,or1.y,booPul3.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.0004426/0.8146, allocations: 0.6789 MB / 0.9625 GB, free: 1.484 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004466/0.815, allocations: 359.4 kB / 0.9628 GB, free: 1.203 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.815, allocations: 1.281 kB / 0.9628 GB, free: 1.203 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 6.856e-05/0.8151, allocations: 43.11 kB / 0.9628 GB, free: 1.184 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002677/0.8154, allocations: 24.72 kB / 0.9629 GB, free: 1.172 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002184/0.8176, allocations: 2.068 MB / 0.9649 GB, free: 15.42 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000246/0.8178, allocations: 0.7006 MB / 0.9656 GB, free: 14.71 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 3.638e-05/0.8179, allocations: 13.83 kB / 0.9656 GB, free: 14.7 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.896e-05/0.8179, allocations: 29.2 kB / 0.9656 GB, free: 14.68 MB / 0.7325 GB Notification: Performance of SimCode: time 3.1e-07/0.8179, allocations: 3.938 kB / 0.9656 GB, free: 14.68 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01431/0.8323, allocations: 3.498 MB / 0.969 GB, free: 12.96 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001761/0.8325, allocations: 200.8 kB / 0.9692 GB, free: 12.71 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.874/2.706, allocations: 1.062 kB / 0.9692 GB, free: 12.71 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Or3.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Or3.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Or3.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Or3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Or3_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Or3_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Or3.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Or3.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Or3_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Validation_Or3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Or3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches