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.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.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.001547/0.001547, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001836/0.001836, allocations: 195.1 kB / 16.14 MB, free: 6.645 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.422/1.422, allocations: 222.9 MB / 239.8 MB, free: 4.535 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.429/2.429, allocations: 390.2 MB / 0.6643 GB, free: 0.6406 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001504/0.001504, allocations: 63.91 kB / 0.812 GB, free: 14.8 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8064/0.8079, allocations: 140.4 MB / 0.9491 GB, free: 9.125 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.002396/0.8103, allocations: 0.7518 MB / 0.9498 GB, free: 8.551 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001962/0.8123, allocations: 1.305 MB / 0.9511 GB, free: 7.508 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.32e-05/0.8124, allocations: 1.375 kB / 0.9511 GB, free: 7.508 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.808e-05/0.8124, allocations: 0 / 0.9511 GB, free: 7.508 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.203e-05/0.8125, allocations: 13.23 kB / 0.9511 GB, free: 7.496 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006692/0.8132, allocations: 294.8 kB / 0.9514 GB, free: 7.312 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002134/0.8134, allocations: 220.2 kB / 0.9516 GB, free: 7.199 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001114/0.8135, allocations: 14.98 kB / 0.9516 GB, free: 7.188 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001336/0.8137, allocations: 90.64 kB / 0.9517 GB, free: 7.145 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001331/0.8138, allocations: 76.05 kB / 0.9518 GB, free: 7.09 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.475e-05/0.8138, allocations: 12.72 kB / 0.9518 GB, free: 7.09 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001098/0.814, allocations: 26.86 kB / 0.9518 GB, free: 7.082 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.684e-05/0.814, allocations: 17.33 kB / 0.9518 GB, free: 7.07 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001154/0.8141, allocations: 79.23 kB / 0.9519 GB, free: 7.02 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002677/0.8144, allocations: 203.5 kB / 0.9521 GB, free: 6.871 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.451e-06/0.8144, allocations: 0 / 0.9521 GB, free: 6.871 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.453e-06/0.8144, allocations: 0 / 0.9521 GB, free: 6.871 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.843e-06/0.8144, allocations: 0 / 0.9521 GB, free: 6.871 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.0006067/0.815, allocations: 0.4915 MB / 0.9526 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.846e-05/0.8151, allocations: 9.469 kB / 0.9526 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.897e-05/0.8151, allocations: 35.7 kB / 0.9526 GB, free: 6.32 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.85e-05/0.8152, allocations: 16.33 kB / 0.9526 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000103/0.8153, allocations: 176.4 kB / 0.9528 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.33e-05/0.8154, allocations: 15.45 kB / 0.9528 GB, free: 6.102 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.841e-05/0.8154, allocations: 16.88 kB / 0.9528 GB, free: 6.098 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001374/0.8156, allocations: 63.56 kB / 0.9529 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.566e-06/0.8156, allocations: 0 / 0.9529 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.232e-05/0.8156, allocations: 0.8438 kB / 0.9529 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.881e-06/0.8156, allocations: 1.25 kB / 0.9529 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.445e-05/0.8157, allocations: 22.77 kB / 0.9529 GB, free: 6.031 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005582/0.8162, allocations: 410.2 kB / 0.9533 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 6.867e-05/0.8163, allocations: 44.44 kB / 0.9533 GB, free: 5.586 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.763e-05/0.8164, allocations: 16.58 kB / 0.9533 GB, free: 5.574 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.152e-05/0.8164, allocations: 1.156 kB / 0.9533 GB, free: 5.574 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001965/0.8166, allocations: 105 kB / 0.9534 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=10): time 1.243e-06/0.8166, allocations: 4 kB / 0.9535 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10): time 0.0003226/0.8169, allocations: 142.6 kB / 0.9536 GB, free: 5.406 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.207e-05/0.817, allocations: 52.84 kB / 0.9536 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000107/0.8171, allocations: 139 kB / 0.9538 GB, free: 5.219 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.54e-05/0.8171, allocations: 35.17 kB / 0.9538 GB, free: 5.184 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.57e-05/0.8172, allocations: 103.3 kB / 0.9539 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.033e-05/0.8172, allocations: 15.91 kB / 0.9539 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000122/0.8173, allocations: 66.58 kB / 0.954 GB, free: 5.035 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.152e-05/0.8174, allocations: 329.7 kB / 0.9543 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001984/0.8176, allocations: 89.41 kB / 0.9544 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002184/0.8179, allocations: 128.6 kB / 0.9545 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002808/0.8181, allocations: 240.9 kB / 0.9547 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.8182, allocations: 1.188 kB / 0.9547 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006059/0.8188, allocations: 369.8 kB / 0.9551 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 7.093e-05/0.8188, allocations: 110.4 kB / 0.9552 GB, free: 4 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.307e-06/0.8189, allocations: 1.156 kB / 0.9552 GB, free: 4 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.878e-05/0.8189, allocations: 1.969 kB / 0.9552 GB, free: 4 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.8e-05/0.8189, allocations: 7.969 kB / 0.9552 GB, free: 3.996 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.408e-06/0.8189, allocations: 2.062 kB / 0.9552 GB, free: 3.996 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005131/0.8194, allocations: 91.42 kB / 0.9553 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.472e-05/0.8195, allocations: 17.89 kB / 0.9553 GB, free: 3.949 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 0.0001053/0.8196, allocations: 128.8 kB / 0.9554 GB, free: 3.824 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.682e-05/0.8196, allocations: 8.406 kB / 0.9554 GB, free: 3.82 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.995e-05/0.8197, allocations: 13.55 kB / 0.9555 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.845e-06/0.8197, allocations: 1.344 kB / 0.9555 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.144e-06/0.8197, allocations: 1.344 kB / 0.9555 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.8197, allocations: 0 / 0.9555 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001189/0.8198, allocations: 189.9 kB / 0.9556 GB, free: 3.59 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.8198, allocations: 3.938 kB / 0.9556 GB, free: 3.586 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.15e-05/0.8198, allocations: 5.641 kB / 0.9556 GB, free: 3.582 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.385e-06/0.8198, allocations: 1.312 kB / 0.9556 GB, free: 3.582 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.23e-05/0.8199, allocations: 1.688 kB / 0.9556 GB, free: 3.582 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.8199, allocations: 3.938 kB / 0.9557 GB, free: 3.578 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.8199, allocations: 1.172 kB / 0.9557 GB, free: 3.578 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000181/0.8201, allocations: 147.8 kB / 0.9558 GB, free: 3.465 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.828e-05/0.8201, allocations: 86.55 kB / 0.9559 GB, free: 3.363 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.85e-05/0.8201, allocations: 1.438 kB / 0.9559 GB, free: 3.363 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.234e-05/0.8201, allocations: 1.25 kB / 0.9559 GB, free: 3.363 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.02e-05/0.8202, allocations: 16.02 kB / 0.9559 GB, free: 3.352 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.181e-05/0.8202, allocations: 7.859 kB / 0.9559 GB, free: 3.348 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 5.01e-05/0.8203, allocations: 99.36 kB / 0.956 GB, free: 3.262 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8203, allocations: 0 / 0.956 GB, free: 3.262 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002625/0.8205, allocations: 47.64 kB / 0.956 GB, free: 3.254 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.0003911/0.8209, allocations: 0.6784 MB / 0.9567 GB, free: 2.613 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004306/0.8214, allocations: 372.3 kB / 0.9571 GB, free: 2.32 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.8214, allocations: 0 / 0.9571 GB, free: 2.32 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 6.156e-05/0.8214, allocations: 38.8 kB / 0.9571 GB, free: 2.305 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002572/0.8217, allocations: 25.58 kB / 0.9571 GB, free: 2.293 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002057/0.8238, allocations: 2.068 MB / 0.9591 GB, free: 0.5547 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001896/0.824, allocations: 0.7034 MB / 0.9598 GB, free: 15.84 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 3.511e-05/0.824, allocations: 9.922 kB / 0.9598 GB, free: 15.84 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.938e-05/0.8241, allocations: 28.92 kB / 0.9599 GB, free: 15.81 MB / 0.7325 GB Notification: Performance of SimCode: time 4.21e-07/0.8241, allocations: 0 / 0.9599 GB, free: 15.81 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01648/0.8406, allocations: 3.556 MB / 0.9633 GB, free: 14.02 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000327/0.8409, allocations: 199.5 kB / 0.9635 GB, free: 13.76 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.778/2.619, allocations: 3.625 kB / 0.9635 GB, free: 13.76 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