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.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.001508/0.001508, allocations: 88.72 kB / 19.44 MB, free: 360 kB / 13.93 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.001869/0.001869, allocations: 161.7 kB / 22.76 MB, free: 1.684 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.54/1.54, allocations: 177.1 MB / 203.1 MB, free: 5.602 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.376/3.376, allocations: 429.6 MB / 0.673 GB, free: 3.887 MB / 0.6355 GB " [Timeout remaining time 176] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_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_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.044e-06/2.044e-06, allocations: 0 / 0.8776 GB, free: 5.336 MB / 0.7917 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.589e-05/2.793e-05, allocations: 2.859 kB / 0.8776 GB, free: 5.332 MB / 0.7917 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.001938/0.001966, allocations: 0.6888 MB / 0.8783 GB, free: 4.668 MB / 0.7917 GB Notification: Performance of NFInst.instExpressions: time 0.002762/0.004728, allocations: 1.282 MB / 0.8795 GB, free: 3.375 MB / 0.7917 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001171/0.004845, allocations: 4 kB / 0.8795 GB, free: 3.371 MB / 0.7917 GB Notification: Performance of NFTyping.typeComponents: time 4.959e-05/0.004895, allocations: 7.875 kB / 0.8796 GB, free: 3.363 MB / 0.7917 GB Notification: Performance of NFTyping.typeBindings: time 0.0001651/0.00506, allocations: 21.86 kB / 0.8796 GB, free: 3.348 MB / 0.7917 GB Notification: Performance of NFTyping.typeClassSections: time 0.001543/0.006603, allocations: 301.6 kB / 0.8799 GB, free: 3.055 MB / 0.7917 GB Notification: Performance of NFFlatten.flatten: time 0.0006215/0.007224, allocations: 260.5 kB / 0.8801 GB, free: 2.801 MB / 0.7917 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001666/0.007391, allocations: 12.17 kB / 0.8801 GB, free: 2.785 MB / 0.7917 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000328/0.007719, allocations: 144.9 kB / 0.8803 GB, free: 2.645 MB / 0.7917 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002451/0.007964, allocations: 79.75 kB / 0.8803 GB, free: 2.566 MB / 0.7917 GB Notification: Performance of NFPackage.collectConstants: time 6e-05/0.008024, allocations: 24 kB / 0.8804 GB, free: 2.543 MB / 0.7917 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000119/0.008143, allocations: 33.05 kB / 0.8804 GB, free: 2.512 MB / 0.7917 GB Notification: Performance of NFScalarize.scalarize: time 4.047e-05/0.008184, allocations: 15.92 kB / 0.8804 GB, free: 2.496 MB / 0.7917 GB Notification: Performance of NFVerifyModel.verify: time 0.0001592/0.008343, allocations: 75.92 kB / 0.8805 GB, free: 2.422 MB / 0.7917 GB Notification: Performance of NFConvertDAE.convert: time 0.0004761/0.008819, allocations: 264.9 kB / 0.8807 GB, free: 2.164 MB / 0.7917 GB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.008824, allocations: 4 kB / 0.8807 GB, free: 2.16 MB / 0.7917 GB Notification: Performance of FrontEnd: time 1.593e-06/0.008826, allocations: 0 / 0.8807 GB, free: 2.16 MB / 0.7917 GB Notification: Performance of Transformations before backend: time 5.13e-06/0.008831, allocations: 0 / 0.8807 GB, free: 2.16 MB / 0.7917 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.0007603/0.009591, allocations: 421.1 kB / 0.8811 GB, free: 1.703 MB / 0.7917 GB Notification: Performance of prepare preOptimizeDAE: time 4.859e-05/0.00964, allocations: 8.031 kB / 0.8811 GB, free: 1.695 MB / 0.7917 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001028/0.009743, allocations: 24.88 kB / 0.8812 GB, free: 1.672 MB / 0.7917 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000162/0.009905, allocations: 117.7 kB / 0.8813 GB, free: 1.531 MB / 0.7917 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.237e-05/0.009937, allocations: 8.359 kB / 0.8813 GB, free: 1.523 MB / 0.7917 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.972e-05/0.009987, allocations: 22.94 kB / 0.8813 GB, free: 1.504 MB / 0.7917 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001776/0.01016, allocations: 58.16 kB / 0.8814 GB, free: 1.441 MB / 0.7917 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.331e-05/0.01018, allocations: 4.172 kB / 0.8814 GB, free: 1.438 MB / 0.7917 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.678e-05/0.01019, allocations: 4.375 kB / 0.8814 GB, free: 1.434 MB / 0.7917 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.677e-06/0.0102, allocations: 4.125 kB / 0.8814 GB, free: 1.43 MB / 0.7917 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.457e-05/0.01026, allocations: 16 kB / 0.8814 GB, free: 1.414 MB / 0.7917 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006258/0.01088, allocations: 316.3 kB / 0.8817 GB, free: 1.074 MB / 0.7917 GB Notification: Performance of preOpt comSubExp (simulation): time 8.63e-05/0.01097, allocations: 35.22 kB / 0.8817 GB, free: 1.031 MB / 0.7917 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.443e-05/0.01101, allocations: 18.52 kB / 0.8817 GB, free: 1.012 MB / 0.7917 GB Notification: Performance of preOpt evalFunc (simulation): time 1.252e-05/0.01103, allocations: 0 / 0.8817 GB, free: 1.012 MB / 0.7917 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002821/0.01131, allocations: 107.3 kB / 0.8818 GB, free: 0.8945 MB / 0.7917 GB Notification: Performance of pre-optimization done (n=10): time 1.323e-06/0.01131, allocations: 0 / 0.8818 GB, free: 0.8945 MB / 0.7917 GB Notification: Performance of matching and sorting (n=10): time 0.0003963/0.01171, allocations: 146.9 kB / 0.882 GB, free: 0.7461 MB / 0.7917 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.294e-05/0.01176, allocations: 63.33 kB / 0.8821 GB, free: 0.6719 MB / 0.7917 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000146/0.01191, allocations: 133.1 kB / 0.8822 GB, free: 0.5352 MB / 0.7917 GB Notification: Performance of collectPreVariables (initialization): time 4.749e-05/0.01195, allocations: 29.7 kB / 0.8822 GB, free: 0.5 MB / 0.7917 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001175/0.01207, allocations: 112.2 kB / 0.8823 GB, free: 396 kB / 0.7917 GB Notification: Performance of collectInitialBindings (initialization): time 3.006e-05/0.0121, allocations: 19.89 kB / 0.8823 GB, free: 376 kB / 0.7917 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001516/0.01225, allocations: 65.67 kB / 0.8824 GB, free: 304 kB / 0.7917 GB Notification: Performance of setup shared object (initialization): time 0.0002293/0.01248, allocations: 318.8 kB / 0.8827 GB, free: 15.98 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003003/0.01278, allocations: 185 kB / 0.8829 GB, free: 15.78 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003297/0.01311, allocations: 223.1 kB / 0.8831 GB, free: 15.52 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003397/0.01345, allocations: 241.5 kB / 0.8833 GB, free: 15.25 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.5e-06/0.01346, allocations: 4 kB / 0.8833 GB, free: 15.24 MB / 0.8073 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0008029/0.01426, allocations: 483.5 kB / 0.8838 GB, free: 14.73 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 9.898e-05/0.01436, allocations: 105.1 kB / 0.8839 GB, free: 14.61 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.01436, allocations: 0 / 0.8839 GB, free: 14.61 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.432e-05/0.01439, allocations: 4 kB / 0.8839 GB, free: 14.6 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.054e-05/0.01442, allocations: 7.938 kB / 0.8839 GB, free: 14.59 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.711e-06/0.01442, allocations: 192 / 0.8839 GB, free: 14.59 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000512/0.01494, allocations: 91.73 kB / 0.884 GB, free: 14.5 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.027e-05/0.015, allocations: 15.98 kB / 0.884 GB, free: 14.49 MB / 0.8073 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.0001415/0.01514, allocations: 129.8 kB / 0.8841 GB, free: 14.35 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.922e-05/0.01517, allocations: 23.83 kB / 0.8841 GB, free: 14.33 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.541e-05/0.0152, allocations: 16.44 kB / 0.8842 GB, free: 14.31 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.395e-06/0.01521, allocations: 0 / 0.8842 GB, free: 14.31 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.01521, allocations: 0 / 0.8842 GB, free: 14.31 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.945e-06/0.01521, allocations: 0 / 0.8842 GB, free: 14.31 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001496/0.01536, allocations: 125.3 kB / 0.8843 GB, free: 14.16 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.01536, allocations: 0 / 0.8843 GB, free: 14.16 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.518e-06/0.01537, allocations: 0 / 0.8843 GB, free: 14.16 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.094e-06/0.01538, allocations: 7.938 kB / 0.8843 GB, free: 14.15 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.555e-05/0.0154, allocations: 7.984 kB / 0.8843 GB, free: 14.14 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.0154, allocations: 0 / 0.8843 GB, free: 14.14 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.0154, allocations: 0 / 0.8843 GB, free: 14.14 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002342/0.01563, allocations: 149 kB / 0.8844 GB, free: 13.98 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 1.613e-05/0.01565, allocations: 7.953 kB / 0.8844 GB, free: 13.97 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.02e-05/0.01567, allocations: 3.938 kB / 0.8844 GB, free: 13.97 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.341e-05/0.01569, allocations: 4 kB / 0.8845 GB, free: 13.96 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.842e-05/0.01574, allocations: 11.98 kB / 0.8845 GB, free: 13.95 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.936e-06/0.01575, allocations: 4 kB / 0.8845 GB, free: 13.95 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 7.731e-05/0.01583, allocations: 95.2 kB / 0.8846 GB, free: 13.86 MB / 0.8073 GB Notification: Performance of sort global known variables: time 9.1e-08/0.01583, allocations: 4 kB / 0.8846 GB, free: 13.85 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0003013/0.01613, allocations: 43.98 kB / 0.8846 GB, free: 13.81 MB / 0.8073 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.0002069/0.01634, allocations: 111.2 kB / 0.8847 GB, free: 13.69 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0006107/0.01695, allocations: 407.2 kB / 0.8851 GB, free: 13.24 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.01695, allocations: 0 / 0.8851 GB, free: 13.24 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 7.507e-05/0.01702, allocations: 35.92 kB / 0.8851 GB, free: 13.2 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002979/0.01732, allocations: 28.19 kB / 0.8852 GB, free: 13.18 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005163/0.01784, allocations: 190.3 kB / 0.8853 GB, free: 12.96 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001042/0.01794, allocations: 91.25 kB / 0.8854 GB, free: 12.85 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 3.837e-05/0.01798, allocations: 4.5 kB / 0.8854 GB, free: 12.84 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.243e-05/0.01801, allocations: 12.5 kB / 0.8854 GB, free: 12.83 MB / 0.8073 GB Notification: Performance of SimCode: time 8.42e-07/0.01801, allocations: 0 / 0.8854 GB, free: 12.83 MB / 0.8073 GB Notification: Performance of Templates: time 0.007468/0.02548, allocations: 2.937 MB / 0.8883 GB, free: 9.973 MB / 0.8073 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.makefile [Timeout 300] (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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) [Timeout 800] 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) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.428781065973453]