Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001432/0.001432, allocations: 80.59 kB / 19.18 MB, free: 2.527 MB / 14.72 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.001581/0.001581, allocations: 165.5 kB / 22.46 MB, free: 5.355 MB / 14.72 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 1.552/1.552, allocations: 177.1 MB / 202.8 MB, free: 9.168 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 2.909/2.909, allocations: 359 MB / 0.6037 GB, free: 14.95 MB / 0.5762 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/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: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|logicalSwitch.u1|logicalSwitch.u2|logicalSwitch.u3|logicalSwitch.y",fileNamePrefix="Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|logicalSwitch.u1|logicalSwitch.u2|logicalSwitch.u3|logicalSwitch.y",fileNamePrefix="Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 3.667e-06/3.667e-06, allocations: 0 / 0.951 GB, free: 11.55 MB / 0.8575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.1e-05/3.467e-05, allocations: 2.281 kB / 0.951 GB, free: 11.55 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.002382/0.002417, allocations: 0.6834 MB / 0.9517 GB, free: 10.86 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002062/0.004479, allocations: 1.28 MB / 0.9529 GB, free: 9.566 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.221e-05/0.004531, allocations: 4 kB / 0.9529 GB, free: 9.562 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.187e-05/0.004563, allocations: 11.86 kB / 0.9529 GB, free: 9.551 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 8.906e-05/0.004652, allocations: 19.86 kB / 0.9529 GB, free: 9.531 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008744/0.005526, allocations: 320 kB / 0.9532 GB, free: 9.227 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003482/0.005875, allocations: 259.5 kB / 0.9535 GB, free: 8.973 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001188/0.005993, allocations: 16.17 kB / 0.9535 GB, free: 8.953 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002019/0.006195, allocations: 139.8 kB / 0.9536 GB, free: 8.816 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001935/0.006389, allocations: 79.75 kB / 0.9537 GB, free: 8.738 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 6.077e-05/0.00645, allocations: 24 kB / 0.9537 GB, free: 8.715 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 9.925e-05/0.006549, allocations: 39.97 kB / 0.9538 GB, free: 8.676 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.025e-05/0.006579, allocations: 7.984 kB / 0.9538 GB, free: 8.668 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001234/0.006702, allocations: 75.88 kB / 0.9539 GB, free: 8.594 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.000386/0.007089, allocations: 263.3 kB / 0.9541 GB, free: 8.336 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.007092, allocations: 0 / 0.9541 GB, free: 8.336 MB / 0.8575 GB Notification: Performance of FrontEnd: time 4.158e-06/0.007096, allocations: 4 kB / 0.9541 GB, free: 8.332 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.031e-06/0.007102, allocations: 4 kB / 0.9541 GB, free: 8.328 MB / 0.8575 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.0006984/0.0078, allocations: 427 kB / 0.9545 GB, free: 7.863 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.153e-05/0.007842, allocations: 8.031 kB / 0.9545 GB, free: 7.855 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.434e-05/0.007916, allocations: 16.89 kB / 0.9546 GB, free: 7.84 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001427/0.008059, allocations: 113.7 kB / 0.9547 GB, free: 7.703 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3e-05/0.008089, allocations: 8.375 kB / 0.9547 GB, free: 7.695 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.755e-05/0.008136, allocations: 20.36 kB / 0.9547 GB, free: 7.676 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000133/0.008269, allocations: 54.23 kB / 0.9547 GB, free: 7.617 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.178e-06/0.008279, allocations: 192 / 0.9547 GB, free: 7.617 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.407e-05/0.008293, allocations: 4.359 kB / 0.9547 GB, free: 7.613 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.123e-06/0.0083, allocations: 12.12 kB / 0.9548 GB, free: 7.602 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.568e-05/0.008355, allocations: 15.98 kB / 0.9548 GB, free: 7.586 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005338/0.008889, allocations: 324.2 kB / 0.9551 GB, free: 7.238 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 7.385e-05/0.008963, allocations: 26.58 kB / 0.9551 GB, free: 7.203 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.76e-05/0.009001, allocations: 16.94 kB / 0.9551 GB, free: 7.184 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.184e-05/0.009013, allocations: 3.938 kB / 0.9551 GB, free: 7.18 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002115/0.009224, allocations: 111.2 kB / 0.9552 GB, free: 7.059 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=10): time 1.423e-06/0.009225, allocations: 0 / 0.9552 GB, free: 7.059 MB / 0.8575 GB Notification: Performance of matching and sorting (n=10): time 0.000325/0.00955, allocations: 141.8 kB / 0.9554 GB, free: 6.914 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.81e-05/0.009599, allocations: 55.47 kB / 0.9554 GB, free: 6.848 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001285/0.009727, allocations: 137.9 kB / 0.9555 GB, free: 6.703 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 4.484e-05/0.009772, allocations: 37.64 kB / 0.9556 GB, free: 6.66 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 8.848e-05/0.00986, allocations: 100.1 kB / 0.9557 GB, free: 6.559 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.567e-05/0.009886, allocations: 23.84 kB / 0.9557 GB, free: 6.535 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001336/0.01002, allocations: 69.67 kB / 0.9558 GB, free: 6.461 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001484/0.01017, allocations: 318.8 kB / 0.9561 GB, free: 6.141 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002553/0.01042, allocations: 177 kB / 0.9562 GB, free: 5.949 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003012/0.01072, allocations: 227 kB / 0.9565 GB, free: 5.688 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003313/0.01106, allocations: 239 kB / 0.9567 GB, free: 5.414 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.01106, allocations: 0 / 0.9567 GB, free: 5.414 MB / 0.8575 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0007316/0.01179, allocations: 477 kB / 0.9571 GB, free: 4.906 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 0.000107/0.0119, allocations: 97.08 kB / 0.9572 GB, free: 4.793 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.985e-06/0.0119, allocations: 4 kB / 0.9572 GB, free: 4.789 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.641e-05/0.01192, allocations: 4.125 kB / 0.9572 GB, free: 4.785 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.732e-05/0.01195, allocations: 8 kB / 0.9572 GB, free: 4.777 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.966e-06/0.01196, allocations: 4 kB / 0.9573 GB, free: 4.773 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005093/0.01247, allocations: 79.8 kB / 0.9573 GB, free: 4.695 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.091e-05/0.01252, allocations: 19.98 kB / 0.9573 GB, free: 4.676 MB / 0.8575 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.0001522/0.01267, allocations: 137.8 kB / 0.9575 GB, free: 4.531 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.087e-05/0.01269, allocations: 11.89 kB / 0.9575 GB, free: 4.52 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.044e-05/0.01272, allocations: 12.44 kB / 0.9575 GB, free: 4.508 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.556e-06/0.01272, allocations: 4 kB / 0.9575 GB, free: 4.504 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.419e-06/0.01273, allocations: 0 / 0.9575 GB, free: 4.504 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.506e-06/0.01273, allocations: 0 / 0.9575 GB, free: 4.504 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001319/0.01286, allocations: 125.3 kB / 0.9576 GB, free: 4.352 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.01287, allocations: 0 / 0.9576 GB, free: 4.352 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.788e-06/0.01288, allocations: 4 kB / 0.9576 GB, free: 4.348 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.218e-06/0.01288, allocations: 3.938 kB / 0.9576 GB, free: 4.344 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.348e-05/0.01289, allocations: 7.984 kB / 0.9576 GB, free: 4.336 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.01289, allocations: 4 kB / 0.9576 GB, free: 4.332 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.0129, allocations: 0 / 0.9576 GB, free: 4.332 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002058/0.0131, allocations: 136.9 kB / 0.9578 GB, free: 4.18 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 1.226e-05/0.01311, allocations: 7.953 kB / 0.9578 GB, free: 4.172 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.416e-05/0.01314, allocations: 11.92 kB / 0.9578 GB, free: 4.16 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.574e-05/0.01316, allocations: 4 kB / 0.9578 GB, free: 4.156 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.813e-05/0.01321, allocations: 8.078 kB / 0.9578 GB, free: 4.148 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.412e-06/0.01322, allocations: 7.938 kB / 0.9578 GB, free: 4.141 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 7.195e-05/0.01329, allocations: 102 kB / 0.9579 GB, free: 4.043 MB / 0.8575 GB Notification: Performance of sort global known variables: time 9e-08/0.01329, allocations: 0 / 0.9579 GB, free: 4.043 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002723/0.01356, allocations: 48 kB / 0.958 GB, free: 3.996 MB / 0.8575 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.0001764/0.01374, allocations: 111.2 kB / 0.9581 GB, free: 3.875 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0005396/0.01428, allocations: 411.1 kB / 0.9585 GB, free: 3.418 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.283e-06/0.01428, allocations: 0 / 0.9585 GB, free: 3.418 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 6.948e-05/0.01435, allocations: 35.92 kB / 0.9585 GB, free: 3.383 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002794/0.01463, allocations: 30.92 kB / 0.9585 GB, free: 3.355 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003949/0.01502, allocations: 185.6 kB / 0.9587 GB, free: 3.145 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.322e-05/0.01511, allocations: 91.47 kB / 0.9588 GB, free: 3.031 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.43e-05/0.01514, allocations: 12.47 kB / 0.9588 GB, free: 3.02 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.913e-05/0.01517, allocations: 16.44 kB / 0.9588 GB, free: 3 MB / 0.8575 GB Notification: Performance of SimCode: time 4.1e-07/0.01517, allocations: 0 / 0.9588 GB, free: 3 MB / 0.8575 GB Notification: Performance of Templates: time 0.006674/0.02184, allocations: 2.908 MB / 0.9617 GB, free: 168 kB / 0.8575 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Logical_Validation_Switch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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: 8.333831403404474]