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.002281/0.002281, allocations: 83.69 kB / 20.23 MB, free: 4.188 MB / 18.57 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.002582/0.002582, allocations: 157.3 kB / 23.55 MB, free: 0.875 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 1.698/1.698, allocations: 177.1 MB / 203.9 MB, free: 5.598 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 3.033/3.033, allocations: 377.8 MB / 0.6232 GB, free: 8.527 MB / 0.5886 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-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 3.416e-06/3.416e-06, allocations: 0 / 0.8108 GB, free: 1.957 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.921e-05/4.263e-05, allocations: 2.312 kB / 0.8108 GB, free: 1.953 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.002144/0.002186, allocations: 0.7027 MB / 0.8115 GB, free: 1.273 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.001941/0.004127, allocations: 1.293 MB / 0.8128 GB, free: 15.96 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.635e-05/0.004173, allocations: 0 / 0.8128 GB, free: 15.96 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 2.758e-05/0.004201, allocations: 3.938 kB / 0.8128 GB, free: 15.96 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 8.922e-05/0.00429, allocations: 19.75 kB / 0.8128 GB, free: 15.95 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008042/0.005095, allocations: 302.6 kB / 0.8131 GB, free: 15.65 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.000354/0.005449, allocations: 255.6 kB / 0.8133 GB, free: 15.4 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001073/0.005556, allocations: 8.188 kB / 0.8133 GB, free: 15.39 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002397/0.005796, allocations: 145.3 kB / 0.8135 GB, free: 15.25 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000185/0.005981, allocations: 75.8 kB / 0.8136 GB, free: 15.18 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 6.552e-05/0.006046, allocations: 24 kB / 0.8136 GB, free: 15.15 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001109/0.006157, allocations: 35.98 kB / 0.8136 GB, free: 15.12 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 3.042e-05/0.006187, allocations: 13.69 kB / 0.8136 GB, free: 15.11 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 0.0001237/0.006311, allocations: 71.92 kB / 0.8137 GB, free: 15.04 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0003863/0.006697, allocations: 275.3 kB / 0.814 GB, free: 14.77 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.006701, allocations: 3.938 kB / 0.814 GB, free: 14.76 MB / 0.7761 GB Notification: Performance of FrontEnd: time 1.262e-06/0.006703, allocations: 1.094 kB / 0.814 GB, free: 14.76 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 5.129e-06/0.006708, allocations: 0 / 0.814 GB, free: 14.76 MB / 0.7761 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.0007272/0.007435, allocations: 0.5049 MB / 0.8145 GB, free: 14.2 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 4.094e-05/0.007476, allocations: 18.36 kB / 0.8145 GB, free: 14.19 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.297e-05/0.007559, allocations: 16.89 kB / 0.8145 GB, free: 14.17 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001267/0.007685, allocations: 116.6 kB / 0.8146 GB, free: 14.03 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.087e-05/0.007726, allocations: 8.375 kB / 0.8146 GB, free: 14.02 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.274e-05/0.007769, allocations: 16.31 kB / 0.8146 GB, free: 14.01 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001299/0.007899, allocations: 62.22 kB / 0.8147 GB, free: 13.94 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.426e-06/0.007907, allocations: 192 / 0.8147 GB, free: 13.94 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.13e-05/0.007919, allocations: 0.9062 kB / 0.8147 GB, free: 13.94 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.865e-06/0.007927, allocations: 4.844 kB / 0.8147 GB, free: 13.94 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.332e-05/0.00799, allocations: 27.92 kB / 0.8147 GB, free: 13.91 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006098/0.0086, allocations: 384 kB / 0.8151 GB, free: 13.5 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 9.686e-05/0.008697, allocations: 44.64 kB / 0.8151 GB, free: 13.45 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.535e-05/0.008742, allocations: 23.77 kB / 0.8151 GB, free: 13.42 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 1.093e-05/0.008753, allocations: 0 / 0.8151 GB, free: 13.42 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001789/0.008932, allocations: 104.9 kB / 0.8152 GB, free: 13.3 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=10): time 1.072e-06/0.008933, allocations: 0.625 kB / 0.8152 GB, free: 13.3 MB / 0.7761 GB Notification: Performance of matching and sorting (n=10): time 0.0003484/0.009281, allocations: 150.3 kB / 0.8154 GB, free: 13.15 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.856e-05/0.00933, allocations: 55.39 kB / 0.8154 GB, free: 13.08 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001796/0.009509, allocations: 204.6 kB / 0.8156 GB, free: 12.87 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 4.337e-05/0.009553, allocations: 33.7 kB / 0.8157 GB, free: 12.83 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001296/0.009682, allocations: 151.4 kB / 0.8158 GB, free: 12.68 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 3.275e-05/0.009715, allocations: 28.64 kB / 0.8158 GB, free: 12.65 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001448/0.00986, allocations: 71.33 kB / 0.8159 GB, free: 12.57 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0002835/0.01014, allocations: 0.4975 MB / 0.8164 GB, free: 12.06 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003058/0.01045, allocations: 205 kB / 0.8166 GB, free: 11.84 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003738/0.01082, allocations: 270.9 kB / 0.8168 GB, free: 11.53 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003802/0.0112, allocations: 272.6 kB / 0.8171 GB, free: 11.22 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.01121, allocations: 1.219 kB / 0.8171 GB, free: 11.22 MB / 0.7761 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0008263/0.01203, allocations: 0.514 MB / 0.8176 GB, free: 10.66 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 9.048e-05/0.01212, allocations: 99.3 kB / 0.8177 GB, free: 10.55 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.416e-06/0.01213, allocations: 4 kB / 0.8177 GB, free: 10.55 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.325e-05/0.01214, allocations: 0 / 0.8177 GB, free: 10.55 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.242e-05/0.01217, allocations: 4 kB / 0.8177 GB, free: 10.54 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.665e-05/0.01218, allocations: 12 kB / 0.8177 GB, free: 10.53 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004007/0.01258, allocations: 63.08 kB / 0.8178 GB, free: 10.47 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.625e-05/0.01263, allocations: 19.98 kB / 0.8178 GB, free: 10.45 MB / 0.7761 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.0001602/0.01279, allocations: 172.6 kB / 0.818 GB, free: 10.27 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.98e-05/0.01282, allocations: 19.88 kB / 0.818 GB, free: 10.25 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.075e-05/0.01285, allocations: 8.438 kB / 0.818 GB, free: 10.25 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.01285, allocations: 1.156 kB / 0.818 GB, free: 10.25 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.107e-06/0.01286, allocations: 3.938 kB / 0.818 GB, free: 10.24 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.01286, allocations: 4 kB / 0.818 GB, free: 10.24 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001782/0.01304, allocations: 153 kB / 0.8181 GB, free: 10.05 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.626e-06/0.01304, allocations: 4.5 kB / 0.8182 GB, free: 10.05 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.2e-05/0.01305, allocations: 3.938 kB / 0.8182 GB, free: 10.05 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.077e-06/0.01306, allocations: 4.5 kB / 0.8182 GB, free: 10.04 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.032e-05/0.01307, allocations: 8.922 kB / 0.8182 GB, free: 10.04 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.01307, allocations: 0 / 0.8182 GB, free: 10.04 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.01307, allocations: 0 / 0.8182 GB, free: 10.04 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002385/0.01331, allocations: 157.3 kB / 0.8183 GB, free: 9.859 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 1.611e-05/0.01332, allocations: 11.94 kB / 0.8183 GB, free: 9.848 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.06e-05/0.01335, allocations: 3.938 kB / 0.8183 GB, free: 9.844 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.664e-05/0.01337, allocations: 5.094 kB / 0.8183 GB, free: 9.84 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.163e-05/0.01341, allocations: 7.984 kB / 0.8183 GB, free: 9.832 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.903e-05/0.01343, allocations: 4.656 kB / 0.8184 GB, free: 9.828 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.0001152/0.01355, allocations: 143.2 kB / 0.8185 GB, free: 9.688 MB / 0.7761 GB Notification: Performance of sort global known variables: time 1e-07/0.01355, allocations: 4.906 kB / 0.8185 GB, free: 9.684 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0002681/0.01382, allocations: 43.98 kB / 0.8185 GB, free: 9.641 MB / 0.7761 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.0001788/0.01399, allocations: 100.3 kB / 0.8186 GB, free: 9.535 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0007025/0.0147, allocations: 0.4899 MB / 0.8191 GB, free: 8.988 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.0147, allocations: 1.094 kB / 0.8191 GB, free: 8.988 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 7.687e-05/0.01478, allocations: 43.67 kB / 0.8192 GB, free: 8.941 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002714/0.01505, allocations: 28.27 kB / 0.8192 GB, free: 8.918 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004779/0.01553, allocations: 215.6 kB / 0.8194 GB, free: 8.672 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.915e-05/0.01561, allocations: 80.45 kB / 0.8195 GB, free: 8.574 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 3.371e-05/0.01565, allocations: 9.891 kB / 0.8195 GB, free: 8.566 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.29e-05/0.01568, allocations: 16.5 kB / 0.8195 GB, free: 8.551 MB / 0.7761 GB Notification: Performance of SimCode: time 7.82e-07/0.01568, allocations: 0 / 0.8195 GB, free: 8.551 MB / 0.7761 GB Notification: Performance of Templates: time 0.007456/0.02314, allocations: 2.933 MB / 0.8223 GB, free: 5.707 MB / 0.7761 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 -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","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Logical_Validation_Switch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.376204599044286]