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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.01365/0.01365, allocations: 97.92 kB / 15.73 MB, free: 6.062 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.001936/0.001936, allocations: 194.8 kB / 16.68 MB, free: 5.969 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.583/1.583, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.721/2.721, allocations: 472.6 MB / 0.7453 GB, free: 484 kB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001233/0.001233, allocations: 59.91 kB / 1.069 GB, free: 9.539 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.089/1.091, allocations: 159.9 MB / 1.226 GB, free: 13.51 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.001935/1.093, allocations: 0.6975 MB / 1.226 GB, free: 12.82 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.002247/1.095, allocations: 1.268 MB / 1.228 GB, free: 11.54 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.166e-05/1.095, allocations: 3.938 kB / 1.228 GB, free: 11.53 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 4.904e-05/1.095, allocations: 7.875 kB / 1.228 GB, free: 11.52 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0001051/1.095, allocations: 15.84 kB / 1.228 GB, free: 11.51 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.001202/1.096, allocations: 306.2 kB / 1.228 GB, free: 11.21 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0004117/1.097, allocations: 275.6 kB / 1.228 GB, free: 10.95 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001377/1.097, allocations: 16.19 kB / 1.228 GB, free: 10.93 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001703/1.097, allocations: 107.8 kB / 1.228 GB, free: 10.82 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002219/1.097, allocations: 91.73 kB / 1.228 GB, free: 10.73 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 6.342e-05/1.098, allocations: 24 kB / 1.228 GB, free: 10.71 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001416/1.098, allocations: 35.98 kB / 1.228 GB, free: 10.67 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 3.529e-05/1.098, allocations: 15.92 kB / 1.228 GB, free: 10.66 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0001474/1.098, allocations: 87.73 kB / 1.229 GB, free: 10.57 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0003673/1.098, allocations: 212 kB / 1.229 GB, free: 10.37 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/1.098, allocations: 4 kB / 1.229 GB, free: 10.36 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.973e-06/1.098, allocations: 0 / 1.229 GB, free: 10.36 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 1.172e-05/1.098, allocations: 4 kB / 1.229 GB, free: 10.36 MB / 0.9512 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.0008547/1.099, allocations: 0.4923 MB / 1.229 GB, free: 9.801 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 5.519e-05/1.099, allocations: 8.031 kB / 1.229 GB, free: 9.793 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.646e-05/1.099, allocations: 20.83 kB / 1.229 GB, free: 9.773 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001679/1.1, allocations: 172.3 kB / 1.229 GB, free: 9.566 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.554e-05/1.1, allocations: 8.375 kB / 1.229 GB, free: 9.559 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.982e-05/1.1, allocations: 16.38 kB / 1.229 GB, free: 9.543 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001966/1.1, allocations: 58.22 kB / 1.229 GB, free: 9.48 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.384e-05/1.1, allocations: 3.938 kB / 1.229 GB, free: 9.477 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.677e-05/1.1, allocations: 4 kB / 1.229 GB, free: 9.473 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.266e-05/1.1, allocations: 4 kB / 1.229 GB, free: 9.469 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.129e-05/1.1, allocations: 15.98 kB / 1.229 GB, free: 9.453 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007607/1.101, allocations: 420.5 kB / 1.23 GB, free: 8.992 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 9.335e-05/1.101, allocations: 30.56 kB / 1.23 GB, free: 8.953 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.202e-05/1.101, allocations: 20.86 kB / 1.23 GB, free: 8.93 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.38e-05/1.101, allocations: 0 / 1.23 GB, free: 8.93 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002374/1.101, allocations: 103.4 kB / 1.23 GB, free: 8.816 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=10): time 2.084e-06/1.101, allocations: 0 / 1.23 GB, free: 8.816 MB / 0.9512 GB Notification: Performance of matching and sorting (n=10): time 0.0004039/1.102, allocations: 137.5 kB / 1.23 GB, free: 8.676 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.246e-05/1.102, allocations: 51.41 kB / 1.23 GB, free: 8.613 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001472/1.102, allocations: 140.4 kB / 1.23 GB, free: 8.469 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 5.086e-05/1.102, allocations: 41.7 kB / 1.23 GB, free: 8.422 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 8.981e-05/1.102, allocations: 92.12 kB / 1.23 GB, free: 8.328 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 3.267e-05/1.102, allocations: 27.86 kB / 1.231 GB, free: 8.301 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001649/1.102, allocations: 73.61 kB / 1.231 GB, free: 8.223 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001341/1.102, allocations: 322.8 kB / 1.231 GB, free: 7.898 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002593/1.103, allocations: 91.94 kB / 1.231 GB, free: 7.809 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000275/1.103, allocations: 141.5 kB / 1.231 GB, free: 7.652 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003536/1.103, allocations: 239 kB / 1.231 GB, free: 7.379 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.514e-06/1.103, allocations: 0 / 1.231 GB, free: 7.379 MB / 0.9512 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0007647/1.104, allocations: 374.5 kB / 1.232 GB, free: 6.988 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 9.52e-05/1.104, allocations: 101.1 kB / 1.232 GB, free: 6.871 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.291e-05/1.104, allocations: 7.984 kB / 1.232 GB, free: 6.863 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.213e-05/1.104, allocations: 0 / 1.232 GB, free: 6.863 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.14e-05/1.104, allocations: 7.938 kB / 1.232 GB, free: 6.855 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.08e-05/1.104, allocations: 4 kB / 1.232 GB, free: 6.852 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005844/1.105, allocations: 84.05 kB / 1.232 GB, free: 6.77 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.521e-05/1.105, allocations: 15.98 kB / 1.232 GB, free: 6.754 MB / 0.9512 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.000154/1.105, allocations: 142.2 kB / 1.232 GB, free: 6.605 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.099e-05/1.105, allocations: 11.95 kB / 1.232 GB, free: 6.594 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.808e-05/1.105, allocations: 8.375 kB / 1.232 GB, free: 6.582 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.831e-06/1.105, allocations: 4 kB / 1.232 GB, free: 6.578 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/1.105, allocations: 0 / 1.232 GB, free: 6.578 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/1.105, allocations: 0 / 1.232 GB, free: 6.578 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001849/1.105, allocations: 193.5 kB / 1.232 GB, free: 6.34 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.223e-06/1.105, allocations: 0 / 1.232 GB, free: 6.34 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.441e-05/1.105, allocations: 4 kB / 1.232 GB, free: 6.336 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/1.105, allocations: 0 / 1.232 GB, free: 6.336 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.396e-05/1.105, allocations: 4 kB / 1.232 GB, free: 6.332 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/1.105, allocations: 0 / 1.232 GB, free: 6.332 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/1.105, allocations: 7.984 kB / 1.232 GB, free: 6.324 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002335/1.106, allocations: 140.9 kB / 1.232 GB, free: 6.168 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 4.728e-05/1.106, allocations: 85.06 kB / 1.232 GB, free: 6.066 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.485e-05/1.106, allocations: 3.984 kB / 1.232 GB, free: 6.062 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.306e-05/1.106, allocations: 4 kB / 1.232 GB, free: 6.059 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.669e-05/1.106, allocations: 4 kB / 1.232 GB, free: 6.055 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.476e-05/1.106, allocations: 11.98 kB / 1.233 GB, free: 6.043 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 7.964e-05/1.106, allocations: 99.27 kB / 1.233 GB, free: 5.945 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.51e-07/1.106, allocations: 96 / 1.233 GB, free: 5.945 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0003559/1.106, allocations: 47.94 kB / 1.233 GB, free: 5.898 MB / 0.9512 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.0002064/1.107, allocations: 111.1 kB / 1.233 GB, free: 5.781 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.000597/1.107, allocations: 358 kB / 1.233 GB, free: 5.395 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/1.107, allocations: 3.938 kB / 1.233 GB, free: 5.391 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 8.495e-05/1.107, allocations: 44.3 kB / 1.233 GB, free: 5.348 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003581/1.108, allocations: 37.22 kB / 1.233 GB, free: 5.312 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004688/1.108, allocations: 193.3 kB / 1.233 GB, free: 5.098 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003024/1.108, allocations: 0.6924 MB / 1.234 GB, free: 4.379 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 4.758e-05/1.109, allocations: 12.42 kB / 1.234 GB, free: 4.367 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.45e-05/1.109, allocations: 15.44 kB / 1.234 GB, free: 4.352 MB / 0.9512 GB Notification: Performance of SimCode: time 3.21e-07/1.109, allocations: 3.938 kB / 1.234 GB, free: 4.348 MB / 0.9512 GB Notification: Performance of Templates: time 0.007187/1.116, allocations: 2.62 MB / 1.237 GB, free: 1.758 MB / 0.9512 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