Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Integers.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.0007866/0.0007866, allocations: 76.55 kB / 19.93 MB, free: 4.617 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.0007767/0.0007767, allocations: 177.9 kB / 23.22 MB, free: 1.332 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 0.8887/0.8887, allocations: 177.2 MB / 203.5 MB, free: 5.492 MB / 186.7 MB " [Timeout remaining time 179] 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 1.783/1.783, allocations: 377.8 MB / 0.6229 GB, free: 8.637 MB / 0.5886 GB " [Timeout remaining time 178] 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.Integers.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|integerSwitch.u1|integerSwitch.u2|integerSwitch.u3|integerSwitch.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch") translateModel(Buildings.Controls.OBC.CDL.Integers.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|integerSwitch.u1|integerSwitch.u2|integerSwitch.u3|integerSwitch.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 3.026e-06/3.026e-06, allocations: 0 / 0.9822 GB, free: 2.059 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.777e-05/4.08e-05, allocations: 5.375 kB / 0.9822 GB, free: 2.055 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002111/0.002152, allocations: 0.8054 MB / 0.983 GB, free: 1.25 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.00204/0.004192, allocations: 1.314 MB / 0.9843 GB, free: 15.92 MB / 0.948 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.155e-05/0.004284, allocations: 8 kB / 0.9843 GB, free: 15.91 MB / 0.948 GB Notification: Performance of NFTyping.typeComponents: time 5.194e-05/0.004335, allocations: 7.875 kB / 0.9843 GB, free: 15.9 MB / 0.948 GB Notification: Performance of NFTyping.typeBindings: time 0.0001223/0.004458, allocations: 31.61 kB / 0.9843 GB, free: 15.88 MB / 0.948 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009501/0.005408, allocations: 326.8 kB / 0.9846 GB, free: 15.57 MB / 0.948 GB Notification: Performance of NFFlatten.flatten: time 0.0003081/0.005716, allocations: 291.4 kB / 0.9849 GB, free: 15.28 MB / 0.948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001468/0.005863, allocations: 33.56 kB / 0.9849 GB, free: 15.25 MB / 0.948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001844/0.006047, allocations: 159.8 kB / 0.9851 GB, free: 15.09 MB / 0.948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001562/0.006203, allocations: 91.72 kB / 0.9852 GB, free: 15 MB / 0.948 GB Notification: Performance of NFPackage.collectConstants: time 4.679e-05/0.00625, allocations: 28 kB / 0.9852 GB, free: 14.97 MB / 0.948 GB Notification: Performance of NFFlatten.collectFunctions: time 8.512e-05/0.006335, allocations: 39.98 kB / 0.9853 GB, free: 14.93 MB / 0.948 GB Notification: Performance of NFScalarize.scalarize: time 3.819e-05/0.006373, allocations: 23.91 kB / 0.9853 GB, free: 14.91 MB / 0.948 GB Notification: Performance of NFVerifyModel.verify: time 9.474e-05/0.006468, allocations: 87.8 kB / 0.9854 GB, free: 14.82 MB / 0.948 GB Notification: Performance of NFConvertDAE.convert: time 0.0003363/0.006805, allocations: 311.2 kB / 0.9857 GB, free: 14.52 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 2.645e-06/0.006807, allocations: 0 / 0.9857 GB, free: 14.52 MB / 0.948 GB Notification: Performance of FrontEnd: time 2.074e-06/0.006809, allocations: 0 / 0.9857 GB, free: 14.52 MB / 0.948 GB Notification: Performance of Transformations before backend: time 5.701e-06/0.006815, allocations: 4 kB / 0.9857 GB, free: 14.52 MB / 0.948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0006396/0.007455, allocations: 474.8 kB / 0.9861 GB, free: 14 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 4.799e-05/0.007503, allocations: 8.031 kB / 0.9861 GB, free: 14 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.183e-05/0.007574, allocations: 16.89 kB / 0.9861 GB, free: 13.98 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001126/0.007687, allocations: 126.1 kB / 0.9863 GB, free: 13.83 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.383e-05/0.007721, allocations: 12.38 kB / 0.9863 GB, free: 13.82 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.39e-05/0.007755, allocations: 20.36 kB / 0.9863 GB, free: 13.8 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001638/0.007918, allocations: 96.28 kB / 0.9864 GB, free: 13.7 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.127e-06/0.007928, allocations: 0 / 0.9864 GB, free: 13.7 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.398e-05/0.007942, allocations: 4 kB / 0.9864 GB, free: 13.7 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.641e-06/0.007947, allocations: 0 / 0.9864 GB, free: 13.7 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.064e-05/0.008038, allocations: 55.97 kB / 0.9864 GB, free: 13.64 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005802/0.008618, allocations: 376.1 kB / 0.9868 GB, free: 13.25 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002205/0.008839, allocations: 66.61 kB / 0.9869 GB, free: 13.17 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.287e-05/0.008881, allocations: 24.92 kB / 0.9869 GB, free: 13.14 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 1.281e-05/0.008894, allocations: 0 / 0.9869 GB, free: 13.14 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001868/0.009081, allocations: 119.4 kB / 0.987 GB, free: 13.02 MB / 0.948 GB Notification: Performance of pre-optimization done (n=14): time 2.134e-06/0.009083, allocations: 0 / 0.987 GB, free: 13.02 MB / 0.948 GB Notification: Performance of matching and sorting (n=14): time 0.0003159/0.009399, allocations: 165.5 kB / 0.9872 GB, free: 12.85 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.75e-05/0.009447, allocations: 63.41 kB / 0.9872 GB, free: 12.77 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000112/0.009559, allocations: 152.6 kB / 0.9874 GB, free: 12.62 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 3.914e-05/0.009598, allocations: 41.69 kB / 0.9874 GB, free: 12.57 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 7.476e-05/0.009673, allocations: 112.5 kB / 0.9875 GB, free: 12.46 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 2.475e-05/0.009697, allocations: 35.73 kB / 0.9875 GB, free: 12.42 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.538e-05/0.009793, allocations: 77.61 kB / 0.9876 GB, free: 12.34 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 0.0001024/0.009895, allocations: 322.8 kB / 0.9879 GB, free: 12.02 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001973/0.01009, allocations: 185 kB / 0.9881 GB, free: 11.82 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002107/0.0103, allocations: 235.1 kB / 0.9883 GB, free: 11.55 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002371/0.01054, allocations: 253.4 kB / 0.9886 GB, free: 11.26 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.378e-06/0.01054, allocations: 4 kB / 0.9886 GB, free: 11.26 MB / 0.948 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005022/0.01105, allocations: 495.4 kB / 0.989 GB, free: 10.73 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 7.325e-05/0.01112, allocations: 103.8 kB / 0.9891 GB, free: 10.61 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.571e-06/0.01113, allocations: 0 / 0.9891 GB, free: 10.61 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.797e-05/0.01114, allocations: 8.188 kB / 0.9891 GB, free: 10.61 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.008e-05/0.01119, allocations: 19.92 kB / 0.9892 GB, free: 10.59 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.187e-06/0.0112, allocations: 7.938 kB / 0.9892 GB, free: 10.58 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002528/0.01146, allocations: 79.8 kB / 0.9893 GB, free: 10.5 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.882e-05/0.01148, allocations: 19.98 kB / 0.9893 GB, free: 10.48 MB / 0.948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 17 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booToInt1.y,booToInt.y,booPul3.y,$PRE.booPul3.y,booPul2.y,$PRE.booPul2.y,booPul1.y,$PRE.booPul1.y,integerSwitch.y,integerSwitch.u3,integerSwitch.u1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 14 * 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.0001149/0.0116, allocations: 138.4 kB / 0.9894 GB, free: 10.34 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.585e-05/0.01162, allocations: 11.91 kB / 0.9894 GB, free: 10.32 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.259e-05/0.01165, allocations: 20.7 kB / 0.9894 GB, free: 10.3 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.01165, allocations: 0 / 0.9894 GB, free: 10.3 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/0.01166, allocations: 0 / 0.9894 GB, free: 10.3 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-06/0.01166, allocations: 4 kB / 0.9894 GB, free: 10.3 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001233/0.01178, allocations: 145.3 kB / 0.9896 GB, free: 10.13 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.385e-06/0.01179, allocations: 4 kB / 0.9896 GB, free: 10.12 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.508e-05/0.01181, allocations: 11.94 kB / 0.9896 GB, free: 10.11 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.057e-06/0.01182, allocations: 7.984 kB / 0.9896 GB, free: 10.11 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.098e-06/0.01183, allocations: 4 kB / 0.9896 GB, free: 10.1 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.01183, allocations: 3.938 kB / 0.9896 GB, free: 10.1 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.01183, allocations: 3.938 kB / 0.9896 GB, free: 10.09 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001752/0.012, allocations: 163.2 kB / 0.9898 GB, free: 9.918 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 1.425e-05/0.01202, allocations: 15.88 kB / 0.9898 GB, free: 9.902 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.051e-05/0.01204, allocations: 4 kB / 0.9898 GB, free: 9.898 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.815e-05/0.01206, allocations: 3.938 kB / 0.9898 GB, free: 9.895 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.197e-05/0.0121, allocations: 15.98 kB / 0.9898 GB, free: 9.879 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.626e-06/0.01211, allocations: 7.984 kB / 0.9898 GB, free: 9.871 MB / 0.948 GB Notification: Performance of sorting global known variables: time 5.599e-05/0.01216, allocations: 105.3 kB / 0.9899 GB, free: 9.77 MB / 0.948 GB Notification: Performance of sort global known variables: time 6e-08/0.01216, allocations: 0 / 0.9899 GB, free: 9.77 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0001997/0.01236, allocations: 59.89 kB / 0.99 GB, free: 9.711 MB / 0.948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,integerSwitch.u1,integerSwitch.u3,integerSwitch.y,booPul1.y,booPul2.y,booPul3.y,booToInt.y,booToInt1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 11 * 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.0001449/0.01251, allocations: 107.2 kB / 0.9901 GB, free: 9.598 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0004159/0.01292, allocations: 431.2 kB / 0.9905 GB, free: 9.121 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.01293, allocations: 0 / 0.9905 GB, free: 9.121 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 6.648e-05/0.01299, allocations: 47.91 kB / 0.9905 GB, free: 9.074 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002189/0.01321, allocations: 36.33 kB / 0.9906 GB, free: 9.039 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004345/0.01365, allocations: 267.8 kB / 0.9908 GB, free: 8.746 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.745e-05/0.01372, allocations: 94.22 kB / 0.9909 GB, free: 8.633 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.208e-05/0.01376, allocations: 16.5 kB / 0.9909 GB, free: 8.613 MB / 0.948 GB Notification: Performance of SimCode: time 6.81e-07/0.01376, allocations: 0 / 0.9909 GB, free: 8.613 MB / 0.948 GB Notification: Performance of Templates: time 0.003599/0.01736, allocations: 2.269 MB / 0.9931 GB, free: 6.359 MB / 0.948 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Integers_Validation_Switch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Integers.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: 6.845536090433598]