Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008372/0.0008372, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001029/0.001029, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.903/0.903, allocations: 177.1 MB / 202.8 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 1.743/1.743, allocations: 389 MB / 0.633 GB, free: 12.68 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 3.116e-06/3.116e-06, allocations: 0 / 0.9997 GB, free: 13.49 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.202e-05/2.514e-05, allocations: 4.812 kB / 0.9997 GB, free: 13.49 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.001488/0.001513, allocations: 0.6803 MB / 1 GB, free: 12.81 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.001721/0.003234, allocations: 1.28 MB / 1.002 GB, free: 11.52 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.869e-05/0.003313, allocations: 0 / 1.002 GB, free: 11.52 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 4.596e-05/0.003359, allocations: 11.92 kB / 1.002 GB, free: 11.5 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 0.0001594/0.003518, allocations: 23.8 kB / 1.002 GB, free: 11.48 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.001062/0.00458, allocations: 312.8 kB / 1.002 GB, free: 11.18 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.000297/0.004877, allocations: 259.5 kB / 1.002 GB, free: 10.93 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001253/0.005002, allocations: 20.16 kB / 1.002 GB, free: 10.91 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001472/0.005149, allocations: 139.8 kB / 1.002 GB, free: 10.77 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000135/0.005284, allocations: 75.81 kB / 1.002 GB, free: 10.7 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 3.217e-05/0.005316, allocations: 20 kB / 1.002 GB, free: 10.68 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 6.875e-05/0.005385, allocations: 31.98 kB / 1.002 GB, free: 10.64 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 2.809e-05/0.005413, allocations: 19.97 kB / 1.002 GB, free: 10.62 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 7.624e-05/0.00549, allocations: 79.81 kB / 1.003 GB, free: 10.55 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0002502/0.00574, allocations: 259.4 kB / 1.003 GB, free: 10.29 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.005744, allocations: 0 / 1.003 GB, free: 10.29 MB / 0.9636 GB Notification: Performance of FrontEnd: time 1.182e-06/0.005745, allocations: 0 / 1.003 GB, free: 10.29 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 4.759e-06/0.00575, allocations: 0 / 1.003 GB, free: 10.29 MB / 0.9636 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.0004921/0.006242, allocations: 435.1 kB / 1.003 GB, free: 9.82 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 4.447e-05/0.006286, allocations: 12.75 kB / 1.003 GB, free: 9.809 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.744e-05/0.006314, allocations: 30.75 kB / 1.003 GB, free: 9.77 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.895e-05/0.006372, allocations: 16.89 kB / 1.003 GB, free: 9.754 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001009/0.006473, allocations: 113.7 kB / 1.003 GB, free: 9.617 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.255e-05/0.006506, allocations: 16.36 kB / 1.003 GB, free: 9.602 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.746e-05/0.006533, allocations: 12.38 kB / 1.003 GB, free: 9.59 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001333/0.006667, allocations: 62.16 kB / 1.003 GB, free: 9.523 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.131e-05/0.006678, allocations: 192 / 1.003 GB, free: 9.523 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.492e-05/0.006693, allocations: 4.375 kB / 1.003 GB, free: 9.52 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.995e-06/0.006701, allocations: 3.938 kB / 1.003 GB, free: 9.516 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.599e-05/0.006757, allocations: 27.97 kB / 1.003 GB, free: 9.488 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006223/0.007379, allocations: 335.8 kB / 1.004 GB, free: 9.117 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 7.661e-05/0.007456, allocations: 38.44 kB / 1.004 GB, free: 9.07 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.051e-05/0.007486, allocations: 16.86 kB / 1.004 GB, free: 9.051 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 1.123e-05/0.007498, allocations: 0 / 1.004 GB, free: 9.051 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002635/0.007761, allocations: 103.4 kB / 1.004 GB, free: 8.938 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=10): time 1.123e-06/0.007762, allocations: 0 / 1.004 GB, free: 8.938 MB / 0.9636 GB Notification: Performance of matching and sorting (n=10): time 0.0003237/0.008086, allocations: 145.4 kB / 1.004 GB, free: 8.789 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.099e-05/0.008137, allocations: 55.41 kB / 1.004 GB, free: 8.723 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001123/0.008249, allocations: 140.2 kB / 1.004 GB, free: 8.578 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 3.136e-05/0.008281, allocations: 33.7 kB / 1.004 GB, free: 8.539 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 7.158e-05/0.008352, allocations: 108 kB / 1.004 GB, free: 8.43 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 1.915e-05/0.008371, allocations: 19.97 kB / 1.004 GB, free: 8.41 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.88e-05/0.00845, allocations: 65.67 kB / 1.005 GB, free: 8.34 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 8.098e-05/0.008531, allocations: 322.8 kB / 1.005 GB, free: 8.016 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001691/0.0087, allocations: 181 kB / 1.005 GB, free: 7.82 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001848/0.008885, allocations: 233.2 kB / 1.005 GB, free: 7.555 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002095/0.009094, allocations: 235 kB / 1.005 GB, free: 7.285 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.909e-06/0.009099, allocations: 3.938 kB / 1.005 GB, free: 7.281 MB / 0.9636 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0004531/0.009552, allocations: 475.5 kB / 1.006 GB, free: 6.773 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 5.924e-05/0.009612, allocations: 101.1 kB / 1.006 GB, free: 6.656 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.105e-06/0.00962, allocations: 0 / 1.006 GB, free: 6.656 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.131e-05/0.009641, allocations: 4.188 kB / 1.006 GB, free: 6.652 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.265e-05/0.009664, allocations: 4 kB / 1.006 GB, free: 6.648 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.908e-06/0.009674, allocations: 11.92 kB / 1.006 GB, free: 6.637 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002862/0.00996, allocations: 79.8 kB / 1.006 GB, free: 6.559 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.875e-05/0.009989, allocations: 19.98 kB / 1.006 GB, free: 6.539 MB / 0.9636 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 9.833e-05/0.01009, allocations: 133.8 kB / 1.006 GB, free: 6.398 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.7e-05/0.0101, allocations: 7.953 kB / 1.006 GB, free: 6.391 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.926e-05/0.01013, allocations: 8.438 kB / 1.006 GB, free: 6.383 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.789e-06/0.01014, allocations: 3.984 kB / 1.006 GB, free: 6.379 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.515e-06/0.01015, allocations: 0 / 1.006 GB, free: 6.379 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.008e-06/0.01015, allocations: 0 / 1.006 GB, free: 6.379 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001156/0.01027, allocations: 156.7 kB / 1.006 GB, free: 6.184 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.01027, allocations: 4 kB / 1.006 GB, free: 6.18 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.056e-05/0.01028, allocations: 4 kB / 1.006 GB, free: 6.176 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.01028, allocations: 0 / 1.006 GB, free: 6.176 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.398e-06/0.01029, allocations: 7.938 kB / 1.006 GB, free: 6.168 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.347e-06/0.01029, allocations: 7.984 kB / 1.006 GB, free: 6.16 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.0103, allocations: 0 / 1.006 GB, free: 6.16 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001558/0.01045, allocations: 141.2 kB / 1.007 GB, free: 6.004 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 1.015e-05/0.01046, allocations: 11.89 kB / 1.007 GB, free: 5.992 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.858e-05/0.01048, allocations: 7.984 kB / 1.007 GB, free: 5.984 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.846e-05/0.0105, allocations: 4 kB / 1.007 GB, free: 5.98 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.804e-05/0.01054, allocations: 11.98 kB / 1.007 GB, free: 5.969 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.322e-06/0.01054, allocations: 0 / 1.007 GB, free: 5.969 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 5.137e-05/0.01059, allocations: 95.27 kB / 1.007 GB, free: 5.875 MB / 0.9636 GB Notification: Performance of sort global known variables: time 5e-08/0.01059, allocations: 0 / 1.007 GB, free: 5.875 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0002127/0.01081, allocations: 47.94 kB / 1.007 GB, free: 5.828 MB / 0.9636 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.0004528/0.01126, allocations: 0.6826 MB / 1.007 GB, free: 5.113 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0003558/0.01162, allocations: 415.1 kB / 1.008 GB, free: 4.652 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.01162, allocations: 0 / 1.008 GB, free: 4.652 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 4.956e-05/0.01167, allocations: 31.98 kB / 1.008 GB, free: 4.621 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002088/0.01188, allocations: 28.34 kB / 1.008 GB, free: 4.594 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001982/0.01386, allocations: 2.438 MB / 1.01 GB, free: 1.941 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.096e-05/0.01391, allocations: 75.89 kB / 1.01 GB, free: 1.844 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 4.118e-05/0.01395, allocations: 12.48 kB / 1.01 GB, free: 1.832 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.268e-05/0.01399, allocations: 28.48 kB / 1.01 GB, free: 1.805 MB / 0.9636 GB Notification: Performance of SimCode: time 6.81e-07/0.01399, allocations: 7.938 kB / 1.01 GB, free: 1.797 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01715/0.03114, allocations: 4.789 MB / 1.015 GB, free: 13.2 MB / 0.9792 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.552/6.583, allocations: 6.406 kB / 1.015 GB, free: 13.2 MB / 0.9792 GB " [Timeout remaining time 293] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Switch_fmu --startTime=0 --stopTime=5 --stepSize=0.002 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Switch.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Validation_Switch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 10.609909635037184]