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.001739/0.001739, allocations: 81.58 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.002376/0.002376, allocations: 164.4 kB / 22.46 MB, free: 5.359 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.525/1.525, allocations: 177.2 MB / 202.8 MB, free: 9.188 MB / 190.1 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 2.932/2.932, allocations: 377.8 MB / 0.6221 GB, free: 12.61 MB / 0.5919 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 2.765e-06/2.765e-06, allocations: 0 / 0.9814 GB, free: 11.96 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.605e-05/3.881e-05, allocations: 6.219 kB / 0.9814 GB, free: 11.95 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.001842/0.001881, allocations: 0.6953 MB / 0.9821 GB, free: 11.25 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001862/0.003743, allocations: 1.287 MB / 0.9834 GB, free: 9.953 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.542e-05/0.003798, allocations: 0 / 0.9834 GB, free: 9.953 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.274e-05/0.003831, allocations: 3.938 kB / 0.9834 GB, free: 9.949 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 8.449e-05/0.003916, allocations: 23.78 kB / 0.9834 GB, free: 9.926 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008403/0.004756, allocations: 308.5 kB / 0.9837 GB, free: 9.633 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.000358/0.005114, allocations: 263.5 kB / 0.984 GB, free: 9.375 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001025/0.005216, allocations: 8.172 kB / 0.984 GB, free: 9.363 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002135/0.00543, allocations: 143.8 kB / 0.9841 GB, free: 9.223 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001682/0.005598, allocations: 75.81 kB / 0.9842 GB, free: 9.148 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 5e-05/0.005648, allocations: 20 kB / 0.9842 GB, free: 9.129 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 9.853e-05/0.005747, allocations: 43.92 kB / 0.9842 GB, free: 9.086 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 3.687e-05/0.005783, allocations: 19.97 kB / 0.9843 GB, free: 9.066 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001178/0.005901, allocations: 67.88 kB / 0.9843 GB, free: 9 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0003625/0.006264, allocations: 271.3 kB / 0.9846 GB, free: 8.734 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.006268, allocations: 0 / 0.9846 GB, free: 8.734 MB / 0.9356 GB Notification: Performance of FrontEnd: time 9.52e-07/0.006269, allocations: 0 / 0.9846 GB, free: 8.734 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 5.33e-06/0.006274, allocations: 0 / 0.9846 GB, free: 8.734 MB / 0.9356 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.0006293/0.006903, allocations: 423 kB / 0.985 GB, free: 8.273 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.567e-05/0.006949, allocations: 12.03 kB / 0.985 GB, free: 8.262 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.953e-05/0.007018, allocations: 12.89 kB / 0.985 GB, free: 8.25 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001234/0.007142, allocations: 113.7 kB / 0.9851 GB, free: 8.113 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.302e-05/0.007175, allocations: 16.38 kB / 0.9851 GB, free: 8.098 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.289e-05/0.007218, allocations: 12.38 kB / 0.9851 GB, free: 8.086 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001398/0.007358, allocations: 62.22 kB / 0.9852 GB, free: 8.02 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.987e-06/0.007367, allocations: 192 / 0.9852 GB, free: 8.02 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.03e-05/0.007377, allocations: 384 / 0.9852 GB, free: 8.02 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.494e-06/0.007384, allocations: 4.125 kB / 0.9852 GB, free: 8.016 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.641e-05/0.007441, allocations: 23.98 kB / 0.9852 GB, free: 7.992 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005542/0.007995, allocations: 320.2 kB / 0.9855 GB, free: 7.648 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 7.382e-05/0.008069, allocations: 30.56 kB / 0.9856 GB, free: 7.609 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.776e-05/0.008107, allocations: 16.86 kB / 0.9856 GB, free: 7.59 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.107e-05/0.008118, allocations: 4.094 kB / 0.9856 GB, free: 7.586 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001923/0.00831, allocations: 103.2 kB / 0.9857 GB, free: 7.473 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=10): time 1.382e-06/0.008311, allocations: 0 / 0.9857 GB, free: 7.473 MB / 0.9356 GB Notification: Performance of matching and sorting (n=10): time 0.0003324/0.008644, allocations: 141.8 kB / 0.9858 GB, free: 7.328 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.866e-05/0.008692, allocations: 55.5 kB / 0.9859 GB, free: 7.262 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001278/0.00882, allocations: 141.7 kB / 0.986 GB, free: 7.113 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 4.746e-05/0.008868, allocations: 33.7 kB / 0.986 GB, free: 7.074 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 8.483e-05/0.008952, allocations: 92.22 kB / 0.9861 GB, free: 6.98 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.793e-05/0.00898, allocations: 23.84 kB / 0.9861 GB, free: 6.957 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001319/0.009112, allocations: 69.66 kB / 0.9862 GB, free: 6.883 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.000166/0.009278, allocations: 326.8 kB / 0.9865 GB, free: 6.555 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002663/0.009545, allocations: 181 kB / 0.9867 GB, free: 6.359 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002936/0.009838, allocations: 229.5 kB / 0.9869 GB, free: 6.098 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00032/0.01016, allocations: 233.7 kB / 0.9871 GB, free: 5.832 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.01016, allocations: 0 / 0.9871 GB, free: 5.832 MB / 0.9356 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0007272/0.01089, allocations: 479.5 kB / 0.9876 GB, free: 5.32 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 8.189e-05/0.01097, allocations: 101.1 kB / 0.9877 GB, free: 5.203 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.651e-06/0.01098, allocations: 0 / 0.9877 GB, free: 5.203 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.583e-05/0.011, allocations: 7.984 kB / 0.9877 GB, free: 5.195 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.11e-05/0.01103, allocations: 7.938 kB / 0.9877 GB, free: 5.188 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.034e-06/0.01104, allocations: 0 / 0.9877 GB, free: 5.188 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00052/0.01156, allocations: 83.98 kB / 0.9878 GB, free: 5.105 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.412e-05/0.01161, allocations: 19.98 kB / 0.9878 GB, free: 5.086 MB / 0.9356 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.000135/0.01175, allocations: 125.8 kB / 0.9879 GB, free: 4.953 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.815e-05/0.01178, allocations: 15.88 kB / 0.9879 GB, free: 4.938 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.047e-05/0.01181, allocations: 12.44 kB / 0.988 GB, free: 4.926 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-06/0.01181, allocations: 0 / 0.988 GB, free: 4.926 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.01181, allocations: 0 / 0.988 GB, free: 4.926 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.906e-06/0.01182, allocations: 4 kB / 0.988 GB, free: 4.922 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00014/0.01196, allocations: 137.2 kB / 0.9881 GB, free: 4.758 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.01196, allocations: 0 / 0.9881 GB, free: 4.758 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.469e-05/0.01197, allocations: 4 kB / 0.9881 GB, free: 4.754 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.41e-06/0.01198, allocations: 7.922 kB / 0.9881 GB, free: 4.746 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.129e-05/0.01199, allocations: 0 / 0.9881 GB, free: 4.746 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.01199, allocations: 0 / 0.9881 GB, free: 4.746 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.988e-06/0.01199, allocations: 3.984 kB / 0.9881 GB, free: 4.742 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000219/0.01221, allocations: 141 kB / 0.9882 GB, free: 4.586 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 1.736e-05/0.01223, allocations: 11.91 kB / 0.9882 GB, free: 4.574 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.936e-05/0.01225, allocations: 3.938 kB / 0.9882 GB, free: 4.57 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.57e-05/0.01227, allocations: 8.078 kB / 0.9883 GB, free: 4.562 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.289e-05/0.01233, allocations: 15.92 kB / 0.9883 GB, free: 4.547 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.061e-05/0.01234, allocations: 4 kB / 0.9883 GB, free: 4.543 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 7.216e-05/0.01241, allocations: 102.1 kB / 0.9884 GB, free: 4.445 MB / 0.9356 GB Notification: Performance of sort global known variables: time 8e-08/0.01241, allocations: 0 / 0.9884 GB, free: 4.445 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.000281/0.01269, allocations: 40 kB / 0.9884 GB, free: 4.406 MB / 0.9356 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.0002398/0.01293, allocations: 111.1 kB / 0.9885 GB, free: 4.289 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0005833/0.01351, allocations: 415.5 kB / 0.9889 GB, free: 3.828 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.01352, allocations: 4.062 kB / 0.9889 GB, free: 3.824 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 6.791e-05/0.01358, allocations: 31.92 kB / 0.9889 GB, free: 3.793 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000288/0.01387, allocations: 28.16 kB / 0.989 GB, free: 3.766 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004397/0.01431, allocations: 185.7 kB / 0.9892 GB, free: 3.555 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.992e-05/0.0144, allocations: 79.89 kB / 0.9892 GB, free: 3.453 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 3.559e-05/0.01444, allocations: 12.48 kB / 0.9892 GB, free: 3.441 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.926e-05/0.01447, allocations: 12.5 kB / 0.9893 GB, free: 3.43 MB / 0.9356 GB Notification: Performance of SimCode: time 4.11e-07/0.01447, allocations: 0 / 0.9893 GB, free: 3.43 MB / 0.9356 GB Notification: Performance of Templates: time 0.006789/0.02126, allocations: 2.919 MB / 0.9921 GB, free: 0.582 MB / 0.9356 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=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) [Timeout 400] 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.522981654852629]