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.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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|logicalSwitch.u1|logicalSwitch.u2|logicalSwitch.u3|logicalSwitch.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|logicalSwitch.u1|logicalSwitch.u2|logicalSwitch.u3|logicalSwitch.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001144/0.001144, allocations: 90.75 kB / 15.06 MB, free: 1.098 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.001737/0.001737, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.452/1.452, allocations: 223.3 MB / 240 MB, free: 5.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.883/2.883, allocations: 462.6 MB / 0.736 GB, free: 15.71 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004206/0.0004207, allocations: 11.12 kB / 0.9021 GB, free: 36.54 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4105/0.411, allocations: 159.6 MB / 1.058 GB, free: 5.262 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.00108/0.4121, allocations: 417.8 kB / 1.058 GB, free: 4.855 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002413/0.4145, allocations: 1.244 MB / 1.06 GB, free: 3.598 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.645e-05/0.4147, allocations: 0 / 1.06 GB, free: 3.598 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.795e-05/0.4147, allocations: 3.938 kB / 1.06 GB, free: 3.594 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001353/0.4149, allocations: 19.91 kB / 1.06 GB, free: 3.574 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.001125/0.416, allocations: 285.2 kB / 1.06 GB, free: 3.305 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003291/0.4163, allocations: 199.6 kB / 1.06 GB, free: 3.109 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000144/0.4165, allocations: 12.19 kB / 1.06 GB, free: 3.094 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002584/0.4168, allocations: 91.8 kB / 1.06 GB, free: 3.004 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002044/0.417, allocations: 67.83 kB / 1.06 GB, free: 2.938 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 8.706e-05/0.4171, allocations: 12 kB / 1.06 GB, free: 2.926 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001267/0.4172, allocations: 23.98 kB / 1.06 GB, free: 2.902 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.514e-05/0.4172, allocations: 11.92 kB / 1.06 GB, free: 2.891 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001124/0.4174, allocations: 49.7 kB / 1.06 GB, free: 2.836 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002783/0.4177, allocations: 147.9 kB / 1.061 GB, free: 2.691 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 8.636e-06/0.4177, allocations: 0 / 1.061 GB, free: 2.691 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.023e-06/0.4177, allocations: 0 / 1.061 GB, free: 2.691 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.083e-05/0.4177, allocations: 0 / 1.061 GB, free: 2.691 MB / 0.8106 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.0008049/0.4185, allocations: 464.2 kB / 1.061 GB, free: 2.172 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 6.462e-05/0.4186, allocations: 12.03 kB / 1.061 GB, free: 2.16 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001262/0.4187, allocations: 11.91 kB / 1.061 GB, free: 2.148 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001575/0.4189, allocations: 176.9 kB / 1.061 GB, free: 1.938 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.862e-05/0.4189, allocations: 12 kB / 1.061 GB, free: 1.926 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.588e-05/0.419, allocations: 19.94 kB / 1.061 GB, free: 1.906 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000171/0.4192, allocations: 57.67 kB / 1.061 GB, free: 1.844 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.897e-06/0.4192, allocations: 0 / 1.061 GB, free: 1.844 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.281e-05/0.4192, allocations: 0 / 1.061 GB, free: 1.844 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.462e-06/0.4192, allocations: 4 kB / 1.061 GB, free: 1.84 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.405e-05/0.4193, allocations: 27.92 kB / 1.061 GB, free: 1.812 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006548/0.42, allocations: 416.5 kB / 1.062 GB, free: 1.355 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 8.456e-05/0.4201, allocations: 34.56 kB / 1.062 GB, free: 1.312 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.149e-05/0.4201, allocations: 20.95 kB / 1.062 GB, free: 1.289 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.456e-05/0.4201, allocations: 7.984 kB / 1.062 GB, free: 1.281 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002266/0.4204, allocations: 103.3 kB / 1.062 GB, free: 1.168 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=10): time 1.753e-06/0.4204, allocations: 0 / 1.062 GB, free: 1.168 MB / 0.8106 GB Notification: Performance of matching and sorting (n=10): time 0.0003566/0.4207, allocations: 141.4 kB / 1.062 GB, free: 1.023 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.007e-05/0.4208, allocations: 59.39 kB / 1.062 GB, free: 0.9531 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000123/0.4209, allocations: 125.8 kB / 1.062 GB, free: 0.8203 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 4.638e-05/0.421, allocations: 37.7 kB / 1.062 GB, free: 0.7773 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 8.224e-05/0.4211, allocations: 100 kB / 1.062 GB, free: 0.6758 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.717e-05/0.4211, allocations: 19.8 kB / 1.062 GB, free: 0.6562 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.458e-05/0.4211, allocations: 4 kB / 1.062 GB, free: 0.6523 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001386/0.4213, allocations: 318.8 kB / 1.063 GB, free: 340 kB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001779/0.4215, allocations: 91.94 kB / 1.063 GB, free: 248 kB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002386/0.4217, allocations: 135.6 kB / 1.063 GB, free: 92 kB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003125/0.422, allocations: 172 kB / 1.063 GB, free: 15.91 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.171e-06/0.422, allocations: 0 / 1.063 GB, free: 15.91 MB / 0.8262 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0008162/0.4229, allocations: 378.3 kB / 1.063 GB, free: 15.51 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001522/0.423, allocations: 105.3 kB / 1.063 GB, free: 15.39 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.675e-05/0.4231, allocations: 4 kB / 1.063 GB, free: 15.39 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.91e-05/0.4231, allocations: 7.984 kB / 1.063 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.652e-05/0.4231, allocations: 3.938 kB / 1.063 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.13e-05/0.4232, allocations: 4 kB / 1.063 GB, free: 15.37 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006433/0.4238, allocations: 114.7 kB / 1.064 GB, free: 15.26 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.882e-05/0.4239, allocations: 23.97 kB / 1.064 GB, free: 15.24 MB / 0.8262 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,$PRE.booPul1.y,booPul1.y,$PRE.booPul2.y,booPul2.y,$PRE.booPul3.y,booPul3.y,logicalSwitch.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002514/0.4242, allocations: 139.6 kB / 1.064 GB, free: 15.09 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.022e-05/0.4242, allocations: 7.906 kB / 1.064 GB, free: 15.09 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.02e-05/0.4243, allocations: 12.38 kB / 1.064 GB, free: 15.07 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.072e-06/0.4243, allocations: 0 / 1.064 GB, free: 15.07 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.197e-06/0.4243, allocations: 0 / 1.064 GB, free: 15.07 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.033e-05/0.4243, allocations: 3.984 kB / 1.064 GB, free: 15.07 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002702/0.4246, allocations: 189.5 kB / 1.064 GB, free: 14.84 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.372e-06/0.4246, allocations: 8 kB / 1.064 GB, free: 14.83 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.537e-05/0.4246, allocations: 0 / 1.064 GB, free: 14.83 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.123e-06/0.4246, allocations: 0 / 1.064 GB, free: 14.83 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.523e-05/0.4247, allocations: 15.92 kB / 1.064 GB, free: 14.81 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.675e-06/0.4247, allocations: 0 / 1.064 GB, free: 14.81 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.4247, allocations: 0 / 1.064 GB, free: 14.81 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002784/0.425, allocations: 137.2 kB / 1.064 GB, free: 14.66 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 7.319e-05/0.4251, allocations: 88.95 kB / 1.064 GB, free: 14.55 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.526e-05/0.4251, allocations: 3.984 kB / 1.064 GB, free: 14.55 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.887e-05/0.4251, allocations: 12 kB / 1.064 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.076e-05/0.4252, allocations: 7.984 kB / 1.064 GB, free: 14.53 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.107e-05/0.4252, allocations: 4 kB / 1.064 GB, free: 14.53 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 8.259e-05/0.4253, allocations: 95.27 kB / 1.064 GB, free: 14.43 MB / 0.8262 GB Notification: Performance of sort global known variables: time 7.41e-07/0.4253, allocations: 0 / 1.064 GB, free: 14.43 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003624/0.4257, allocations: 44 kB / 1.064 GB, free: 14.39 MB / 0.8262 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002778/0.426, allocations: 111.2 kB / 1.064 GB, free: 14.27 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0005958/0.4266, allocations: 366.1 kB / 1.065 GB, free: 13.88 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 4.478e-06/0.4266, allocations: 0 / 1.065 GB, free: 13.88 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 9.059e-05/0.4267, allocations: 43.91 kB / 1.065 GB, free: 13.84 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003474/0.427, allocations: 23.94 kB / 1.065 GB, free: 13.81 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00058/0.4276, allocations: 195.9 kB / 1.065 GB, free: 13.59 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004284/0.4281, allocations: 0.7004 MB / 1.066 GB, free: 12.86 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 5.461e-05/0.4281, allocations: 8.438 kB / 1.066 GB, free: 12.85 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.769e-05/0.4282, allocations: 11.44 kB / 1.066 GB, free: 12.84 MB / 0.8262 GB Notification: Performance of SimCode: time 8.72e-07/0.4282, allocations: 4 kB / 1.066 GB, free: 12.84 MB / 0.8262 GB Notification: Performance of Templates: time 0.007198/0.4354, allocations: 2.379 MB / 1.068 GB, free: 10.5 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.makefile (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 & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) 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) Reference file matches