Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.0007238/0.0007238, allocations: 81.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001052/0.001775, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.001044/0.001044, allocations: 161.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001359/0.002403, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 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.9902/0.9902, allocations: 177.2 MB / 189.8 MB, free: 5.238 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09112/1.081, allocations: 53.67 MB / 243.4 MB, free: 15.5 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo): time 1.874/1.874, allocations: 378.4 MB / 0.6079 GB, free: 7.707 MB / 0.5886 GB Notification: Performance of NFInstanceAPI.mkTop(): time 0.5369/2.411, allocations: 123.3 MB / 0.7283 GB, free: 5.73 MB / 0.698 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.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_12_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_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.894e-06/1.894e-06, allocations: 0 / 0.7296 GB, free: 4.414 MB / 0.698 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.045e-05/2.234e-05, allocations: 2.312 kB / 0.7297 GB, free: 4.41 MB / 0.698 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.001988/0.00201, allocations: 0.7635 MB / 0.7304 GB, free: 3.68 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.001547/0.003557, allocations: 1.324 MB / 0.7317 GB, free: 2.348 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.396e-05/0.003601, allocations: 0 / 0.7317 GB, free: 2.348 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 2.693e-05/0.003628, allocations: 3.938 kB / 0.7317 GB, free: 2.344 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 6.357e-05/0.003692, allocations: 22.36 kB / 0.7317 GB, free: 2.328 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006587/0.00435, allocations: 294.2 kB / 0.732 GB, free: 2.043 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 0.0003267/0.004677, allocations: 252.8 kB / 0.7322 GB, free: 1.812 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 8.343e-05/0.004761, allocations: 16.17 kB / 0.7323 GB, free: 1.793 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002043/0.004965, allocations: 147.8 kB / 0.7324 GB, free: 1.648 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001572/0.005122, allocations: 75.8 kB / 0.7325 GB, free: 1.574 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 4.519e-05/0.005167, allocations: 24 kB / 0.7325 GB, free: 1.551 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001052/0.005273, allocations: 36.92 kB / 0.7325 GB, free: 1.516 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 2.798e-05/0.0053, allocations: 11.94 kB / 0.7325 GB, free: 1.504 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 7.514e-05/0.005376, allocations: 52.44 kB / 0.7326 GB, free: 1.453 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.000234/0.00561, allocations: 152.4 kB / 0.7327 GB, free: 1.305 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 1.309e-05/0.005623, allocations: 0 / 0.7327 GB, free: 1.305 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.253e-06/0.005624, allocations: 0 / 0.7327 GB, free: 1.305 MB / 0.698 GB Notification: Performance of Transformations before backend: time 1.381e-05/0.005638, allocations: 4.781 kB / 0.7327 GB, free: 1.301 MB / 0.698 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.0005583/0.006196, allocations: 413.4 kB / 0.7331 GB, free: 0.8555 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.58e-05/0.006232, allocations: 8.656 kB / 0.7331 GB, free: 0.8477 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.299e-05/0.006295, allocations: 21.83 kB / 0.7332 GB, free: 0.8281 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.571e-05/0.006391, allocations: 117.6 kB / 0.7333 GB, free: 0.6875 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.661e-05/0.006417, allocations: 12.36 kB / 0.7333 GB, free: 0.6758 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.412e-05/0.006451, allocations: 13.06 kB / 0.7333 GB, free: 0.6641 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.797e-05/0.006549, allocations: 62.92 kB / 0.7334 GB, free: 0.5938 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.093e-06/0.006556, allocations: 1.594 kB / 0.7334 GB, free: 0.5938 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.388e-06/0.006566, allocations: 4.359 kB / 0.7334 GB, free: 0.5898 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.913e-06/0.006573, allocations: 8.125 kB / 0.7334 GB, free: 0.582 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.214e-05/0.006595, allocations: 12.52 kB / 0.7334 GB, free: 0.5703 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003529/0.006948, allocations: 204.8 kB / 0.7336 GB, free: 364 kB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 5.215e-05/0.007, allocations: 22.58 kB / 0.7336 GB, free: 332 kB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.523e-05/0.007025, allocations: 14.31 kB / 0.7336 GB, free: 316 kB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 5.57e-06/0.007031, allocations: 0 / 0.7336 GB, free: 316 kB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001304/0.007161, allocations: 99.28 kB / 0.7337 GB, free: 204 kB / 0.698 GB Notification: Performance of pre-optimization done (n=10): time 1.543e-06/0.007163, allocations: 1.594 kB / 0.7337 GB, free: 204 kB / 0.698 GB Notification: Performance of matching and sorting (n=10): time 0.0001849/0.007347, allocations: 97.52 kB / 0.7338 GB, free: 100 kB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.292e-05/0.00738, allocations: 55.41 kB / 0.7339 GB, free: 32 kB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001008/0.007481, allocations: 134.6 kB / 0.734 GB, free: 15.89 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 3.226e-05/0.007513, allocations: 30.52 kB / 0.734 GB, free: 15.85 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 5.707e-05/0.00757, allocations: 100.1 kB / 0.7341 GB, free: 15.75 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 2.367e-05/0.007594, allocations: 23.78 kB / 0.7341 GB, free: 15.73 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.715e-05/0.007691, allocations: 58.91 kB / 0.7342 GB, free: 15.66 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 8.989e-05/0.007781, allocations: 322.8 kB / 0.7345 GB, free: 15.34 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001445/0.007926, allocations: 149.1 kB / 0.7346 GB, free: 15.18 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001556/0.008081, allocations: 202.7 kB / 0.7348 GB, free: 14.94 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000187/0.008268, allocations: 215.6 kB / 0.735 GB, free: 14.7 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.008271, allocations: 3.938 kB / 0.735 GB, free: 14.69 MB / 0.7136 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.000366/0.008637, allocations: 377.4 kB / 0.7354 GB, free: 14.28 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 7.521e-05/0.008712, allocations: 110.4 kB / 0.7355 GB, free: 14.16 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.212e-06/0.008718, allocations: 0 / 0.7355 GB, free: 14.16 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.289e-05/0.008731, allocations: 4 kB / 0.7355 GB, free: 14.15 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.57e-05/0.008757, allocations: 7.938 kB / 0.7355 GB, free: 14.14 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.92e-06/0.008762, allocations: 5.25 kB / 0.7355 GB, free: 14.14 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002689/0.009031, allocations: 57.14 kB / 0.7356 GB, free: 14.09 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.53e-05/0.009066, allocations: 19.98 kB / 0.7356 GB, free: 14.07 MB / 0.7136 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.689e-05/0.009163, allocations: 135.7 kB / 0.7357 GB, free: 13.93 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.607e-05/0.009179, allocations: 8 kB / 0.7357 GB, free: 13.92 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.145e-05/0.009211, allocations: 12.91 kB / 0.7357 GB, free: 13.9 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.676e-06/0.009214, allocations: 5.219 kB / 0.7357 GB, free: 13.9 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.376e-06/0.009218, allocations: 3.984 kB / 0.7357 GB, free: 13.89 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.009221, allocations: 0 / 0.7357 GB, free: 13.89 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.638e-05/0.009317, allocations: 82.59 kB / 0.7358 GB, free: 13.8 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.009319, allocations: 0 / 0.7358 GB, free: 13.8 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.229e-05/0.009331, allocations: 5.219 kB / 0.7358 GB, free: 13.79 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 1.047e-05/0.009342, allocations: 7.953 kB / 0.7358 GB, free: 13.79 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.009344, allocations: 0 / 0.7358 GB, free: 13.79 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.135e-06/0.009353, allocations: 7.922 kB / 0.7358 GB, free: 13.78 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/0.009355, allocations: 0.5 kB / 0.7358 GB, free: 13.78 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.009355, allocations: 0.75 kB / 0.7358 GB, free: 13.78 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001175/0.009473, allocations: 105 kB / 0.7359 GB, free: 13.66 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.469e-05/0.009488, allocations: 4.734 kB / 0.736 GB, free: 13.65 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.35e-05/0.009511, allocations: 0 / 0.736 GB, free: 13.65 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.376e-05/0.009545, allocations: 17.7 kB / 0.736 GB, free: 13.64 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.42e-06/0.00955, allocations: 0 / 0.736 GB, free: 13.64 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 2.799e-05/0.009578, allocations: 22.95 kB / 0.736 GB, free: 13.61 MB / 0.7136 GB Notification: Performance of sort global known variables: time 5e-08/0.009578, allocations: 0 / 0.736 GB, free: 13.61 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0002294/0.009808, allocations: 44 kB / 0.736 GB, free: 13.57 MB / 0.7136 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.0001452/0.009953, allocations: 87.09 kB / 0.7361 GB, free: 13.48 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0003416/0.01029, allocations: 391.2 kB / 0.7365 GB, free: 13.04 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 6.091e-06/0.0103, allocations: 4 kB / 0.7365 GB, free: 13.04 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 4.302e-05/0.01034, allocations: 36.72 kB / 0.7365 GB, free: 13 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002304/0.01057, allocations: 190.2 kB / 0.7367 GB, free: 12.78 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005638/0.01114, allocations: 188.8 kB / 0.7369 GB, free: 12.57 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.993e-05/0.01118, allocations: 63.34 kB / 0.737 GB, free: 12.48 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 3.661e-05/0.01121, allocations: 12.48 kB / 0.737 GB, free: 12.47 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001711/0.01139, allocations: 83.34 kB / 0.737 GB, free: 12.39 MB / 0.7136 GB Notification: Performance of SimCode: time 5.41e-07/0.01139, allocations: 0 / 0.737 GB, free: 12.39 MB / 0.7136 GB Notification: Performance of Templates: time 0.004995/0.01638, allocations: 3.216 MB / 0.7402 GB, free: 9.344 MB / 0.7136 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch/Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.ref.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.0078602666035295]