Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001803/0.001803, allocations: 113.1 kB / 17.6 MB, free: 4.703 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001809/0.001809, allocations: 186.7 kB / 20.78 MB, free: 1.547 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.666/1.666, allocations: 225.6 MB / 249.4 MB, free: 3.168 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.948/2.948, allocations: 443.5 MB / 0.7304 GB, free: 13.93 MB / 0.5762 GB " [Timeout remaining time 176] Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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_10_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_10_Buildings.Controls.OBC.CDL.Reals.Validation.Switch") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002584/0.002584, allocations: 75.88 kB / 1.059 GB, free: 372 kB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.391/0.3936, allocations: 160.7 MB / 1.216 GB, free: 15.34 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.002633/0.3962, allocations: 0.7957 MB / 1.217 GB, free: 14.54 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001841/0.3981, allocations: 1.16 MB / 1.218 GB, free: 13.36 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.782e-05/0.3981, allocations: 0 / 1.218 GB, free: 13.36 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.991e-05/0.3982, allocations: 3.938 kB / 1.218 GB, free: 13.36 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001081/0.3983, allocations: 15.86 kB / 1.218 GB, free: 13.34 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006482/0.3989, allocations: 139.5 kB / 1.218 GB, free: 13.21 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.000347/0.3993, allocations: 127.7 kB / 1.218 GB, free: 13.08 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001237/0.3994, allocations: 19.97 kB / 1.218 GB, free: 13.06 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001453/0.3995, allocations: 55.84 kB / 1.218 GB, free: 13.01 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001328/0.3997, allocations: 51.8 kB / 1.218 GB, free: 12.96 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 3.599e-05/0.3997, allocations: 12 kB / 1.218 GB, free: 12.95 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 8.649e-05/0.3998, allocations: 23.98 kB / 1.219 GB, free: 12.92 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 3.296e-05/0.3998, allocations: 11.98 kB / 1.219 GB, free: 12.91 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 8.954e-05/0.3999, allocations: 47.78 kB / 1.219 GB, free: 12.86 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002814/0.4002, allocations: 119.7 kB / 1.219 GB, free: 12.75 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.4002, allocations: 0 / 1.219 GB, free: 12.75 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.593e-06/0.4002, allocations: 3.938 kB / 1.219 GB, free: 12.74 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.572e-06/0.4002, allocations: 4 kB / 1.219 GB, free: 12.74 MB / 0.9669 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.0008223/0.401, allocations: 428.8 kB / 1.219 GB, free: 12.26 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.087e-05/0.4011, allocations: 8.031 kB / 1.219 GB, free: 12.25 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.073e-05/0.4012, allocations: 16.83 kB / 1.219 GB, free: 12.24 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001476/0.4013, allocations: 172.3 kB / 1.219 GB, free: 12.03 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.04e-05/0.4013, allocations: 8.375 kB / 1.219 GB, free: 12.02 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.353e-05/0.4014, allocations: 8.375 kB / 1.219 GB, free: 12.02 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002717/0.4016, allocations: 78.2 kB / 1.219 GB, free: 11.93 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.047e-06/0.4016, allocations: 192 / 1.219 GB, free: 11.93 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.421e-05/0.4016, allocations: 3.938 kB / 1.219 GB, free: 11.93 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.728e-06/0.4017, allocations: 0 / 1.219 GB, free: 11.93 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002982/0.402, allocations: 71.92 kB / 1.219 GB, free: 11.86 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005279/0.4025, allocations: 336.6 kB / 1.22 GB, free: 11.48 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001968/0.4027, allocations: 46.55 kB / 1.22 GB, free: 11.43 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001526/0.4028, allocations: 44.91 kB / 1.22 GB, free: 11.38 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.786e-05/0.4029, allocations: 4 kB / 1.22 GB, free: 11.38 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003452/0.4032, allocations: 103.3 kB / 1.22 GB, free: 11.26 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=6): time 1.292e-06/0.4032, allocations: 0 / 1.22 GB, free: 11.26 MB / 0.9669 GB Notification: Performance of matching and sorting (n=6): time 0.0006225/0.4038, allocations: 161.5 kB / 1.22 GB, free: 11.1 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.816e-05/0.4039, allocations: 55.41 kB / 1.22 GB, free: 11.03 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002405/0.4041, allocations: 126.1 kB / 1.22 GB, free: 10.9 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.691e-05/0.4041, allocations: 25.7 kB / 1.22 GB, free: 10.87 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 7.445e-05/0.4042, allocations: 92.09 kB / 1.22 GB, free: 10.77 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.5e-05/0.4042, allocations: 19.89 kB / 1.22 GB, free: 10.75 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001759/0.4044, allocations: 29.7 kB / 1.22 GB, free: 10.72 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001996/0.4046, allocations: 322.8 kB / 1.221 GB, free: 10.39 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002058/0.4048, allocations: 63.94 kB / 1.221 GB, free: 10.33 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00021/0.405, allocations: 86.39 kB / 1.221 GB, free: 10.24 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003539/0.4054, allocations: 148.3 kB / 1.221 GB, free: 10.08 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.4054, allocations: 0 / 1.221 GB, free: 10.08 MB / 0.9669 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005511/0.4059, allocations: 215.2 kB / 1.221 GB, free: 9.855 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 4.487e-05/0.406, allocations: 33.7 kB / 1.221 GB, free: 9.816 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.793e-06/0.406, allocations: 8.047 kB / 1.221 GB, free: 9.809 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.795e-05/0.406, allocations: 4 kB / 1.221 GB, free: 9.805 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001438/0.4062, allocations: 23.86 kB / 1.221 GB, free: 9.781 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.634e-06/0.4062, allocations: 0 / 1.221 GB, free: 9.781 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002177/0.4064, allocations: 43.89 kB / 1.221 GB, free: 9.738 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.048e-05/0.4064, allocations: 7.984 kB / 1.221 GB, free: 9.73 MB / 0.9669 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 0.0001116/0.4065, allocations: 121.8 kB / 1.221 GB, free: 9.602 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.698e-05/0.4065, allocations: 7.953 kB / 1.221 GB, free: 9.594 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.915e-05/0.4066, allocations: 8.375 kB / 1.221 GB, free: 9.586 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.4066, allocations: 4 kB / 1.222 GB, free: 9.582 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/0.4066, allocations: 0 / 1.222 GB, free: 9.582 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.979e-06/0.4066, allocations: 0 / 1.222 GB, free: 9.582 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001908/0.4068, allocations: 189.9 kB / 1.222 GB, free: 9.348 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.902e-05/0.4068, allocations: 4 kB / 1.222 GB, free: 9.344 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001252/0.407, allocations: 15.98 kB / 1.222 GB, free: 9.328 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.884e-06/0.407, allocations: 4 kB / 1.222 GB, free: 9.324 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.11e-05/0.407, allocations: 0 / 1.222 GB, free: 9.324 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.077e-06/0.407, allocations: 3.938 kB / 1.222 GB, free: 9.32 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.407, allocations: 4 kB / 1.222 GB, free: 9.316 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003801/0.4074, allocations: 148.9 kB / 1.222 GB, free: 9.152 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 6.043e-05/0.4074, allocations: 89.05 kB / 1.222 GB, free: 9.047 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.673e-05/0.4074, allocations: 4 kB / 1.222 GB, free: 9.043 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.508e-05/0.4075, allocations: 11.98 kB / 1.222 GB, free: 9.031 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.246e-05/0.4076, allocations: 7.984 kB / 1.222 GB, free: 9.023 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.833e-06/0.4076, allocations: 0 / 1.222 GB, free: 9.023 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 7.754e-05/0.4077, allocations: 103 kB / 1.222 GB, free: 8.926 MB / 0.9669 GB Notification: Performance of sort global known variables: time 8e-08/0.4077, allocations: 0 / 1.222 GB, free: 8.926 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.000221/0.4079, allocations: 20 kB / 1.222 GB, free: 8.906 MB / 0.9669 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.0002309/0.4081, allocations: 103.2 kB / 1.222 GB, free: 8.797 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0004998/0.4086, allocations: 179.2 kB / 1.222 GB, free: 8.609 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.4086, allocations: 0 / 1.222 GB, free: 8.609 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001964/0.4088, allocations: 47.89 kB / 1.222 GB, free: 8.562 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002208/0.409, allocations: 24.08 kB / 1.222 GB, free: 8.539 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004648/0.4095, allocations: 181.8 kB / 1.223 GB, free: 8.332 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003755/0.4099, allocations: 0.6885 MB / 1.223 GB, free: 7.617 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 3.772e-05/0.4099, allocations: 8 kB / 1.223 GB, free: 7.609 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.241e-05/0.4099, allocations: 11.44 kB / 1.223 GB, free: 7.598 MB / 0.9669 GB Notification: Performance of SimCode: time 6.31e-07/0.4099, allocations: 3.938 kB / 1.223 GB, free: 7.594 MB / 0.9669 GB Notification: Performance of Templates: time 0.005022/0.415, allocations: 1.594 MB / 1.225 GB, free: 6.012 MB / 0.9669 GB " [Timeout remaining time 300] make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.makefile [Timeout 300] (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Switch -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Validation_Switch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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: 9.140226625837386]