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.001695/0.001695, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002431/0.002431, allocations: 192.5 kB / 16.53 MB, free: 6.391 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.372/1.372, allocations: 222.9 MB / 240.2 MB, free: 4.426 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.401/2.401, allocations: 390.3 MB / 0.6647 GB, free: 440 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001963/0.001963, allocations: 63.91 kB / 0.8127 GB, free: 14.34 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7118/0.7138, allocations: 140.4 MB / 0.9497 GB, free: 9.172 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.002186/0.7161, allocations: 0.7026 MB / 0.9504 GB, free: 8.629 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00135/0.7175, allocations: 1.266 MB / 0.9517 GB, free: 7.605 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.102e-05/0.7175, allocations: 4 kB / 0.9517 GB, free: 7.602 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.908e-05/0.7176, allocations: 7.875 kB / 0.9517 GB, free: 7.594 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.844e-05/0.7176, allocations: 18.47 kB / 0.9517 GB, free: 7.578 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007319/0.7184, allocations: 296.7 kB / 0.952 GB, free: 7.387 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.000262/0.7187, allocations: 278.1 kB / 0.9522 GB, free: 7.234 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001126/0.7188, allocations: 16.48 kB / 0.9522 GB, free: 7.223 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001141/0.7189, allocations: 99.33 kB / 0.9523 GB, free: 7.172 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001203/0.719, allocations: 83.14 kB / 0.9524 GB, free: 7.109 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 5.224e-05/0.7191, allocations: 23.25 kB / 0.9524 GB, free: 7.109 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.616e-05/0.7192, allocations: 36.8 kB / 0.9525 GB, free: 7.102 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.598e-05/0.7192, allocations: 12.12 kB / 0.9525 GB, free: 7.094 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001044/0.7193, allocations: 83.17 kB / 0.9526 GB, free: 7.039 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002504/0.7196, allocations: 215.1 kB / 0.9528 GB, free: 6.879 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.7196, allocations: 1.312 kB / 0.9528 GB, free: 6.879 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.393e-06/0.7196, allocations: 0 / 0.9528 GB, free: 6.879 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.25e-06/0.7196, allocations: 0 / 0.9528 GB, free: 6.879 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.0005032/0.7201, allocations: 497.5 kB / 0.9532 GB, free: 6.375 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.427e-05/0.7202, allocations: 14.06 kB / 0.9533 GB, free: 6.371 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.557e-05/0.7202, allocations: 35.72 kB / 0.9533 GB, free: 6.328 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.448e-05/0.7203, allocations: 12.03 kB / 0.9533 GB, free: 6.328 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.394e-05/0.7204, allocations: 178 kB / 0.9535 GB, free: 6.121 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.749e-05/0.7204, allocations: 10.88 kB / 0.9535 GB, free: 6.117 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.006e-05/0.7204, allocations: 17 kB / 0.9535 GB, free: 6.113 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001121/0.7206, allocations: 59.56 kB / 0.9536 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.327e-06/0.7206, allocations: 1.281 kB / 0.9536 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.03e-05/0.7206, allocations: 4 kB / 0.9536 GB, free: 6.059 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.021e-06/0.7206, allocations: 1.094 kB / 0.9536 GB, free: 6.059 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.971e-05/0.7207, allocations: 27.44 kB / 0.9536 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004916/0.7212, allocations: 417.2 kB / 0.954 GB, free: 5.633 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 6.6e-05/0.7212, allocations: 32.39 kB / 0.954 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.852e-05/0.7213, allocations: 25.19 kB / 0.954 GB, free: 5.582 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.168e-05/0.7213, allocations: 0 / 0.954 GB, free: 5.582 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002045/0.7215, allocations: 113.3 kB / 0.9542 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=10): time 1.302e-06/0.7215, allocations: 0 / 0.9542 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10): time 0.000345/0.7219, allocations: 137.5 kB / 0.9543 GB, free: 5.414 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.809e-05/0.7219, allocations: 53.75 kB / 0.9543 GB, free: 5.352 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001039/0.722, allocations: 137.8 kB / 0.9545 GB, free: 5.227 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.526e-05/0.7221, allocations: 35.2 kB / 0.9545 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 7.046e-05/0.7221, allocations: 102.9 kB / 0.9546 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.068e-05/0.7222, allocations: 19.16 kB / 0.9546 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001333/0.7223, allocations: 66.98 kB / 0.9547 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.775e-05/0.7224, allocations: 324.7 kB / 0.955 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001872/0.7226, allocations: 85.89 kB / 0.9551 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002057/0.7228, allocations: 132.7 kB / 0.9552 GB, free: 4.574 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002354/0.723, allocations: 238.2 kB / 0.9554 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.723, allocations: 1.188 kB / 0.9554 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005656/0.7236, allocations: 381.6 kB / 0.9558 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 5.208e-05/0.7237, allocations: 96.22 kB / 0.9559 GB, free: 4.012 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.244e-06/0.7237, allocations: 2.5 kB / 0.9559 GB, free: 4.012 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.812e-05/0.7237, allocations: 3.344 kB / 0.9559 GB, free: 4.012 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.521e-05/0.7237, allocations: 11.86 kB / 0.9559 GB, free: 4.004 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.811e-06/0.7237, allocations: 0 / 0.9559 GB, free: 4.004 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005215/0.7243, allocations: 87.22 kB / 0.956 GB, free: 3.965 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.243e-05/0.7243, allocations: 20.77 kB / 0.956 GB, free: 3.957 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.0001005/0.7244, allocations: 133 kB / 0.9561 GB, free: 3.832 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.723e-05/0.7244, allocations: 8 kB / 0.9561 GB, free: 3.828 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.858e-05/0.7245, allocations: 13.44 kB / 0.9562 GB, free: 3.82 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.7245, allocations: 0 / 0.9562 GB, free: 3.82 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.7245, allocations: 7.938 kB / 0.9562 GB, free: 3.812 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.018e-06/0.7245, allocations: 0 / 0.9562 GB, free: 3.812 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001133/0.7246, allocations: 196.8 kB / 0.9563 GB, free: 3.586 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.7246, allocations: 0 / 0.9563 GB, free: 3.586 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.182e-05/0.7247, allocations: 7 kB / 0.9564 GB, free: 3.582 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.7247, allocations: 0 / 0.9564 GB, free: 3.582 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.097e-05/0.7247, allocations: 5.453 kB / 0.9564 GB, free: 3.578 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.717e-06/0.7247, allocations: 1.469 kB / 0.9564 GB, free: 3.578 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.7247, allocations: 3.938 kB / 0.9564 GB, free: 3.574 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001629/0.7249, allocations: 140.5 kB / 0.9565 GB, free: 3.469 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.03e-05/0.7249, allocations: 82.8 kB / 0.9566 GB, free: 3.371 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.017e-05/0.7249, allocations: 9.766 kB / 0.9566 GB, free: 3.363 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.142e-05/0.7249, allocations: 0 / 0.9566 GB, free: 3.363 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.901e-05/0.725, allocations: 9.422 kB / 0.9566 GB, free: 3.359 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.516e-06/0.725, allocations: 10.09 kB / 0.9566 GB, free: 3.352 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.627e-05/0.725, allocations: 97.03 kB / 0.9567 GB, free: 3.27 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.725, allocations: 1.344 kB / 0.9567 GB, free: 3.27 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002618/0.7253, allocations: 42.53 kB / 0.9567 GB, free: 3.266 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.0004196/0.7257, allocations: 0.6799 MB / 0.9574 GB, free: 2.625 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004775/0.7262, allocations: 364.8 kB / 0.9578 GB, free: 2.34 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.317e-06/0.7262, allocations: 4.375 kB / 0.9578 GB, free: 2.336 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 6.878e-05/0.7263, allocations: 48.08 kB / 0.9578 GB, free: 2.312 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002609/0.7266, allocations: 23.12 kB / 0.9578 GB, free: 2.301 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002028/0.7286, allocations: 2.058 MB / 0.9598 GB, free: 0.5703 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001869/0.7288, allocations: 0.6959 MB / 0.9605 GB, free: 15.86 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 3.854e-05/0.7289, allocations: 10.17 kB / 0.9605 GB, free: 15.86 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.736e-05/0.7289, allocations: 25.12 kB / 0.9605 GB, free: 15.84 MB / 0.7325 GB Notification: Performance of SimCode: time 2.41e-07/0.7289, allocations: 0 / 0.9605 GB, free: 15.84 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02753/0.7565, allocations: 3.779 MB / 0.9642 GB, free: 13.86 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.703/8.46, allocations: 11.23 kB / 0.9642 GB, free: 13.85 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