Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Reals.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.001319/0.001319, allocations: 111.1 kB / 17.13 MB, free: 5.926 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.001416/0.001416, allocations: 205 kB / 20.09 MB, free: 2.977 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.501/1.501, allocations: 230.6 MB / 253.5 MB, free: 15.07 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 2.947/2.947, allocations: 0.49 GB / 0.7923 GB, free: 1.34 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-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.Reals.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|switch1.u1|switch1.u2|switch1.u3|switch1.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|switch1.u1|switch1.u2|switch1.u3|switch1.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002001/0.002001, allocations: 71.91 kB / 1.15 GB, free: 14.82 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9487/0.9507, allocations: 176.1 MB / 1.322 GB, free: 25.26 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.001736/0.9525, allocations: 0.7944 MB / 1.323 GB, free: 24.75 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001076/0.9536, allocations: 1.19 MB / 1.324 GB, free: 23.88 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.779e-05/0.9536, allocations: 0 / 1.324 GB, free: 23.88 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 3.128e-05/0.9536, allocations: 7.938 kB / 1.324 GB, free: 23.87 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 7.264e-05/0.9537, allocations: 21.48 kB / 1.324 GB, free: 23.85 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004252/0.9541, allocations: 131.7 kB / 1.324 GB, free: 23.79 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0001566/0.9543, allocations: 131 kB / 1.324 GB, free: 23.73 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 8.276e-05/0.9544, allocations: 9.656 kB / 1.324 GB, free: 23.73 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 7.516e-05/0.9544, allocations: 57.59 kB / 1.324 GB, free: 23.7 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 8.171e-05/0.9545, allocations: 51.16 kB / 1.324 GB, free: 23.68 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 2.29e-05/0.9545, allocations: 15.56 kB / 1.324 GB, free: 23.68 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 5.739e-05/0.9546, allocations: 29.02 kB / 1.324 GB, free: 23.67 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 1.92e-05/0.9546, allocations: 18.17 kB / 1.324 GB, free: 23.66 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 4.83e-05/0.9547, allocations: 42.34 kB / 1.324 GB, free: 23.63 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0001372/0.9548, allocations: 117.8 kB / 1.325 GB, free: 23.59 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.9548, allocations: 2.906 kB / 1.325 GB, free: 23.59 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.483e-06/0.9548, allocations: 0 / 1.325 GB, free: 23.59 MB / 1.061 GB Notification: Performance of Transformations before backend: time 5.13e-06/0.9548, allocations: 0 / 1.325 GB, free: 23.59 MB / 1.061 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.0005297/0.9553, allocations: 431.3 kB / 1.325 GB, free: 23.17 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.369e-05/0.9554, allocations: 14.77 kB / 1.325 GB, free: 23.17 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.111e-05/0.9554, allocations: 4.281 kB / 1.325 GB, free: 23.17 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.799e-05/0.9555, allocations: 181.2 kB / 1.325 GB, free: 22.96 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.468e-05/0.9555, allocations: 7.25 kB / 1.325 GB, free: 22.96 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.103e-05/0.9555, allocations: 10.2 kB / 1.325 GB, free: 22.95 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000241/0.9558, allocations: 85.02 kB / 1.325 GB, free: 22.91 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.303e-06/0.9558, allocations: 192 / 1.325 GB, free: 22.91 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.101e-05/0.9558, allocations: 3.938 kB / 1.325 GB, free: 22.9 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.958e-06/0.9558, allocations: 4 kB / 1.325 GB, free: 22.9 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002821/0.9561, allocations: 72.41 kB / 1.325 GB, free: 22.89 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003373/0.9564, allocations: 329 kB / 1.326 GB, free: 22.58 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001762/0.9566, allocations: 56.84 kB / 1.326 GB, free: 22.55 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001452/0.9568, allocations: 37.98 kB / 1.326 GB, free: 22.54 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.97e-05/0.9568, allocations: 2.75 kB / 1.326 GB, free: 22.54 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000238/0.957, allocations: 101 kB / 1.326 GB, free: 22.48 MB / 1.061 GB Notification: Performance of pre-optimization done (n=6): time 1.253e-06/0.957, allocations: 0 / 1.326 GB, free: 22.48 MB / 1.061 GB Notification: Performance of matching and sorting (n=6): time 0.0005569/0.9576, allocations: 159 kB / 1.326 GB, free: 22.42 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.493e-05/0.9576, allocations: 54.22 kB / 1.326 GB, free: 22.36 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.83e-05/0.9577, allocations: 125.1 kB / 1.326 GB, free: 22.25 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.935e-05/0.9577, allocations: 36.14 kB / 1.326 GB, free: 22.21 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 3.667e-05/0.9577, allocations: 91.16 kB / 1.326 GB, free: 22.12 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 1.805e-05/0.9577, allocations: 26.02 kB / 1.326 GB, free: 22.1 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.492e-05/0.9578, allocations: 30.7 kB / 1.326 GB, free: 22.08 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 4.62e-05/0.9578, allocations: 322.5 kB / 1.327 GB, free: 21.76 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002019/0.958, allocations: 57.52 kB / 1.327 GB, free: 21.75 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001989/0.9582, allocations: 92.22 kB / 1.327 GB, free: 21.7 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003307/0.9586, allocations: 137.2 kB / 1.327 GB, free: 21.62 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.9586, allocations: 4 kB / 1.327 GB, free: 21.62 MB / 1.061 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004758/0.9591, allocations: 212.2 kB / 1.327 GB, free: 21.52 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 2.922e-05/0.9591, allocations: 38.44 kB / 1.327 GB, free: 21.48 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.9591, allocations: 3.094 kB / 1.327 GB, free: 21.48 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.23e-05/0.9591, allocations: 0 / 1.327 GB, free: 21.48 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00013/0.9592, allocations: 20.83 kB / 1.327 GB, free: 21.48 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.36e-06/0.9592, allocations: 11.27 kB / 1.327 GB, free: 21.47 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002168/0.9595, allocations: 33.59 kB / 1.327 GB, free: 21.47 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.155e-05/0.9595, allocations: 10.69 kB / 1.327 GB, free: 21.46 MB / 1.061 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,booPul.y,$PRE.booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 1 * 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 7.418e-05/0.9595, allocations: 123.9 kB / 1.327 GB, free: 21.34 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.513e-05/0.9596, allocations: 7.547 kB / 1.327 GB, free: 21.34 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.403e-05/0.9596, allocations: 9.344 kB / 1.327 GB, free: 21.32 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/0.9596, allocations: 8.359 kB / 1.327 GB, free: 21.32 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/0.9596, allocations: 0 / 1.327 GB, free: 21.32 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.926e-06/0.9596, allocations: 4.844 kB / 1.327 GB, free: 21.32 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.15e-05/0.9597, allocations: 180.2 kB / 1.328 GB, free: 21.12 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.9597, allocations: 0 / 1.328 GB, free: 21.12 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001048/0.9598, allocations: 13.97 kB / 1.328 GB, free: 21.12 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.953e-06/0.9598, allocations: 0.5 kB / 1.328 GB, free: 21.12 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.046e-05/0.9598, allocations: 8.016 kB / 1.328 GB, free: 21.11 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.9598, allocations: 0.9375 kB / 1.328 GB, free: 21.11 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.9598, allocations: 0 / 1.328 GB, free: 21.11 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003774/0.9602, allocations: 156.2 kB / 1.328 GB, free: 21.02 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 1.849e-05/0.9602, allocations: 83.62 kB / 1.328 GB, free: 20.92 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.591e-05/0.9602, allocations: 0.75 kB / 1.328 GB, free: 20.92 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.629e-05/0.9603, allocations: 17.45 kB / 1.328 GB, free: 20.92 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.21e-05/0.9603, allocations: 10.41 kB / 1.328 GB, free: 20.91 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.175e-06/0.9604, allocations: 1.562 kB / 1.328 GB, free: 20.91 MB / 1.061 GB Notification: Performance of sorting global known variables: time 3.858e-05/0.9604, allocations: 97.89 kB / 1.328 GB, free: 20.83 MB / 1.061 GB Notification: Performance of sort global known variables: time 6e-08/0.9604, allocations: 0 / 1.328 GB, free: 20.83 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002258/0.9606, allocations: 24.28 kB / 1.328 GB, free: 20.83 MB / 1.061 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$whenCondition2,booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001444/0.9608, allocations: 107 kB / 1.328 GB, free: 20.74 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0004737/0.9612, allocations: 178.7 kB / 1.328 GB, free: 20.64 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.9612, allocations: 0 / 1.328 GB, free: 20.64 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001835/0.9614, allocations: 44.17 kB / 1.328 GB, free: 20.64 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002091/0.9616, allocations: 26.06 kB / 1.328 GB, free: 20.62 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003209/0.962, allocations: 206.6 kB / 1.328 GB, free: 20.44 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.221e-05/0.962, allocations: 0.6875 MB / 1.329 GB, free: 19.74 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.596e-05/0.9621, allocations: 11.47 kB / 1.329 GB, free: 19.73 MB / 1.061 GB Notification: Performance of SimCode: time 2.91e-07/0.9621, allocations: 0 / 1.329 GB, free: 19.73 MB / 1.061 GB Notification: Performance of Templates: time 0.003206/0.9653, allocations: 1.305 MB / 1.33 GB, free: 19.63 MB / 1.061 GB " [Timeout remaining time 299] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Reals_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.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: 11.392689899003017]